[H-GEN] linux-conio
Frank Brand
fbrand at uq.net.au
Tue Aug 25 23:15:35 EDT 1998
I found this on Dejanews for anyone interested. The problem described is
much the same as I want to do.
-----------------from Dejanews----------------------------
> I wrote a program in C under Dos with Borland C 3.1 that saves part of
> the screen and then restores it through gettext() and puttext().
>
> Now I have to do the same thing under Unix (interactive).
>
> I've tried with using curses library, but i haven't found anything to
> do this. I tried with scr_dump() and scr_restore() too, but they
> always clear the screen.
>
> Really, the program must display a box with text on the screen over
> the previous program (that call mine) screen and before terminate it
> must restore the text that was under the box.
>
> any suggestion?
For Linux there is a library called linux-conio which is based on
ncurses
and emulates the conio library on DOS systems. It can be found on
sunsite.
---------------------------------------------------------------------------
Maybe there are other ways to do this under GCC (delorie - djgpp uses
conio.h I think) but I am just coming to grips with GCC and am not
familiar enough with the various embeded functions.
--
Frank Brand
E-mail: fbrand at uq.net.au
Homepage: http://www.uq.net.au/~zzfbrand
More information about the General
mailing list