----- Original Message ----- From: Dimitar Zhekov jimmy@is-vn.bg To: alexbodn@012.net.il Sent: Wednesday, October 30, 2002 9:44 AM Subject: Re: contribution
i have a small contribution to make for grx: it's a conio emulation. it
What do we need this for? GRX works in graphics mode and has a sufficient set of functions to change modes, display text in color etc. I see that the files attached #include <conio.h> - that will only work with some (not all) MSDOS and WIN32 systems, and will fail with all Unix-es.
E-gards: Jimmy
conio is a well-known screen text api, that supports lots of software packages, of them i dare enumerating turbo-vision and d-flat windowing systems.letting those packages act natively in graphics mode using grxio, will allow extending those windowing systems support for graphics objects. like tvbgi? the same, bgigrx has been made to support existing code relying on bgi. the mode changing functions have not [yet] been implemented, because there really is enough support for them in native grx, while they are not too cardinal for conio. i have purposely not included conio.h, to demonstrate that any system that provides conio in text mode may be used in graphics mode through grxio. text mode conio (thus conio.h) might be found on various dos systems, netware, linux, and the hard part of porting software is providing functionality, not copying the include files (which are open even on comercial systems). anyway, a very good conio implementation is free, and included in djgpp.
re-gards, alex
What do we need this for? GRX works in graphics mode and has a sufficient
conio is a well-known screen text api
It's a well-known DOS (and much later WIN32) API. Some kind of nasty WIN16 emulation exists too. The UNIX/linux applications use termcap and [n]curses.
that supports lots of software packages, of them i dare enumerating turbo- vision and d-flat windowing systems.
Turbo Vision does not use conio.h IIRC. Instead, it reads/writes from/to screen directly (at 0xB000 and 0xB800). Long (10+ years) time ago I ported Turbo Vision to BGI, and can easily port it to GRX, but the real problem is porting it to 32/64-bit non-DOS compilers (see the TV port at SETEDIT page, http://setedit.sourceforge.net/). And will d-flat run under UNIX?
provides conio in text mode may be used in graphics mode through grxio. text mode conio (thus conio.h) might be found on various dos systems, netware, linux, and the hard part of porting software is providing functionality, not
Well you won't see conio.h in any _linux_ programs. The real hard part will be porting a 16-bit DOS application (using conio or not) to UNIX. Sometimes so hard that rewriting the respective application from scratch is easier.
E-gards: Jimmy