Curses bug in 2.4
Michael J. Young
mjy at sdti.UUCP
Wed Nov 2 07:22:41 AEST 1988
I've just noticed an anomaly in the tgetstr() function in the System V/AT
2.4 curses. Not knowing the old termcap interface, I'm not sure if this
is a bug or what.
Based on the way elm 1.5 and 2.1 use this function, it appears to me that
the interface to tgetstr() is supposed to be:
char *tgetstr(id, area)
char *id;
char **area;
Elm uses tgetstr as follows:
result = tgetstr ("id", &ptr);
Under the 2.3 curses, ptr is left unchanged upon returning from the function.
Under the 2.4 (large model) curses, ptr seems to be overwritten by ascii
text (looks like terminfo escape sequences). It looks like the new
curses expects to see something like:
char *tgetstr (id, area)
char *id;
char *area;
^ note the missing *
What gives?
--
Mike Young
Software Development Technologies, Inc., Sudbury MA Tel: +1 508 443 5779
Internet: mjy at sdti.sdti.com UUCP: {harvard,mit-eddie}!sdti!mjy
More information about the Comp.unix.microport
mailing list