Back to using bufio. Work on unsupported terminals. Expose functions to check if the terminal is supported; set the terminal into line editing mode; and reset the terminal to its orginal mode.