C# 클래스 SharpOS.Kernel.ADC.X86.TextMode

Handles setting up and working with CGA/EGA/MDA text modes.
파일 보기 프로젝트 열기: sharpos/SharpOS 1 사용 예제들

공개 메소드들

메소드 설명
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