Go to the source code of this file.
Data Structures | |||||
| struct | console | ||||
| Virtual console structure. More... | |||||
Defines | |||||
| #define | BLACK 0x00 | ||||
| Black color. | |||||
| #define | BLUE 0x01 | ||||
| Blue color. | |||||
| #define | GREEN 0x02 | ||||
| Green color. | |||||
| #define | CYAN 0x03 | ||||
| Cyan color. | |||||
| #define | RED 0x04 | ||||
| Red color. | |||||
| #define | MAGENTA 0x05 | ||||
| Magenta color. | |||||
| #define | BROWN 0x06 | ||||
| Brown color. | |||||
| #define | LIGHT_GREY 0x07 | ||||
| Light grey color. | |||||
| #define | GREY 0x08 | ||||
| Grey color. | |||||
| #define | LIGHT_BLUE 0x09 | ||||
| Light blue color. | |||||
| #define | LIGHT_GREEN 0x0A | ||||
| Light green color. | |||||
| #define | LIGHT_CYAN 0x0B | ||||
| Light cyan color. | |||||
| #define | LIGHT_RED 0x0C | ||||
| Light red color. | |||||
| #define | LIGHT_MAGENTA 0x0D | ||||
| Light magenta color. | |||||
| #define | YELLOW 0x0E | ||||
| Yellow color. | |||||
| #define | WHITE 0x0F | ||||
| White color. | |||||
| #define | DEFAULT_COLOR 0x07 | ||||
| The default color for the text of the console. | |||||
| #define | KEYB_BUF_DIM 32 | ||||
| Size of the console keyboard buffer. | |||||
| #define | K_TOT_VIR_CONS 10 | ||||
| Number of virtual consoles (must be at least 1). | |||||
Typedefs | |||||
| typedef console | console_t | ||||
| Virtual console structure. | |||||
Functions | |||||
| console_t * | get_console_addr (int c) | ||||
Get the address of a console structure.
| |||||
| int | get_curr_console () | ||||
Get the current console id.
| |||||
| bool | set_curr_console (int c) | ||||
Set the current console.
| |||||
| bool | switch_to_console (int c) | ||||
Change the current console and refresh the screen.
| |||||
| void | clrscr () | ||||
| Clear the screen. | |||||
| byte | get_color () | ||||
Get the current text color of the console.
| |||||
| void | set_color (byte attrib) | ||||
Set the text color for the current console.
| |||||
| void | scroll_up () | ||||
| Scroll the console up. | |||||
| void | gotoxy (int x, int y) | ||||
Place the cursor at the (x, y) coordinates.
| |||||
| void | kputchar (int c) | ||||
Put a character on the current console.
| |||||
| int | kprintf (const char *fmt,...) | ||||
Print a string to the current console.
| |||||
| void | init_main_console () | ||||
| Initialize the special console #0 as the video memory buffer. | |||||
| void | create_virtual_console () | ||||
Allocate and initialize memory space for virtual consoles.
| |||||
Definition in file console.h.
|
|
Black color.
|
|
|
Blue color.
|
|
|
Brown color.
|
|
|
Cyan color.
|
|
|
The default color for the text of the console.
|
|
|
Green color.
|
|
|
Grey color.
|
|
|
Number of virtual consoles (must be at least 1).
|
|
|
Size of the console keyboard buffer.
|
|
|
Light blue color.
|
|
|
Light cyan color.
|
|
|
Light green color.
|
|
|
Light grey color.
|
|
|
Light magenta color.
|
|
|
Light red color.
|
|
|
Magenta color.
|
|
|
Red color.
|
|
|
White color.
|
|
|
Yellow color.
|
1.2.18