Exemplo n.º 1
0
        public static void SetTerminalSize(int width, int height, int bufferHeight)
        {
            if (WindowList.Count > 1)
            {
                Runtime.ThrowError("Cannot resize terminal when windows are open");
            }

            Width  = width;
            Height = height;
            TerminalWindow.InitBuffer(width, height);
            TerminalWindow.InitClientRectangle();
            StdScr.Resize(width, height, bufferHeight);
            RefreshAll();
        }
Exemplo n.º 2
0
 public static void SetTerminalFont(string name, int size)
 {
     TerminalWindow.InitFont(name, size);
     TerminalWindow.InitClientRectangle();
     RefreshAll();
 }