• write(user.alias) + carriage return?

    From ansunent@1:103/705 to all on Mon Dec 26 02:01:28 2022
    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?

    Yes, I'm a novice, but I eagerly want to learn.

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deon@1:103/705 to ansunent on Tue Dec 27 00:24:24 2022
    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)


    ...ëîåï

    ---
    þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to ansunent on Mon Dec 26 13:45:14 2022
    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)
  • From ansunent@1:103/705 to deon on Mon Dec 26 19:29:48 2022
    Re: write(user.alias) + carriage return?
    By: deon to ansunent on Tue Dec 27 2022 00:24:25

    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.).

    ---
    þ Synchronet þ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From ansunent@1:103/705 to Digital Man on Mon Dec 26 19:30:40 2022
    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.

    ---
    þ Synchronet þ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From ansunent@1:103/705 to Digital Man on Mon Dec 26 19:39:40 2022
    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.
    ----------------------------------

    I tested it on a different script and both writeln and + '\r' worked so I'm suspect there is another factor involved preventing me from getting the desired result.

    Back to the drawing board!

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deon@1:103/705 to ansunent on Tue Dec 27 16:55:28 2022
    Re: write(user.alias) + carriage return?
    By: ansunent to deon on Mon Dec 26 2022 07:29 pm

    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.).

    Unusual - I know the command works, I use it all the time :)

    Perhaps there is something else going on?


    ...ëîåï

    ---
    þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to ansunent on Tue Dec 27 01:36:58 2022
    Re: write(user.alias) + carriage return?
    By: ansunent to Digital Man on Mon Dec 26 2022 07:30 pm

    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.

    Can you elaborate? It certainly sounds like you just mistyped something.
    --
    digital man (rob)

    This Is Spinal Tap quote #37:
    David St. Hubbins: We are Spinal Tap from the UK - you must be the USA!
    Norco, CA WX: 61.4øF, 43.0% humidity, 0 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)