Re: write(user.alias) + carriage return?
By: deon to ansunent on Tue Dec 27 2022 12:24 am
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)
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.
--
digital man (rob)
Breaking Bad quote #39:
Vacuum cleaner repair? What did you expect? Haji's quick vanish? - Saul
Norco, CA WX: 76.7øF, 32.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)