I'm trying to get the system to execute a carriage return after "write(user.alias)" (ie: "write(user.alias) [CR]". I've tried \r, \r\n, with or without parenthesis, brackets, double quotes, single quotes, +, & and in various places in the line.
What am I doing wrong?
Re: write(user.alias) + carriage return?
By: ansunent to all on Mon Dec 26 2022 02:01 am
I'm trying to get the system to execute a carriage return after "write(user.alias)" (ie: "write(user.alias) [CR]". I've tried \r, \r\n, with or without parenthesis, brackets, double quotes, single quotes, +, & and in various places in the line.
What am I doing wrong?
There are probably many ways to skin that cat, but "writeln" might do the trick, ie: writeln(user.alias)
There are probably many ways to skin that cat, but "writeln" might do the trick, ie: writeln(user.alias)
Yes, writeln() will write the string plus a "new-line" sequence (which is actually CR/LF). If you really just want a bare-CR (why?), then:
write(user.alias + '\r')
would do that.
There are probably many ways to skin that cat, but "writeln" might do the trick, ie: writeln(user.alias)
Tried that in multiple scenarios, but it either wouldn't execute the carriage return or it would give me various errors (syntax, illegal character, & etc.).
Re: write(user.alias) + carriage return?
By: Digital Man to ansunent on Mon Dec 26 2022 13:45:15
Yes, writeln() will write the string plus a "new-line" sequence (which is actually CR/LF). If you really just want a bare-CR (why?), then:
write(user.alias + '\r')
would do that.
Tried that too. No bueno.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 368 |
Nodes: | 16 (2 / 14) |
Uptime: | 86:16:47 |
Calls: | 7,895 |
Calls today: | 1 |
Files: | 12,968 |
Messages: | 5,792,007 |