Re: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-21 Thread Luiz Americo Pereira Camara
Michael Preslar wrote: Back in the DOS Turbo Pascal days I could do the following type screentype= array[1..4000] of byte; screenptr=^screentype; var screen1: screenptr; procedure savescreen(scr:byte); var sc1: byte absolute $b000:0; sc2: byte absolute $b800:0; begin; if screenaddress=$b0

Re: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Marco van de Voort
> Thanks to all for the pointers. The FPC IDE source is definitly useful. > Will have to play with that and see what I can come up with.. (note that the IDE is based on FV which is based in turn on units keyboard,video,mouse) ___ fpc-pascal maillist -

RE: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Michael Preslar
] On Behalf Of Jonas Maebe Sent: Tuesday, June 20, 2006 10:01 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Cross Platform Save/Restore Screen On 20 jun 2006, at 16:45, Michael Preslar wrote: > Now I'm stuck. How can I do the same for Win32 Console apps, and > *nix/*

Re: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Tomas Hajny
Michael Preslar wrote: > Back in the DOS Turbo Pascal days I could do the following . . > Now I'm stuck. How can I do the same for Win32 Console apps, and > *nix/*bsd console apps? > > (For anyone wondering.. I'm the Legend of the Red Dragon developer > [remember that old beast?], and after porti

Re: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Jonas Maebe
On 20 jun 2006, at 16:45, Michael Preslar wrote: Now I'm stuck. How can I do the same for Win32 Console apps, and *nix/*bsd console apps? See the user screen unit of the IDE: http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/ide/fpusrscr.pas? rev=3297 (For anyone wondering.. I'm the Leg

Re: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Marco van de Voort
> Back in the DOS Turbo Pascal days I could do the following > > type > screentype= array[1..4000] of byte; > screenptr=^screentype; > var > screen1: screenptr; > > procedure savescreen(scr:byte); > var > sc1: byte absolute $b000:0; > sc2: byte absolute $b800:0; > begin; > if screenaddress=

Re: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Michael Van Canneyt
On Tue, 20 Jun 2006, Michael Preslar wrote: Back in the DOS Turbo Pascal days I could do the following type screentype= array[1..4000] of byte; screenptr=^screentype; var screen1: screenptr; procedure savescreen(scr:byte); var sc1: byte absolute $b000:0; sc2: byte absolute $b800:0; begin; if

[fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Michael Preslar
Back in the DOS Turbo Pascal days I could do the following type screentype= array[1..4000] of byte; screenptr=^screentype; var screen1: screenptr; procedure savescreen(scr:byte); var sc1: byte absolute $b000:0; sc2: byte absolute $b800:0; begin; if screenaddress=$b000 then move(sc1,screens1