Added GetOriginalMode, GetTerminalMode, SetTerminalMode and TerminalSupported. Renamed termios to TerminalMode.