From 20074810231fe6fffeb08e936dbc7f072b9cf421 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 11 Dec 2005 05:51:24 +0000 Subject: [PATCH] "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). --- dos/pdcscrn.c | 5 ++--- flexos/pdcscrn.c | 5 ++--- os2/pdcscrn.c | 5 ++--- win32/pdcscrn.c | 5 ++--- x11/pdcscrn.c | 5 ++--- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/dos/pdcscrn.c b/dos/pdcscrn.c index c0c94121..55cd48b4 100644 --- a/dos/pdcscrn.c +++ b/dos/pdcscrn.c @@ -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 */ diff --git a/flexos/pdcscrn.c b/flexos/pdcscrn.c index 517c97ee..0ced7ad9 100644 --- a/flexos/pdcscrn.c +++ b/flexos/pdcscrn.c @@ -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 */ diff --git a/os2/pdcscrn.c b/os2/pdcscrn.c index 31fab36b..92be2dd7 100644 --- a/os2/pdcscrn.c +++ b/os2/pdcscrn.c @@ -25,7 +25,7 @@ #include #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(); diff --git a/win32/pdcscrn.c b/win32/pdcscrn.c index a692f465..45a0c1a3 100644 --- a/win32/pdcscrn.c +++ b/win32/pdcscrn.c @@ -22,7 +22,7 @@ #include #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 */ diff --git a/x11/pdcscrn.c b/x11/pdcscrn.c index b9533f47..3010de93 100644 --- a/x11/pdcscrn.c +++ b/x11/pdcscrn.c @@ -24,7 +24,7 @@ #include #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;