Terminal does not reset correctly with System.Console.SimpleLineEditor