OldSchool Library
|
Debugging features. More...
Macros | |
#define | oslPrintf(format...) |
Prints formatted text to the current position of the cursor. | |
#define | oslPrintf_xy(x, y, str, format...) |
Prints formatted text at a specific position on the screen. | |
#define | oslCls() |
Clears the screen (to black) and resets the cursor to the top-left corner of the screen. | |
#define | oslMoveTo(x, y) |
Moves the cursor to a place on the screen. | |
Debugging features.
This section includes functions and macros for debugging, such as printing formatted text to the screen and controlling the debug console.
#define oslPrintf | ( | format... | ) |
Prints formatted text to the current position of the cursor.
This macro uses a format string similar to printf.
format | Formatted text. |
#define oslPrintf_xy | ( | x, | |
y, | |||
str, | |||
format... ) |
Prints formatted text at a specific position on the screen.
This macro prints formatted text at the specified screen coordinates.
x | X-coordinate (in characters). |
y | Y-coordinate (in characters). |
str | Formatted string. |
format | Additional formatted text. |
#define oslCls | ( | ) |
Clears the screen (to black) and resets the cursor to the top-left corner of the screen.
This macro clears the screen and moves the cursor to the origin.
#define oslMoveTo | ( | x, | |
y ) |
Moves the cursor to a place on the screen.
This macro moves the cursor to the specified screen coordinates, using character units.
x | X-coordinate (in characters). |
y | Y-coordinate (in characters). |