Fix bug with cursor position when OS shell starts

This commit is contained in:
Stas Degteff 2005-09-09 21:51:26 +00:00
parent d2691d4024
commit 83f9b1abd3

View File

@ -273,7 +273,7 @@ int ShellToDos(char* command, char* message, int cls, int cursor, int pause) {
envn++; envn++;
} }
#endif #endif
} }
#endif #endif
// Store the screen // Store the screen
@ -311,6 +311,8 @@ int ShellToDos(char* command, char* message, int cls, int cursor, int pause) {
gkbd_tty_reset(); gkbd_tty_reset();
#endif #endif
// Return cursor into 1st column
puts("");
// Write message on screen // Write message on screen
if(*message) if(*message)
puts(message); puts(message);
@ -322,7 +324,7 @@ int ShellToDos(char* command, char* message, int cls, int cursor, int pause) {
vcurset(gvid->orig.cursor.start, gvid->orig.cursor.end); vcurset(gvid->orig.cursor.start, gvid->orig.cursor.end);
vcurshow(); vcurshow();
} }
HandleGEvent(EVTT_BREAKLOOP); HandleGEvent(EVTT_BREAKLOOP);
// Shell return value // Shell return value
@ -407,7 +409,7 @@ int ShellToDos(char* command, char* message, int cls, int cursor, int pause) {
// Set palette if changes were specified // Set palette if changes were specified
if(CFG->screenpalette[16]) if(CFG->screenpalette[16])
gvid->setpalette(CFG->screenpalette); gvid->setpalette(CFG->screenpalette);
// Restore prompt // Restore prompt
#ifndef __UNIX__ #ifndef __UNIX__
if(CFG->switches.get(dosprompt)) { if(CFG->switches.get(dosprompt)) {