Esempio n. 1
0
        public void Clear()
        {
            int i = 0;

            Win32Native.COORD cOORD = new Win32Native.COORD();
            cOORD.x = 0;
            cOORD.y = 0;
            Win32Native.FillConsoleOutputCharacter(hConsoleOut, ' ', (short)(conInfo.MaxSize.x * conInfo.MaxSize.y), cOORD, ref i);
            Win32Native.FillConsoleOutputAttribute(hConsoleOut, backgroundAttrib, (short)(conInfo.MaxSize.x * conInfo.MaxSize.y), cOORD, ref i);
            MoveCursor(1, 1);
        }
Esempio n. 2
0
 public void Clear()
 {
     int i = 0;
     Win32Native.COORD cOORD = new Win32Native.COORD();
     cOORD.x = 0;
     cOORD.y = 0;
     Win32Native.FillConsoleOutputCharacter(hConsoleOut, ' ', (short)(conInfo.MaxSize.x * conInfo.MaxSize.y), cOORD, ref i);
     Win32Native.FillConsoleOutputAttribute(hConsoleOut, backgroundAttrib, (short)(conInfo.MaxSize.x * conInfo.MaxSize.y), cOORD, ref i);
     MoveCursor(1, 1);
 }