euglug.org

[Eug-lug] Small replacement for curses?

작성자

카테고리:



T. Joseph CARTERSat Dec 31 23:36:42 PST 2005

I have been somewhat unsuccessful with googlebait trying to find the
answer to this, so I figured I would just post the question and wait for
someone who would know (ie, Mike Cherba probably) to answer.  =)

I'm looking for something smaller and more sane than ncurses.  I use such
a small part of ncurses that the full curses library is just plain
ridiculous for something that will go into a fixed RAM environment.

So far my screen usage consists of:

 - a varargs printf
 - setting the color of things about to be printf'd (VGA colors)
 - clear to end of line/screen with current color/background
 - move to screen location
 - how big is my screen?
 - has the size of my screen changed?
 - read a key
 - is there a key to read?
 - the fact that the screen is buffered

I don't use any of the windowing and very few of the macro functions.  In
fact, as it is, for the sake of being able to implement this on non-UNIX
systems (read: windows) at some point, what I actually do use is wrapped
by my own rather generic API.

Any thoughts?  =)

-- 
"We are what we repeatedly do.  Excellence, therefore, is not an act,
but a habit."
	-- Aristotle