internal static ReplWindow CreateReplWindow(int w,int h,int maxh) { var pad = new Buffer(w, maxh); var win = new ReplWindow(pad,w,h); win.ScrollOk(true); win.ScrollPadOk(true); win.InitHandlers(); return win; }
internal static void Init(Runtime.CommandLineOptions options, TerminalMainProgram mainProgram) { Width = options.Width; Height = options.Height; DefaultForeColor = new ColorType(options.ForeColor); DefaultBackColor = new ColorType(options.BackColor); History = new TerminalHistory(); TerminalWindow = new TerminalMainForm(options.FontName, options.FontSize, Width, Height, mainProgram); WindowList = new List<Window>(); StdScr = ReplWindow.CreateReplWindow(Width, Height, options.BufferHeight); Register(StdScr); RefreshAll(); TerminalWindow.Show(); TerminalWindow.Activate(); Application.Run(TerminalWindow); //Runtime.Quit(); }