#include <screen.h>
Public Member Functions | |
| void | init () |
| Size | display (char *str, unsigned char x, unsigned char y) |
| Size | display_line (char *str, unsigned char x, unsigned char y) |
| Size | display (unsigned number, unsigned char x, unsigned char y) |
| Size | display (void *pointer, unsigned char x, unsigned char y) |
| void | print (char *str, bool newline=true) |
| void | print (unsigned number, bool newline=true) |
| void | print (void *pointer, bool newline=true) |
| void | print () |
| void | clear () |
| void | move_cursor (unsigned char x, unsigned char y) |
| void | disable_cursor () |
| void | scroll () |
Static Public Attributes | |
| const Size | WIDTH = 80 |
| const Size | HEIGHT = 25 |
Protected Attributes | |
| char * | buffer |
| unsigned char | print_pos |
Static Protected Attributes | |
| const unsigned char | DEFAULT_COLOR = 11 |
Each screen character is two bytes: One for the character itself and one for its color code.
|
|
Fill the screen buffer with spaces.
|
|
|
Turn off the hardware cursor.
|
|
||||||||||||||||
|
Display a pointer as a hex string on screen. Return a count of characters displayed. |
|
||||||||||||||||
|
Display an unsigned as a hex string on screen. Return a count of characters displayed. |
|
||||||||||||||||
|
Display the given character string at the given coordinates on screen. x is 0 to WIDTH-1, y is 0 to HEIGHT-1. Origin is the upper left of screen. Return a count of characters displayed. |
|
||||||||||||||||
|
Display the given character string at the given coordinates on screen, clearing the remainder of the line if it isn't WIDTH characters wide. Return a count of characters displayed, not counting the line remainder. |
|
|
Initialize the screen buffer.
|
|
||||||||||||
|
Move the hardware cursor to the given location. This cursor is completely independent of any string display functions. |
|
|
Print a newline.
|
|
||||||||||||
|
Print a pointer on the bottom line of the screen, scrolling if newline is true.
|
|
||||||||||||
|
Print an unsigned as a hex string on the bottom line of the screen, scrolling if newline is true.
|
|
||||||||||||
|
Print the given character string on the bottom line of the screen, scrolling if newline is true.
|
|
|
Scroll the entire screen up one line.
|
|
|
actual VGA buffer
|
|
|
|
|
|
|
|
|
x position of print() "cursor"
|
|
|
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman