Esempio n. 1
0
 //handle input into consle. By setting e.handled to true, blocks char from echoing. The method then sends the char
 //to the Comp class.
 private void terminalBox_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar != 8)
     {
         char x = e.KeyChar;
         e.Handled = true;
         comp.addChar(x);
     }
 }