peterh/liner — pull request #15 by michaelmacinnis (2014-05-19 00:14:03+00:00)
Title: Renamed termios type to TerminalMode. Added GetTerminalMode, GetOriginal...

Hi Peter,

I exposed the liner.termios type and renamed it TerminalMode. I added a TerminalSupported function and GetTerminalMode/SetTerminalMode methods. I also added a GetOriginalMode method.

GetTerminalMode returns a boolean status in addition to the TerminalMode. This is because it was being checked in input_windows.go. To maintain the current behavior the status is currently ignored in input.go. For symmetry, SetTerminalMode also returns a boolean status (currently it always returns true in input_windows.go). Again to maintain the current behavior the status is ignored in both input.go and input_windows.go.

Let me know what you think of these changes.

Thanks,

Michael.