kernel.dev.console



class Console;
This is the true interface to the console driver.

static const uint COLUMNS;
The number of columns and lines on the screen.

static const ubyte DEFAULTCOLORS;
The default color.

static const int TABSTOP;
The width of a tab

static void switchToHigherHalfVirtualAddress();
Notifies the driver that the kernel moved to high memory, and it should also move its own references to refer to higher memory.

static ubyte[] segment();
This will yield a reference to the video memory.

static ErrorVal initialize();
This will initialize the console driver.

static long getGlobalY();
Returns the current y coordinate of the cursor.

static void getPosition(out int x, out int y);
This method will return the current location of the cursor.

static synchronized void setPosition(int x, int y);
This method will set the current location of the cursor to the x and y given.

static synchronized void putChar(char c);
This method will post the character to the screen at the current location.

static synchronized void putString(char[] s);
This mehtod will post a string to the screen at the current location.

static void resetColors();
This function sets the console colors back to their defaults.

static void setForeColor(Color newColor);
This function will set the text foreground to a new color.

static void setBackColor(Color newColor);
This function will set the text background to a new color.

static void setColors(Color foreColor, Color backColor);
This function will set both the foreground and background colors.

static synchronized void scrollDisplay(uint numLines);
This function will scroll the display the given number of lines.

Params:
uint numLines The number of lines to scroll the display up.

static uint width();
This function will return the width of the console in characters.

Returns:
The number of columns the console can display.

static uint height();
This function will return the height of the console in characters.

Returns:
The number of rows the console can display.

static void putCharUnsafe(char foo);
This function will print a character at the current location without locking. It may not print in order.

static void putStringUnsafe(char[] foo);
This function will print a string at the current location without locking. It may not print in order or even interleave characters with other strings.


Page generated by Ddoc.