remove inappropriate PDCURSES use of stdin,stdout
Use of stdout and stdin was inappropriate for general curses. Windows GUI links with PDCURSES wingui code.
This commit is contained in:
@@ -860,6 +860,7 @@ void
|
|||||||
curses_wait_synch(void)
|
curses_wait_synch(void)
|
||||||
{
|
{
|
||||||
if (iflags.raw_printed) {
|
if (iflags.raw_printed) {
|
||||||
|
#ifndef PDCURSES
|
||||||
int chr;
|
int chr;
|
||||||
/*
|
/*
|
||||||
* If any message has been issued via raw_print(), make the user
|
* If any message has been issued via raw_print(), make the user
|
||||||
@@ -873,6 +874,7 @@ curses_wait_synch(void)
|
|||||||
do {
|
do {
|
||||||
chr = fgetc(stdin);
|
chr = fgetc(stdin);
|
||||||
} while (chr > 0 && chr != C('j') && chr != C('m') && chr != '\033');
|
} while (chr > 0 && chr != C('j') && chr != C('m') && chr != '\033');
|
||||||
|
#endif
|
||||||
iflags.raw_printed = 0;
|
iflags.raw_printed = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user