예제 #1
0
 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();
 }
예제 #2
0
 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();
 }