#include <screen.h>
Public Methods | |
void | init () |
unsigned int | display (char *str, unsigned char x, unsigned char y) |
unsigned int | display (unsigned int number, unsigned char x, unsigned char y) |
unsigned int | display (void *pointer, unsigned char x, unsigned char y) |
void | print (char *str, bool newline=true) |
void | print (unsigned int 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 () |
Protected Attributes | |
char * | buffer |
unsigned char | print_pos |
Static Protected Attributes | |
const unsigned int | WIDTH = 80 |
const unsigned int | HEIGHT = 25 |
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 int 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.
|
|
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 int 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-2002 Dan Helfman