From bdc791f692b01277113f8464917578b9ff20d27f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 21 Jan 2017 17:41:02 +0100 Subject: [PATCH] Fix saving and restoring console cursor position. --- kernel/textterminal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )