[xiph-commits] r17792 - trunk/squishyball
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Mon Jan 31 18:20:00 PST 2011
Author: xiphmont
Date: 2011-01-31 18:20:00 -0800 (Mon, 31 Jan 2011)
New Revision: 17792
Modified:
trunk/squishyball/mincurses.c
Log:
Correct/tweak terminal signal setup (raw not cbreak, disable signals,
pass characters)
Modified: trunk/squishyball/mincurses.c
===================================================================
--- trunk/squishyball/mincurses.c 2011-02-01 01:14:21 UTC (rev 17791)
+++ trunk/squishyball/mincurses.c 2011-02-01 02:20:00 UTC (rev 17792)
@@ -334,11 +334,11 @@
term.c_lflag &= ~(ECHO | ECHONL);
term.c_iflag &= ~(ICRNL | INLCR | IGNCR);
term.c_oflag &= ~(ONLCR);
- term.c_lflag |= ISIG;
+ term.c_lflag &= ~(ISIG);
term.c_cc[VMIN] = 1;
term.c_cc[VTIME] = 0;
#else
- term.sg_flags |= CBREAK;
+ term.sg_flags |= RAW;
term.sg_flags &= ~(ECHO | CRMOD);
#endif
SET_TTY(outfd,&term);
@@ -457,8 +457,8 @@
}
int min_showcur(){
- if(cursor_normal){
- min_putp(cursor_normal);
+ if(cursor_visible){
+ min_putp(cursor_visible);
return 0;
}else
return 1;
More information about the commits
mailing list