Article View: gnu.chess
Article #4115Rough ncurses fix
From: Nikhil Nair
Date: Tue, 05 Mar 1996 00:00
Date: Tue, 05 Mar 1996 00:00
40 lines
1556 bytes
1556 bytes
Hi all, The following, suggested to me by Henny Wilbrink in private email, seems to fix the lack of keyboard echo under ncurses-1.9.8a (Linux ELF). I'd like to know two things, though: 1. Does this break gnuchessn &c under other curses versions/platforms? 2. Is this clean enough? a curses/gnuchess expert could probably do it better? ... Here's a unified diff to uxdsp.c and nuxdsp.c: --------------------------------------- diff -u nuxdsp.c~ nuxdsp.c --- nuxdsp.c~ Sun Jul 2 04:51:07 1995 +++ nuxdsp.c Tue Mar 5 01:24:11 1996 @@ -89,6 +89,7 @@ signal (SIGQUIT, Die); initscr (); crmode (); + echo (); /* needed for ncurses */ #else mycnt1 = mycnt2 = 0; #endif /* MSDOS */ diff -u uxdsp.c~ uxdsp.c --- uxdsp.c~ Sun Jul 2 04:51:08 1995 +++ uxdsp.c Tue Mar 5 01:23:21 1996 @@ -63,6 +63,7 @@ signal (SIGQUIT, Die); initscr (); crmode (); + echo (); /* needed for ncurses */ #else mycnt1 = mycnt2 = 0; #endif /* MSDOS */ --------------------------------------- Hope this helps, Nikhil.
Technical Details
Message-ID:
<Pine.SOL.3.91.960305200055.7974A-100000@ursa.cus.cam.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,ce78023a062dae27,start X-Google-Attributes: gid10d71d,public From: Nikhil Nair <nn201@cus.cam.ac.uk> Subject: Rough ncurses fix Date: 1996/03/05 Message-ID: <Pine.SOL.3.91.960305200055.7974A-100000@ursa.cus.cam.ac.uk> X-Deja-AN: 141989309 to: bug-gnu-chess@prep.ai.mit.edu organization: University of Cambridge, England content-type: TEXT/PLAIN; charset=US-ASCII mime-version: 1.0 newsgroups: gnu.chess