Path: utzoo!utgpu!watmath!clyde!att!pacbell!hoptoad!peora!rtmvax!tarpit!rd From: rd@tarpit.UUCP (Bob Thrush) Newsgroups: comp.unix.microport Subject: Re: term.c for rn on uport 286 Summary: It's really a problem with the termcap emulation. Keywords: rn, term.c Message-ID: <316@tarpit.UUCP> Date: 20 Nov 88 04:35:13 GMT References: <102@swamps.UUCP> Reply-To: rd@tarpit.UUCP (Bob Thrush) Organization: Automation Intelligence,Inc; Orlando,FL Lines: 41 In article <102@swamps.UUCP> val@swamps.UUCP (val) writes: >I am wondering if anyone has modified the rn term.c for use with >Microport SV/AT. Would someone be kind enough to mail me a copy? >Thanks. > -Val Christian >...rutgers!rochester!kodak!swamps!val >...killer!swamps!val I am using V/AT 2.3.1 and found that the curses function `tgetstr' was not working correctly. Your mileage may vary with the 2.4 version. I discovered that the following patch would work around the curses problem: ------------ snip here ----------- *** term.c Fri Nov 21 17:39:32 1986 --- term.c.uport Sat Nov 19 23:28:06 1988 *************** *** 33,39 **** --- 33,45 ---- /* guarantee capability pointer != Nullch */ /* (I believe terminfo will ignore the &tmpaddr argument.) */ + #define MICROPORT_286_CURSES_BUG + + #ifdef MICROPORT_286_CURSES_BUG + #define Tgetstr(key) ((tmpstr = tgetstr(key,tcarea)) ? tmpstr : nullstr) + #else #define Tgetstr(key) ((tmpstr = tgetstr(key,&tmpaddr)) ? tmpstr : nullstr) + #endif MICROPORT_286_CURSES_BUG #ifdef PUSHBACK struct keymap { ------------ and here ----------- Hope this helps. -- Bob Thrush UUCP: {rtmvax,ucf-cs}!tarpit!rd Automation Intelligence, 1200 W. Colonial Drive, Orlando, Florida 32804