1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 06:31:21 +00:00

Revert "Minor bugs fixed in clear_console functions"

This reverts commit 877089972b.
This commit is contained in:
FellippeHeitor 2019-03-31 21:00:43 -03:00
parent 71a7150861
commit 982ea40daf

View file

@ -11217,8 +11217,7 @@ static bool clear_console(void)
return false;
ret = (GetConsoleScreenBufferInfo(hConsole, &csbi) &&
FillConsoleOutputCharacterA(console, ' ',
csbi.dwSize.X * csbi.dwSize.Y, origin, &nCharsWritten) &&
SetConsoleCursorPosition(hConsole, origin));
csbi.dwSize.X * csbi.dwSize.Y, origin, &nCharsWritten));
CloseHandle(console);
return ret;
}
@ -11241,8 +11240,6 @@ static int putc_tty(int c)
static bool clear_console(void)
{
int err;
if (!isatty(fileno(stdout)))
return false;
ttyfd = open("/dev/tty", O_RDWR);
if (ttyfd == -1) {
// No controlling TTY for the process?