Commit bdc791f6 authored by Jonas Termansen's avatar Jonas Termansen

Fix saving and restoring console cursor position.

parent 73d984bc
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment