- /** Moves the cursor up the given number of lines. */
- #define ESC_CURSOR_UP(L) ANSI_ESCAPE_SEQUENCE(#L "A")
+ /** Restores the cursor position to the last position saved with \ref ESC_CURSOR_POS_SAVE. */
+ #define ESC_CURSOR_POS_RESTORE ANSI_ESCAPE_SEQUENCE("u")
+
+ /** Sets the cursor position to the given line and column.
+ *
+ * \param[in] Line Line number to position the cursor at
+ * \param[in] Column Column number to position the cursor at
+ */
+ #define ESC_CURSOR_POS(Line, Column) ANSI_ESCAPE_SEQUENCE(#Line ";" #Column "H")