[fpc-pascal]Problems with "Write" and/or ANSI-Emulation from fpc
Peter Vreman
peter at freepascal.org
Sat Jul 28 14:35:18 CEST 2001
At 03:05 27-7-01, you wrote:
>>the output of the program is exactly:
>>---------------------------------------------------------------------------
>>49 50 51 52 53 54 55 56 57 48 97
>>98 99 100 101 102
>>---------------------------------------------------------------------------
>>
>>but why ? normaly the output must be:
>>---------------------------------------------------------------------------
>>49 50 51 52 53 54 55 56 57 48 97 98 99 100 101 102
>>---------------------------------------------------------------------------
>>
>>has fpc an own ansi emulation in write/writlen procedures ?
>>if so, there is an bug in the ansi-code sequence/s "ESC[s" and/or "ESC[u".
>>
>>on the standard linux console with the shell-command echo the output is
>>100% ok.
>>
>>can you help me to fix this problem ?
>
>I've had some similar strange results with ANSI and FPC's write function
>under Linux. I've never narrowed it down to a specific problem though, so
>it could be FPC or my code itself...
Don't use the crt unit if you want to write the ansi codes yourself.
Peter
More information about the fpc-pascal
mailing list