Exemple #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();
        }
Exemple #2
0
 public static void ReplResetDisplay()
 {
     ResetColors();
     StdScr.Clear();
 }
Exemple #3
0
 public static string ReplRead()
 {
     return(StdScr.Read());
 }