C# Class SharpOS.Kernel.ADC.X86.TextMode

Handles setting up and working with CGA/EGA/MDA text modes.
Mostrar archivo Open project: sharpos/SharpOS Class Usage Examples

Public Methods

Method Description
ClearScreen ( ) : void
ClearToEndOfLine ( ) : void

Clear to end of line

GetBufferHeight ( ) : int
GetCursor ( int &ret_x, int &ret_y ) : void
GetReadPosition ( ) : int
GetScreenSize ( int &ret_w, int &ret_h ) : void
GetWritePosition ( ) : int
MovePage ( int value ) : void
MoveTo ( int _x, int _y ) : void
RestoreAttributes ( ) : bool
SaveAttributes ( ) : bool
ScrollPage ( int value ) : void

Scrolls the text on the screen

ScrollPageWrite ( int value ) : void
SetAttributes ( TextColor _foreground, TextColor _background ) : void
SetCursor ( int _x, int _y ) : void
SetCursorSize ( byte _start, byte _end ) : void
SetReadPos ( int position ) : void
SetWritePos ( int position ) : void
Setup ( ) : void

ADC portion of the TextMode class setup. For X86, this function first locates the addresses of CRT controllers using color (EGA/CGA) or alternatively monochrome (MDA) display standards. Finally it determines the width and height of the text buffer.

WriteByte ( byte value ) : void
WriteChar ( byte value ) : void
WriteHex ( byte value ) : void

Private Methods

Method Description
HardwareCommand ( CRT_Indices index ) : int
HardwareCommand ( CRT_Indices index, byte value ) : void
HardwareCommand ( CRT_Indices index, ushort value ) : void

Method Details

ClearScreen() public static method

public static ClearScreen ( ) : void
return void

ClearToEndOfLine() public static method

Clear to end of line
public static ClearToEndOfLine ( ) : void
return void

GetBufferHeight() public static method

public static GetBufferHeight ( ) : int
return int

GetCursor() public static method

public static GetCursor ( int &ret_x, int &ret_y ) : void
ret_x int
ret_y int
return void

GetReadPosition() public static method

public static GetReadPosition ( ) : int
return int

GetScreenSize() public static method

public static GetScreenSize ( int &ret_w, int &ret_h ) : void
ret_w int
ret_h int
return void

GetWritePosition() public static method

public static GetWritePosition ( ) : int
return int

MovePage() public static method

public static MovePage ( int value ) : void
value int
return void

MoveTo() public static method

public static MoveTo ( int _x, int _y ) : void
_x int
_y int
return void

RestoreAttributes() public static method

public static RestoreAttributes ( ) : bool
return bool

SaveAttributes() public static method

public static SaveAttributes ( ) : bool
return bool

ScrollPage() public static method

Scrolls the text on the screen
public static ScrollPage ( int value ) : void
value int Positive value is down, negative is up
return void

ScrollPageWrite() public static method

public static ScrollPageWrite ( int value ) : void
value int
return void

SetAttributes() public static method

public static SetAttributes ( TextColor _foreground, TextColor _background ) : void
_foreground TextColor
_background TextColor
return void

SetCursor() public static method

public static SetCursor ( int _x, int _y ) : void
_x int
_y int
return void

SetCursorSize() public static method

public static SetCursorSize ( byte _start, byte _end ) : void
_start byte
_end byte
return void

SetReadPos() public static method

public static SetReadPos ( int position ) : void
position int
return void

SetWritePos() public static method

public static SetWritePos ( int position ) : void
position int
return void

Setup() public static method

ADC portion of the TextMode class setup. For X86, this function first locates the addresses of CRT controllers using color (EGA/CGA) or alternatively monochrome (MDA) display standards. Finally it determines the width and height of the text buffer.
public static Setup ( ) : void
return void

WriteByte() public static method

public static WriteByte ( byte value ) : void
value byte
return void

WriteChar() public static method

public static WriteChar ( byte value ) : void
value byte
return void

WriteHex() public static method

public static WriteHex ( byte value ) : void
value byte
return void