From: Bjorn Ekwall (bj0rn@blox.se)
Date: 02/11/93


From: bj0rn@blox.se (Bjorn Ekwall)
Subject: Re: Curses, X and other minor problems
Date: 11 Feb 1993 19:09:00 GMT

In article <1993Feb11.121724.26840@cc.ic.ac.uk>, Arrigo Triulzi (agbt@ic.ac.uk) wrote:
> I would like to know if the curses lib in SLS .99pl4 corresponds
> to the man pages one, bacause I tried a program that uses curses version 3
> on an SGI machine (SysV Rel 3.2) and all the "standard" stuff like
> A_REVERSE and attron() is missing from the lib but is mentioned in the man
> pags. Is there a more recent curses library I can download?
...
> Arrigo

The man pages does definitely NOT correspond to the sources!
I have downloaded the sources yesterday and found that they are based on
(8-bit) "char"s instead of "unsigned short" (typedef'd as chtype in SYSV).

Since I have some curses-based programs I like to run, I have made
a new (private alpha-) version with "char" changed into "chtype" wherever
I thought it was necessary ( :-). "curses.h" also needs to be updated
and several new functions added...(_putchar() needs to know about the
new attributes stored in chtype for instance).
Anyway, my (3 hour hack) alpha-version (kludge) does work, in a way,
but I need to include at least enacs, smacs, and rmacs (terminfo) into
/etc/termcap before I dare to expose my version to anyone else :-)

BTW, does anyone have a decent implementation of keypad() and getch
so that the function keys will return an integer? My version does
not handle autorepeated keystrokes gracefully...

Happy hacking,
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Bj|rn Ekwall bj0rn@blox.se a.k.a. SM0FCJ Hacker of all trades