Skip to content

Commit 746807d

Browse files
Update Console.h
Add save and restore cursor position support.
1 parent bda863d commit 746807d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Console/retro/Console.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ namespace retro
117117
short rows = 0, cols = 0;
118118

119119
short cursorX, cursorY;
120+
short savedCursorX, savedCursorY;
120121

121122
Rect dirtyRect = {};
122123

@@ -161,6 +162,8 @@ namespace retro
161162
void ClearEntireLine();
162163
void ShowCursor(std::string args);
163164
void HideCursor(std::string args);
165+
void SaveCursorPosition(std::string args);
166+
void RestoreCursorPosition(std::string args);
164167
void SetCursorX(int newX);
165168
int GetCursorX();
166169
void SetCursorY(int newY);

0 commit comments

Comments
 (0)