Which way is better in C ?

Bill Campbell linux-sxs
Thu Jan 20 12:44:45 PST 2005


On Thu, Jan 20, 2005, Ben Duncan wrote:

>While true, ncurses has a lot going, it also leaves a lot to be desired.
>S-Lang has pretty much the same as ncurses, but has a lot of bases covered.

>Example, ncurses leaves one with figuring out function key and special key
>sequences return codes. S-lang simply returns a common "code" for whatever
>function/special key is pressed REGARDLESS of the terminal type.

What version of ncurses are you using?  Ncurses returns constant values for
function and special keys.  The ncurses keypad() function turns this on and
off.  There is a complete listing of these constants as implemented in the
python curses library see:

	http://docs.python.org/lib/node259.html

...

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

Those who cast the vote decide nothing.
Those who count the vote decide everything. (Joseph Stalin)


More information about the Linux-users mailing list