C# Класс SharpOS.Kernel.ADC.X86.TextMode

Handles setting up and working with CGA/EGA/MDA text modes.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
HardwareCommand ( CRT_Indices index ) : int
HardwareCommand ( CRT_Indices index, byte value ) : void
HardwareCommand ( CRT_Indices index, ushort value ) : void

Описание методов

ClearScreen() публичный статический Метод

public static ClearScreen ( ) : void
Результат void

ClearToEndOfLine() публичный статический Метод

Clear to end of line
public static ClearToEndOfLine ( ) : void
Результат void

GetBufferHeight() публичный статический Метод

public static GetBufferHeight ( ) : int
Результат int

GetCursor() публичный статический Метод

public static GetCursor ( int &ret_x, int &ret_y ) : void
ret_x int
ret_y int
Результат void

GetReadPosition() публичный статический Метод

public static GetReadPosition ( ) : int
Результат int

GetScreenSize() публичный статический Метод

public static GetScreenSize ( int &ret_w, int &ret_h ) : void
ret_w int
ret_h int
Результат void

GetWritePosition() публичный статический Метод

public static GetWritePosition ( ) : int
Результат int

MovePage() публичный статический Метод

public static MovePage ( int value ) : void
value int
Результат void

MoveTo() публичный статический Метод

public static MoveTo ( int _x, int _y ) : void
_x int
_y int
Результат void

RestoreAttributes() публичный статический Метод

public static RestoreAttributes ( ) : bool
Результат bool

SaveAttributes() публичный статический Метод

public static SaveAttributes ( ) : bool
Результат bool

ScrollPage() публичный статический Метод

Scrolls the text on the screen
public static ScrollPage ( int value ) : void
value int Positive value is down, negative is up
Результат void

ScrollPageWrite() публичный статический Метод

public static ScrollPageWrite ( int value ) : void
value int
Результат void

SetAttributes() публичный статический Метод

public static SetAttributes ( TextColor _foreground, TextColor _background ) : void
_foreground TextColor
_background TextColor
Результат void

SetCursor() публичный статический Метод

public static SetCursor ( int _x, int _y ) : void
_x int
_y int
Результат void

SetCursorSize() публичный статический Метод

public static SetCursorSize ( byte _start, byte _end ) : void
_start byte
_end byte
Результат void

SetReadPos() публичный статический Метод

public static SetReadPos ( int position ) : void
position int
Результат void

SetWritePos() публичный статический Метод

public static SetWritePos ( int position ) : void
position int
Результат void

Setup() публичный статический Метод

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
Результат void

WriteByte() публичный статический Метод

public static WriteByte ( byte value ) : void
value byte
Результат void

WriteChar() публичный статический Метод

public static WriteChar ( byte value ) : void
value byte
Результат void

WriteHex() публичный статический Метод

public static WriteHex ( byte value ) : void
value byte
Результат void