Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!sobeco!mfp From: mfp@sobeco.com (m.proudman) Newsgroups: comp.unix.sysv386 Subject: Re: SCO's curses Message-ID: <1991Apr11.022708.11563@sobeco.com> Date: 11 Apr 91 02:27:08 GMT References: <1991Mar22.211749.13292@robobar.co.uk> Sender: @sobeco.com Organization: Groupe Sobeco, Montreal, Canada Lines: 36 Nntp-Posting-Host: sobeco.sobeco.com In <1991Mar22.211749.13292@robobar.co.uk> ronald@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 > 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@sobeco.COM | uunet!spectr!mark (514) 849 UNIX