[fpc-pascal]Linux RedHat v.8.0, fpc and Characters Set output.

Peter Vreman peter at freepascal.org
Tue Jul 1 07:37:12 CEST 2003


> When using a character: ej. chr(254) and others, the "Terminal" window (in
> X mode (Graphic mode) using "startx") in Linux RH 8.0 show a "?" instead
> of the apropiate character.
> What is happening ?
>
> Same occurs when running the "FreePascal IDE for Linux v. 0.9.0
> 2002/04/30", the caracters arround the windows are "?".
> Out of the X mode, those characters do not appear. And I have deteccted
> that the BACKSPACE character is "equivalent" to a HOME character when key
> pressed (strange).
>
> How to make this things to be enougtly compatible with the "Win32" version
> of FP ?
> I am triying to program with the idea that my program will run and look
> the same in MS-Windows and in Linux. Any ideas ?

Under Linux you don't know the character set that is used on the terminal.
It can also be a VT100 terminal that does not understand hi-ascii
characters.

When you want compatible console programs you can only use 7 bit
characters and not use any fancy cursor movements/colors.








More information about the fpc-pascal mailing list