String.Split(char[],int,StringSplitOptions) should remove empty entries while
[mono.git] / mcs / class / corlib / System / IConsoleDriver.cs
index a36af9191a61dd9f8faae5e7450004ef6d1d8cc2..a503f2121af78c7bab1b2fd87566a0af62b5f0ec 100644 (file)
 namespace System {
        interface IConsoleDriver {
                ConsoleColor BackgroundColor { get; set; }
-               //int BufferHeight { get; set; }
-               //int BufferWidth { get; set; }
-               //bool CapsLock { get; }
+               int BufferHeight { get; set; }
+               int BufferWidth { get; set; }
+               bool CapsLock { get; }
                int CursorLeft { get; set; } 
-               //int CursorSize { get; set; } 
+               int CursorSize { get; set; } 
                int CursorTop { get; set; }
                bool CursorVisible { get; set; }
-               bool Echo { get; set; }  // mono
                ConsoleColor ForegroundColor { get; set; }
                bool KeyAvailable { get; }
                bool Initialized { get; }
-               //int LargestWindowHeight { get; set; }
-               //int LargestWindowWidth { get; set; }
-               //bool NumberLock { get; }
+               int LargestWindowHeight { get; }
+               int LargestWindowWidth { get; }
+               bool NumberLock { get; }
                string Title { get; set; }
                bool TreatControlCAsInput { get; set; } 
-               //int WindowHeight { get; set; }
-               //int WindowLeft { get; set; }
-               //int WindowTop { get; set; }
-               //int WindowWidth { get; set; }
+               int WindowHeight { get; set; }
+               int WindowLeft { get; set; }
+               int WindowTop { get; set; }
+               int WindowWidth { get; set; }
 
+               void Init ();
                void Beep (int frequency, int duration);
                void Clear ();
-               //void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight,
-       //                              int targetLeft, int targetTop);
-       //      void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight,
-       //                              int targetLeft, int targetTop, Char sourceChar,
-                                       //ConsoleColor sourceForeColor, ConsoleColor sourceBackColor);
+               void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight,
+                                       int targetLeft, int targetTop, Char sourceChar,
+                                       ConsoleColor sourceForeColor, ConsoleColor sourceBackColor);
 
                ConsoleKeyInfo ReadKey (bool intercept);
                void ResetColor ();
-               //void SetBufferSize (int width, int height);
+               void SetBufferSize (int width, int height);
                void SetCursorPosition (int left, int top);
-               //void SetWindowPosition (int left, int top);
-               //void SetWindowSize (int width, int height);
+               void SetWindowPosition (int left, int top);
+               void SetWindowSize (int width, int height);
+               string ReadLine ();
        }
 }
 #endif