/// <summary> /// Read a string from the keyboard, also resets the current horizontal position. /// </summary> /// <returns>String user typed in.</returns> public string Read() { var input = _teletype.Read(); _currentPosition = 0; return(input); }
private string ReadLine() { _teletype.Write(_firstLine ? _prompt : "??"); _firstLine = false; var input = _teletype.Read(); if (input == null) { throw new Exceptions.BreakException(); } return(input); }