Hello, you can handle KeyPress event and write the LF to the terminal screen in that handler.
Here is how the code could look like:
// register KeyPress event handler,
// probably in the constructor of the form
terminal.KeyPress += new KeyPressEventHandler(terminal_KeyPress);
void terminal_KeyPress(object sender, KeyPressEventArgs e)
{
// if the pressed character is CR, write end of line
// to the terminal screen
if (e.KeyChar == '\r')
terminal.Screen.WriteLine();
}
You can use KeyDown event in a similar way and use e.KeyCode
to determine if the Enter was pressed.