-=> Christopher Butler wrote to All <=-
CB> I'd like to be able to make it simply a class that has "events"
CB> (keypresses) passed to a handling function, so that I can have more
CB> than one thing on the screen at once, with one of them having focus.
...
CB> I'm using DJGPP, and would also like to be able to use it on other
CB> versions of GCC (ie Linux, etc), so I'd prefer not to have many
CB> OS-specific things :)
The most portable solution is probably "curses". It manages cursor
movement, keyboard input, box drawing, colors and windows (among other
things) for a wide variety of terminal types. It originated on Unix, but
it's also available for DOS in the form of the PD Curses package, which
should be downloadable at the same sites as DJGPP. Some versions (like
"ncurses") include higher-level panel and menu libraries to simplify
things; I'm not sure about PD Curses.
... The number you have dailed...Nine-one-one...has been changed.
---
1:109/570)
---------------
* Origin: * My Place BBS * Bowie, Md USA * V.34 * (301)805-1602 *
|