internal ConsoleWindow(DLRHost host) { InitializeComponent(); this.host = host; Output = new TextBoxWriter(textBox); host.RedirectOut(Output as TextBoxWriter); Input = new TextBoxReader(textBox); Input.LineRead += Input_LineRead; WriteStart(); }