SCO's curses

m.proudman mfp at sobeco.com
Thu Apr 11 12:27:08 AEST 1991


In <1991Mar22.211749.13292 at robobar.co.uk> ronald at robobar.co.uk (Ronald S H Khoo) writes:

>SCO's 3.2.0 Dev Sys terminfo curses seems to go crazy (*) when fed
>8 bit characters -- Does anyone know if it's fixed in the rev 2.0
[...]

>-- 
>(*) "crazy" in this sense: with this program -

>	$ cat foo.c
>	#include <curses.h>
>	main()
>	{	initscr();
>		addch(0243);
>		refresh();
>		endwin();
>	}

I find that the following works quite well, when making use of the IBM
8 bit character set on the XENIX console:

int c;
addch((chtype)(c&0377));

and also:

char * p;
addch((chtype)((*p)&0377));

I experienced problems similar to yours, and came up with this after
a bit of playing.  Perhaps someone can give a complete explanation as
to why it works.

Mark Proudman
mfp at sobeco.COM | uunet!spectr!mark
(514) 849 UNIX



More information about the Comp.unix.sysv386 mailing list