Commit Graph

5 Commits

Author SHA1 Message Date
Daniel Wagner-Hall 05f9567ba3 Detect TTY based on stderr, not stdout
We actually write to stderr by default, so:

bin >/dev/null

currently weirdly prints non-colorized output, whereas:

bin 2>log

weirdly prints colorized output to a file.
2015-12-03 12:58:31 +00:00
Curtis Gagliardi 8a5c13cf78 Add support for DragonflyBSD and NetBSD.
This merges all the bsd (including darwin) support into terminal_bsd.go

Cross-compiling works for all of them in that they all compile, but I've only
actually tested the binary on dragonflybsd.  I don't see why this wouldn't
work on the others since I don't think they'd compile if they didn't
support TIOCGETA and Termios, but just a heads up.
2015-06-26 12:31:17 -07:00
Simon Eskildsen 0b189e019a terminal: don't exclude appengine 2015-02-07 20:27:43 +00:00
Vincent Batts 97e951044c terminal: openbsd Termios
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-01-06 08:44:32 -05:00
Rob Napier d32bfc962c Add Windows/FreeBSD support 2014-04-23 19:38:56 -04:00