Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-06

Linux RedHat v.8.0, fpc and Characters Set output.

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

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 ?

Regards. Arturo G. Rivera. ----------------------------------------- Do You GorSA ! ? "WebMail hecho facil y sencillo." http://www.gorsa.net.mx/

Reply by email

Peter Vreman
to Unknown author
Show quoted text 15 lines
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.

Reply by email

Michael Van Canneyt
to Unknown author: When using a character: ej. chr(254) and others, the "Terminal" window (in X mode…
Show quoted text 13 lines
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 ?

Use the -F switch. Or set the VGA font in your x-term.

Michael.

Reply by email

Alex Dingle
to Michael Van Canneyt
Michael Van Canneyt wrote 19 lines
On Mon, 30 Jun 2003 wrote: > 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 ? Use the -F switch. Or set the VGA font in your x-term.

The -F switch? What does that do? (looking at the man page, I see many varients of -F)

You can find several appropriate fonts for X at:
http://members.optushome.com.au/emikulic/misc/cp437.html

Also, from the linux console you can enable cp437 (which supports IBM extended graphics characters) by running : charset G0 cp437

For best results be sure to set your TERM environment variable to ansi (export TERM=ansi in bash).

-Alex

Reply by email

Michael Van Canneyt
to Alex Dingle
Alex Dingle wrote 23 lines
On Tue, Jul 01, 2003 at 09:36:55AM +0200, Michael Van Canneyt wrote: > > > On Mon, 30 Jun 2003 wrote: > > > 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 ? > > Use the -F switch. Or set the VGA font in your x-term. The -F switch? What does that do? (looking at the man page, I see many varients of -F)

For the 'fp' IDE it switches to alternate characters for graphical characters.

Michael.

Reply by email

Stephen Hurd
to Alex Dingle: The -F switch? What does that do? (looking at the man page, I see many varients of -F)…
For best results be sure to set your TERM environment variable to ansi (export TERM=ansi in bash). -Alex

Huh? That is manifestly NOT a good idea. The TERM variable enables programs to know what capabilities the terminal you are currently useing have and how to use those capabilities. They do not change those capabilities in any way.

Generally the ansi termcap/terminfo entry is a lowest common denominator... and it will cause many programs to stop using optimised output at all... most ansi termcap entries don't even support colour.

Further, especially at the console, almost all of the extended keys will stop working becuase Linux does not use a VT style keyboard.

Your TERM variable should be set to what you are using... that's what it's for.

Reply by email