示例#1
0
 // scroll by one line
 private static unsafe void Scroll()
 {
     VGADriverII.MemoryCopy(VGADriverII.Buffer + (VGADriverII.Width * 2), VGADriverII.Buffer, (VGADriverII.Width * (VGADriverII.Height - 1)) * 2);
     for (int i = 0; i < VGADriverII.Width; i++)
     {
         PutCharacter(i, VGADriverII.Height - 1, ' ', TextColor, BackColor);
     }
 }
示例#2
0
 public static void ClearSlow(ConsoleColor color)
 {
     VGADriverII.Clear((byte)color);
     SetCursorPos(0, 0);
     for (int i = 0; i < 5400; i++)
     {
         Write(" ");
     }
     SetCursorPos(0, 0);
 }
示例#3
0
 public static void Clear(ConsoleColor color)
 {
     VGADriverII.Clear(ToAttribute((VGAColor)TextColor, (VGAColor)color));
     BackColor = color;
     SetCursorPos(0, 0);
 }
示例#4
0
 // clear the screen
 public static void Clear()
 {
     VGADriverII.Clear((byte)BackColor);
     SetCursorPos(0, 0);
 }
示例#5
0
 public static void EnableCursor()
 {
     VGADriverII.EnableCursor(14, 15);
 }
示例#6
0
 public static void DisableCursor()
 {
     VGADriverII.DisableCursor();
 }
示例#7
0
 // set cursor position
 public static unsafe void SetCursorPos(int x, int y)
 {
     VGADriverII.SetCursorPos((ushort)x, (ushort)y);
     CursorX = x; CursorY = y;
     VGADriverII.Buffer[((x + (y * VGADriverII.Width)) * 2) + 1] = ToAttribute((VGAColor)TextColor, (VGAColor)BackColor);
 }
示例#8
0
 // clear the screen
 public static void Clear(ConsoleColor color)
 {
     VGADriverII.Clear((byte)color);
     SetCursorPos(0, 0);
 }