ssh/terminal: add darwin support.

terminal contains a number of utility functions that are currently only
implemented for Linux. Darwin uses different named constants for
getting and setting the terminal state so this change splits them off
as constants and defines them for each arch.

3 files changed
tree: 55272ccd4cd84a6e0011763ccbb051265c426ea9
  1. terminal.go
  2. terminal_test.go
  3. util.go
  4. util_bsd.go
  5. util_linux.go