Sign in Join

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

Mailing lists / fpc-pascal / 2001-02

Screen contents in linux

5 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

FPC mail

Hi.
I'm trying to do some app in linux that looks kind of like TVision, so I need the screen contents to save the screen & stuff. Has anyone got an idea how might I do this, but not by using /dev/vcsa devices, because I want my app to be usable over telnet too.

Thanx for reading.

Bogdan.

Reply by email

Cyril LAMY
to FPC mail

Le jeu, 08 f�v 2001, vous avez ecrit :

Show quoted text 5 lines
I'm trying to do some app in linux that looks kind of like TVision, so I need the screen contents to save the screen & stuff. Has anyone got an idea how might I do this, but not by using /dev/vcsa devices, because I want my app to be usable over telnet too.

Under Dos, when i want to save the text screen,
i made an array like Array[1..4000] Of Byte (80cols*25lines*2 bytes/char) and I copy the memory adress starting at $B800 into the array.

I don't know if you can use this method under linux and if it works under telnet.

..

Reply by email

Peter Vreman
Show quoted text 10 lines
Le jeu, 08 f�v 2001, vous avez ecrit : > I'm trying to do some app in linux that looks kind of like TVision, > so I need the screen contents to save the screen & stuff. Has anyone > got an idea how might I do this, but not by using /dev/vcsa devices, > because I want my app to be usable over telnet too. > Under Dos, when i want to save the text screen, i made an array like Array[1..4000] Of Byte (80cols*25lines*2

bytes/char)>

Show quoted text 6 lines
and I copy the memory adress starting at $B800 into the array. I don't know if you can use this method under linux and if it works under telnet. ...

That is not possible. You need to keep track of the video output yourself and store it in an own buffer. You can use the video unit for this. Available in the delivered API, and for the snapshots it's in the RTL itself.

Reply by email

Ken Wright
to FPC mail: Hi. I'm trying to do some app in linux that looks kind of like TVision, so I need the…
you wrote 7 lines
Hi. I'm trying to do some app in linux that looks kind of like TVision, so I need the screen contents to save the screen & stuff. Has anyone got an idea how might I do this, but not by using /dev/vcsa devices, because I want my app to be usable over telnet too. Thanx for reading.

The oCrt unit has some windowing for Linux. It includes nGrabScreen and nPopScreen for saving & restoring. You can find it on the contributed units page.

Ken

Reply by email