Couple of bugs fixed: terminal not sane after shell and cursor changing shape

This commit is contained in:
Jacobo Tarrío
2000-04-18 20:50:23 +00:00
parent 67e6886083
commit d69c57942c
3 changed files with 4 additions and 11 deletions

View File

@@ -283,7 +283,7 @@ int ShellToDos(char* command, char* message, int cls, int cursor, int swap, int
if(CFG->screenpalette[16])
gvid->setpalette(gvid->orig.color.palette);
#ifdef __UNIX__
#if defined(__UNIX__) and not defined(__USE_NCURSES__)
gkbd_tty_reset();
#endif
@@ -343,11 +343,11 @@ int ShellToDos(char* command, char* message, int cls, int cursor, int swap, int
status = 0;
// Restore keyboard settings
gkbd.Init();
#ifdef __USE_NCURSES__
clearok(stdscr, TRUE);
resetty();
#else
gkbd.Init();
#endif
// Pause if needed