Declaration of the setcursorposition() and getcursorposition() functions for manipulating the cursor position on Windows terminals. More...

Go to the source code of this file.
Macros | |
| #define | __CURSOR_H__ |
Functions | |
| void | disableinputecho (void) |
| Disable echoing input until enableinputecho() is called. | |
| void | enableinputecho (void) |
| Enable echoing input, which should be the default mode. Call this only after calling disableinputecho();. | |
| void | setcursorposition (int row, int column) |
| Move the text cursor to the specified screen coordinates. | |
| void | getcursorposition (int *row, int *column) |
| Retrieve the current cursor position in the console window. | |
Declaration of the setcursorposition() and getcursorposition() functions for manipulating the cursor position on Windows terminals.
Definition in file helpers/cursor.h.
| #define __CURSOR_H__ |
Definition at line 8 of file helpers/cursor.h.
| void disableinputecho | ( | void | ) |
Disable echoing input until enableinputecho() is called.
Definition at line 112 of file cursor.c.
References _disableInputEcho(), and inputEchoDisabled.
Referenced by Flyweight_Exercise().
| void enableinputecho | ( | void | ) |
Enable echoing input, which should be the default mode. Call this only after calling disableinputecho();.
Definition at line 123 of file cursor.c.
References _enableInputEcho(), and inputEchoDisabled.
Referenced by Flyweight_Exercise().
| void getcursorposition | ( | int * | row, |
| int * | column | ||
| ) |
Retrieve the current cursor position in the console window.
| row | Returns the row index from the top, starting at 0. |
| column | Returns the column index from the left, starting at 0. |
Definition at line 143 of file cursor.c.
References _disableInputEcho(), _enableInputEcho(), inputEchoDisabled, split(), SplitList_Clear(), SplitList::strings, and SplitList::strings_count.
Referenced by Flyweight_Exercise().
| void setcursorposition | ( | int | row, |
| int | column | ||
| ) |
Move the text cursor to the specified screen coordinates.
| row | Row index from top, starting at 0. |
| column | Column index from left, starting at 0 |
Definition at line 134 of file cursor.c.
Referenced by Flyweight_Exercise().