C# Class SharpOS.Kernel.ADC.TextMode

Mostrar archivo Open project: sharpos/SharpOS Class Usage Examples

Public Methods

Method Description
RefreshCursor ( ) : void

Makes sure the cursor displayed on the screen is in sync with the internal cursor (used to position new Write() data).

Write ( CString8 str ) : void
Write ( PString8 str ) : void
Write ( bool value ) : void

Writes an bool to the screen boolean value to write

Write ( byte str ) : void
Write ( byte str, int len ) : void

Common Write() implementation. Serves Write(CString8*), Write(PString8*), and Write(byte*).

Write ( byte str, int strLen, int offset, int len ) : void
Write ( int value ) : void

Writes an Int32 to the screen in decimal format.

Write ( int value, bool hex ) : void

Writes an Int32 to the screen, either in decimal or hexadecimal format.

Write ( int value, bool hex, int minSize ) : void

Writes an Int32 to the screen, either in decimal or hexadecimal format.

Write ( string message ) : void

Writes a 16-bit string to the screen.

Write ( string message, int value ) : void
WriteLine ( ) : void

Writes a newline to the screen.

WriteLine ( CString8 message ) : void

Writes a CString8* to the screen, followed by a newline.

WriteLine ( CString8 message, int value ) : void
WriteLine ( CString8 message, int value, bool hex ) : void

Writes the string message to the screen, then the Int32 value, followed by a newline.

WriteLine ( PString8 message ) : void

Writes a CString8* to the screen, followed by a newline.

WriteLine ( PString8 message, int value ) : void
WriteLine ( PString8 message, int value, bool hex ) : void

Writes the string message to the screen, then the Int32 value, followed by a newline.

WriteLine ( byte message ) : void

Writes a CString8* to the screen, followed by a newline.

WriteLine ( byte message, int value ) : void
WriteLine ( byte message, int value, bool hex ) : void

Writes the string message to the screen, then the Int32 value, followed by a newline.

WriteLine ( string message ) : void

Writes a string to the screen, followed by a newline.

WriteLine ( string message, int value ) : void
WriteLine ( string message, int value, bool hex ) : void

Writes the string message to the screen, then the Int32 value, followed by a newline.

WriteLine ( string message, int value, bool hex, string message2 ) : void
WriteLine ( string message, int value, string message2 ) : void
WriteSubstring ( CString8 message, int offset, int len ) : void

Writes len characters of the string message to the screen, starting with the character at index offset.

WriteSubstring ( PString8 message, int offset, int len ) : void

Writes len characters of the string message to the screen, starting with the character at index offset.

WriteSubstring ( byte message, int offset, int len ) : void

Writes len characters of the string message to the screen, starting with the character at index offset.

WriteSubstring ( string message, int offset, int len ) : void

Writes len characters of the string message to the screen, starting with the character at index offset.

Private Methods

