mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 15:25:01 +00:00
"Line-breakout optimization" now defaults to off (i.e., typeahead(-1)).
It has never really worked correctly, AFAICT, and it's one of the leading causes of complaints about PDCurses. I've made the minimum necessary change -- just setting the flag to FALSE on startup. So, if someone actually wants this, they can still enable it with typeahead(0).
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.4 2004/01/02 05:50:05 mark Exp $";
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.5 2005/12/11 05:51:23 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
static unsigned short *saved_screen = NULL;
|
||||
@@ -214,8 +214,7 @@ int ds=0;
|
||||
internal->save_key_modifiers = FALSE;
|
||||
internal->return_key_modifiers = FALSE;
|
||||
internal->echo = echo;
|
||||
/* under System V Curses, typeahead checking is enabled by default */
|
||||
internal->refrbrk = TRUE; /* allow premature end of refresh*/
|
||||
internal->refrbrk = FALSE; /* no premature end of refresh*/
|
||||
internal->video_seg = 0xb000; /* Base screen segment addr */
|
||||
internal->video_ofs = 0x0; /* Base screen segment ofs */
|
||||
internal->video_page = 0; /* Current Video Page */
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.1 2001/01/10 08:31:11 mark Exp $";
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.2 2005/12/11 05:51:24 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/*man-start*********************************************************************
|
||||
@@ -251,8 +251,7 @@ bool echo;
|
||||
internal->raw_inp = FALSE; /* tty I/O modes */
|
||||
internal->cbreak = TRUE;
|
||||
internal->echo = echo;
|
||||
/* under System V Curses, typeahead checking is enabled by default */
|
||||
internal->refrbrk = TRUE; /* allow premature end of refresh*/
|
||||
internal->refrbrk = FALSE; /* no premature end of refresh*/
|
||||
#if !defined(OS2) && !defined(XCURSES)
|
||||
internal->video_seg = 0xb000; /* Base screen segment addr */
|
||||
internal->video_ofs = 0x0; /* Base screen segment ofs */
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <curses.h>
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.3 2002/01/12 04:04:18 mark Exp $";
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.4 2005/12/11 05:51:24 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
#ifdef EMXVIDEO
|
||||
@@ -183,8 +183,7 @@ int PDC_scr_open(SCREEN *internal, bool echo)
|
||||
internal->save_key_modifiers = FALSE;
|
||||
internal->return_key_modifiers = FALSE;
|
||||
internal->echo = echo;
|
||||
/* under System V Curses, typeahead checking is enabled by default */
|
||||
internal->refrbrk = TRUE; /* allow premature end of refresh*/
|
||||
internal->refrbrk = FALSE; /* no premature end of refresh*/
|
||||
internal->video_page = 0; /* Current Video Page */
|
||||
internal->visible_cursor= TRUE; /* Assume that it is visible */
|
||||
internal->cursor = PDC_get_cursor_mode();
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <curses.h>
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.11 2005/12/10 14:24:59 wmcbrine Exp $";
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.12 2005/12/11 05:51:24 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
#define PDC_RESTORE_NONE 0
|
||||
@@ -360,8 +360,7 @@ int PDC_scr_open(SCREEN *internal, bool echo)
|
||||
internal->save_key_modifiers = FALSE;
|
||||
internal->return_key_modifiers = FALSE;
|
||||
internal->echo = echo;
|
||||
/* under System V Curses, typeahead checking is enabled by default */
|
||||
internal->refrbrk = TRUE; /* allow premature end of refresh*/
|
||||
internal->refrbrk = FALSE; /* no premature end of refresh*/
|
||||
internal->video_seg = 0xb000; /* Base screen segment addr */
|
||||
internal->video_ofs = 0x0; /* Base screen segment ofs */
|
||||
internal->video_page = 0; /* Current Video Page */
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <curses.h>
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.3 2004/12/16 01:03:18 rexx Exp $";
|
||||
char *rcsid_PDCscrn = "$Id: pdcscrn.c,v 1.4 2005/12/11 05:51:24 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
bool GLOBAL_sb_on=FALSE;
|
||||
@@ -152,8 +152,7 @@ extern bool sb_started;
|
||||
internal->save_key_modifiers = FALSE;
|
||||
internal->return_key_modifiers = FALSE;
|
||||
internal->echo = echo;
|
||||
/* under System V Curses, typeahead checking is enabled by default */
|
||||
internal->refrbrk = TRUE; /* allow premature end of refresh*/
|
||||
internal->refrbrk = FALSE; /* no premature end of refresh*/
|
||||
internal->video_page = 0; /* Current Video Page */
|
||||
internal->visible_cursor= TRUE; /* Assume that it is visible */
|
||||
internal->cursor = 0;
|
||||
|
||||
Reference in New Issue
Block a user