/// <summary> /// Test cursor movements /// </summary> /// <param name="vs">Virtual screen</param> public static void WriteBigX(VirtualScreen vs) { vs.CleanScreen(); for (int i=0; i<vs.Height; i++) { vs.Write('X'); // already moves cursor about one vs.MoveCursor(vs.Width); // test overflow } vs.Write('\r'); // beginning of last line for (int i=0; i<vs.Height; i++) { vs.Write('X'); // already moves cursor about one vs.MoveCursor(-vs.Width); // test overflow } }
/// <summary> /// Write a byte block and strings /// </summary> /// <param name="vs">Virtual screen</param> public static void WriteBlockOperation(VirtualScreen vs) { vs.CleanScreen(); byte[] tb = Encoding.ASCII.GetBytes("This is a test output"); vs.WriteLine("New screen with test output:"); for (int i=0; i<10; i++) { vs.WriteByte(tb); } vs.WriteLine("\n"); for (int i=0; i<10; i++) { vs.WriteLine("Line output"); } }