When running locally, if i use writeln('My Text') it works fine. the
next writeln('test') writes left justified on the second line.
When I run the same program over a telnet connection (in linux
xinetd), the second write line doesnt left justify.
I am sure it has to do with ANSI control characters
but I cant find the unit, library, or info to reset the columns, and
also enable ANSI color.
On 2018 Jan 09 17:47:00, you wrote to All:
When running locally, if i use writeln('My Text') it works fine. the
next writeln('test') writes left justified on the second line.
that's correct... writeln sends the CRLF which moves the cursor down one line >and returns it to the left margin...
When I run the same program over a telnet connection (in linux
xinetd), the second write line doesnt left justify.
what terminal are you using? check your terminal settings... i forget what it >is called but there is generally a setting for LF or CRLF... it sounds like you
just have LF which will simply move the cursor down a line but keep it in the
same column position...
I am sure it has to do with ANSI control characters
what makes you think this? especially if you are not sending any ANSI stuff...
but I cant find the unit, library, or info to reset the columns, and
also enable ANSI color.
based on this is why i say "not sending ANSI stuff" above... if you don't have >a unit or whatever for ANSI then it shouldn't come into play...
)\/(ark
Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin' it >wrong...
... Caltitude: Height cat's back can arch to meet the hand stroking it
---
* Origin: (1:3634/12.73)
On 2018 Jan 09 17:47:00, you wrote to All:
When running locally, if i use writeln('My Text') it works fine. the
next writeln('test') writes left justified on the second line.
that's correct... writeln sends the CRLF which moves the cursor down one line >and returns it to the left margin...
When I run the same program over a telnet connection (in linux
xinetd), the second write line doesnt left justify.
what terminal are you using? check your terminal settings... i forget what it >is called but there is generally a setting for LF or CRLF... it sounds like you
just have LF which will simply move the cursor down a line but keep it in the
same column position...
I am sure it has to do with ANSI control characters
what makes you think this? especially if you are not sending any ANSI stuff...
but I cant find the unit, library, or info to reset the columns, and
also enable ANSI color.
based on this is why i say "not sending ANSI stuff" above... if you don't have >a unit or whatever for ANSI then it shouldn't come into play...
)\/(ark
Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin' it >wrong...
... Caltitude: Height cat's back can arch to meet the hand stroking it
---
* Origin: (1:3634/12.73)
When running locally, if i use writeln('My Text') it works fine.Your telnet client may be expecting both a carriage return and a line feed character.
the next writeln('test') writes left justified on the second line.
When I run the same program over a telnet connection (in linux xinetd), the second write line doesnt left justify. I am sure it has to do with ANSI control characters but I cant find the unit, library, or info to reset the columns, and also enable ANSI color.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,038 |
Nodes: | 15 (0 / 15) |
Uptime: | 28:08:18 |
Calls: | 865 |
Calls today: | 16 |
Files: | 95,180 |
D/L today: |
14,820 files (1,486M bytes) |
Messages: | 465,164 |
Posted today: | 1 |