Ensure the line exisit when intend to get a line in buffer.
Fix segfault when running nano.
Add direct accessors for lines and chars in wxTerminalContent which ensure that they exists.
Replace functions which just ensure they exists.
Implement DSR and DECDSR
Add and use a "send" function to send characters to shell instead of using substream directly.