diff --git a/kernel/textterminal.cpp b/kernel/textterminal.cpp index 4006c440..39cc7cad 100644 --- a/kernel/textterminal.cpp +++ b/kernel/textterminal.cpp @@ -841,12 +841,12 @@ void TextTerminal::RunAnsiCommand(TextBuffer* textbuf, char c) case 's': // Save cursor position. { ansisavedposx = column; - ansisavedposx = line; + ansisavedposy = line; } break; case 'u': // Restore cursor position. { column = ansisavedposx; - line = ansisavedposx; + line = ansisavedposy; if ( width <= column ) column = width-1; if ( height <= line )