Method Description
ClearScreen ( ) : void
ClearToEndOfLine ( ) : void
GetBufferHeight ( ) : int
GetCursor ( int &ret_x, int &ret_y ) : void
GetReadPosition ( ) : int
GetScreenSize ( int &ret_w, int &ret_h ) : void
GetWritePosition ( ) : int
MoveTo ( int _x, int _y ) : void
RestoreAttributes ( ) : bool
SaveAttributes ( ) : bool
ScrollPage ( 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
Setup ( ) : void
WriteByte ( byte value ) : void
WriteChar ( byte value ) : void
WriteHex ( byte value ) : void
WriteNumber ( int value ) : void
WriteNumber ( int value, bool hex ) : void

Method Details

RefreshCursor() public static method

Makes sure the cursor displayed on the screen is in sync with the internal cursor (used to position new Write() data).
public static RefreshCursor ( ) : void
return void

Write() public static method

public static Write ( CString8 str ) : void
str SharpOS.Kernel.Foundation.CString8
return void

Write() public static method

public static Write ( PString8 str ) : void
str SharpOS.Kernel.Foundation.PString8
return void

Write() public static method

Writes an bool to the screen boolean value to write
public static Write ( bool value ) : void
value bool
return void

Write() public static method

public static Write ( byte str ) : void
str byte
return void

Write() public static method

Common Write() implementation. Serves Write(CString8*), Write(PString8*), and Write(byte*).
public static Write ( byte str, int len ) : void
str byte
len int
return void

Write() public static method

public static Write ( byte str, int strLen, int offset, int len ) : void
str byte
strLen int
offset int
len int
return void

Write() public static method

Writes an Int32 to the screen in decimal format.
public static Write ( int value ) : void
value int
return void

Write() public static method

Writes an Int32 to the screen, either in decimal or hexadecimal format.
public static Write ( int value, bool hex ) : void
value int
hex bool
return void

Write() public static method

Writes an Int32 to the screen, either in decimal or hexadecimal format.
public static Write ( int value, bool hex, int minSize ) : void
value int
hex bool
minSize int
return void

Write() public static method

Writes a 16-bit string to the screen.
public static Write ( string message ) : void
message string
return void

Write() public static method

public static Write ( string message, int value ) : void
message string
value int
return void

WriteLine() public static method

Writes a newline to the screen.
public static WriteLine ( ) : void
return void

WriteLine() public static method

Writes a CString8* to the screen, followed by a newline.
public static WriteLine ( CString8 message ) : void
message SharpOS.Kernel.Foundation.CString8
return void

WriteLine() public static method

public static WriteLine ( CString8 message, int value ) : void
message SharpOS.Kernel.Foundation.CString8
value int
return void

WriteLine() public static method

Writes the string message to the screen, then the Int32 value, followed by a newline.
public static WriteLine ( CString8 message, int value, bool hex ) : void
message SharpOS.Kernel.Foundation.CString8
value int
hex bool
return void

WriteLine() public static method

Writes a CString8* to the screen, followed by a newline.
public static WriteLine ( PString8 message ) : void
message SharpOS.Kernel.Foundation.PString8
return void

WriteLine() public static method

public static WriteLine ( PString8 message, int value ) : void
message SharpOS.Kernel.Foundation.PString8
value int
return void

WriteLine() public static method

Writes the string message to the screen, then the Int32 value, followed by a newline.
public static WriteLine ( PString8 message, int value, bool hex ) : void
message SharpOS.Kernel.Foundation.PString8
value int
hex bool
return void

WriteLine() public static method

Writes a CString8* to the screen, followed by a newline.
public static WriteLine ( byte message ) : void
message byte
return void

WriteLine() public static method

public static WriteLine ( byte message, int value ) : void
message byte
value int
return void

WriteLine() public static method

Writes the string message to the screen, then the Int32 value, followed by a newline.
public static WriteLine ( byte message, int value, bool hex ) : void
message byte
value int
hex bool
return void

WriteLine() public static method

Writes a string to the screen, followed by a newline.
public static WriteLine ( string message ) : void
message string
return void

WriteLine() public static method

public static WriteLine ( string message, int value ) : void
message string
value int
return void

WriteLine() public static method

Writes the string message to the screen, then the Int32 value, followed by a newline.
public static WriteLine ( string message, int value, bool hex ) : void
message string
value int
hex bool
return void

WriteLine() public static method

public static WriteLine ( string message, int value, bool hex, string message2 ) : void
message string
value int
hex bool
message2 string
return void

WriteLine() public static method

public static WriteLine ( string message, int value, string message2 ) : void
message string
value int
message2 string
return void

WriteSubstring() public static method

Writes len characters of the string message to the screen, starting with the character at index offset.
public static WriteSubstring ( CString8 message, int offset, int len ) : void
message SharpOS.Kernel.Foundation.CString8
offset int
len int
return void

WriteSubstring() public static method

Writes len characters of the string message to the screen, starting with the character at index offset.
public static WriteSubstring ( PString8 message, int offset, int len ) : void
message SharpOS.Kernel.Foundation.PString8
offset int
len int
return void

WriteSubstring() public static method

Writes len characters of the string message to the screen, starting with the character at index offset.
public static WriteSubstring ( byte message, int offset, int len ) : void
message byte
offset int
len int
return void

WriteSubstring() public static method

Writes len characters of the string message to the screen, starting with the character at index offset.
public static WriteSubstring ( string message, int offset, int len ) : void
message string
offset int
len int
return void