Fix saving and restoring console cursor position.

This commit is contained in:
Jonas 'Sortie' Termansen 2017-01-21 17:41:02 +01:00
parent 73d984bca3
commit bdc791f692
1 changed files with 2 additions and 2 deletions

View File

@ -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 )