Sign in Join

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

Mailing lists / fpc-pascal / 2002-07

CRT problem - Linux

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Andreas K. Foerster

Hello,

I again have a problem with the CRT unit for Linux, and I think it is a bug.

What I want to do is to fill the whole screen with a background color. So I set the background color and call CrlScr.

This works fine on the Linux console and most X-terminals, but it doesn't work on some other kinds of terminal, namely PuTTY and JavaTelnet.

ClrScr works correct, when a window is set, but not if it is set to fullscreen - even not if I also do that with the window command.

Is there another way how I could set the background color of the whole screen?

Tschuess Andreas
A.J. Venter
to Andreas K. Foerster

Just change the uses clause to call NCRT rather than CRT. The CRT unit uses escape clauses to draw onscreen, the ncrt unit is identical but is implemented using ncurses calls, which are terminal independant.

Ciao
A.J.

Andreas K. Foerster wrote 17 lines
Hello, I again have a problem with the CRT unit for Linux, and I think it is a bug. What I want to do is to fill the whole screen with a background color. So I set the background color and call CrlScr. This works fine on the Linux console and most X-terminals, but it doesn't work on some other kinds of terminal, namely PuTTY and JavaTelnet. ClrScr works correct, when a window is set, but not if it is set to fullscreen - even not if I also do that with the window command. Is there another way how I could set the background color of the whole screen?