Fix crash on exit on gnome-terminal 3.4.1.1
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3805
This commit is contained in:
parent
e60a44755a
commit
7e8381037e
2 changed files with 7 additions and 4 deletions
|
@ -2105,8 +2105,9 @@ void DEBUG_SetupConsole(void) {
|
|||
WIN32_Console();
|
||||
#else
|
||||
tcgetattr(0,&consolesettings);
|
||||
printf("\e[8;50;80t"); //resize terminal
|
||||
fflush(NULL);
|
||||
//curses must be inited first in order to catch the resize (is an event)
|
||||
// printf("\e[8;50;80t"); //resize terminal
|
||||
// fflush(NULL);
|
||||
#endif
|
||||
memset((void *)&dbg,0,sizeof(dbg));
|
||||
debugging=false;
|
||||
|
@ -2123,8 +2124,8 @@ void DEBUG_ShutDown(Section * /*sec*/) {
|
|||
#ifndef WIN32
|
||||
tcsetattr(0, TCSANOW,&consolesettings);
|
||||
// printf("\e[0m\e[2J"); //Seems to destroy scrolling
|
||||
printf("\ec");
|
||||
fflush(NULL);
|
||||
// printf("\ec"); //Doesn't seem to be needed anymore
|
||||
// fflush(NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -274,6 +274,8 @@ void DBGUI_StartUp(void) {
|
|||
nodelay(dbg.win_main,true);
|
||||
keypad(dbg.win_main,true);
|
||||
#ifndef WIN32
|
||||
printf("\e[8;50;80t");
|
||||
fflush(NULL);
|
||||
resizeterm(50,80);
|
||||
touchwin(dbg.win_main);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue