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
i have a small contribution to make for grx: it's a conio emulation. it
What do we need this for?
Mmmm... Really not needed for GRX, but perhaps it has a place in the addons.
The first thing I did with GRX was to make a GRX version of my own TUI. It was easy, thanks to the GrDump family functions, the only trick I added to GRX for this was the _GR_textattrintensevideo switch. It took me a couple of days and at the end, voila! I had my apps running on X11!
But my TUI is only for me (big, complex and awful :-) and there are a lot people who know about conio. So it can be good to have a grconio lib in the addon directory, but it must follow, in my opinion, the next guidelines:
1- Portable, use only ANSI-C functions plus GRX functions.
2- Two files: grconio.c and grconio.h plus a test program.
3- Simple instructions for programmers: only change "include <conio.h>" to "include <grconio.h>" and probably add a call to "GrConioInit" at the begining.
4- Use GrKey functions as a base for conio input functions.
5- Use GrDump functions to draw and manage the "virtual text mode".
6- Be complete, really there are only a few functions in conio.
So, if you agree Alex, go for it.
Regards, Mariano.