#include <video_defines.h>
Go to the source code of this file.
Functions | |
int | putbyte (char ch) |
Prints character ch at the current location of the cursor. | |
void | putbytes (const char *s, int len) |
Prints the string s, starting at the current location of the cursor. | |
void | set_term_color (int color) |
Changes the foreground and background color of future characters printed on the console. | |
void | get_term_color (int *color) |
Writes the current foreground and background color of characters printed on the console into the argument color. | |
void | set_cursor (int row, int col) |
Sets the position of the cursor to the position (row, col). | |
void | get_cursor (int *row, int *col) |
Writes the current position of the cursor into the arguments row and col. | |
void | hide_cursor () |
Hides the cursor. | |
void | show_cursor () |
Shows the cursor. | |
void | clear_console () |
Clears the entire console. | |
void | draw_char (int row, int col, int ch, int color) |
Prints character ch with the specified color at position (row, col). | |
char | get_char (int row, int col) |
Returns the character displayed at position (row, col). |
This contains the prototypes for the console driver and eventually any macros, constants, or global variables you will need.
Fred Hacker (fhacker)
|
Clears the entire console.
|
|
Prints character ch with the specified color at position (row, col). If any argument is invalid, the function has no effect.
|
|
Returns the character displayed at position (row, col).
|
|
Writes the current position of the cursor into the arguments row and col.
|
|
Writes the current foreground and background color of characters printed on the console into the argument color.
|
|
Hides the cursor. Subsequent calls to putbytes must not cause the cursor to show again.
|
|
Prints character ch at the current location of the cursor.
If the character is a newline ('
|
|
Prints the string s, starting at the current location of the cursor.
If the string is longer than the current line, the string should fill up the current line and then continue on the next line. If the string exceeds available space on the entire console, the screen should scroll up one line, and then the string should continue on the new line. If '
|
|
Sets the position of the cursor to the position (row, col). Subsequent calls to putbytes should cause the console output to begin at the new position. If the cursor is currently hidden, a call to set_cursor() must not show the cursor.
|
|
Changes the foreground and background color of future characters printed on the console. If the color code is invalid, the function has no effect.
|
|
Shows the cursor. If the cursor is already shown, the function has no effect.
|