// 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); } }
public static void ClearSlow(ConsoleColor color) { VGADriverII.Clear((byte)color); SetCursorPos(0, 0); for (int i = 0; i < 5400; i++) { Write(" "); } SetCursorPos(0, 0); }
public static void Clear(ConsoleColor color) { VGADriverII.Clear(ToAttribute((VGAColor)TextColor, (VGAColor)color)); BackColor = color; SetCursorPos(0, 0); }
// clear the screen public static void Clear() { VGADriverII.Clear((byte)BackColor); SetCursorPos(0, 0); }
public static void EnableCursor() { VGADriverII.EnableCursor(14, 15); }
public static void DisableCursor() { VGADriverII.DisableCursor(); }
// 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); }
// clear the screen public static void Clear(ConsoleColor color) { VGADriverII.Clear((byte)color); SetCursorPos(0, 0); }