Commit Graph

4 Commits

Author SHA1 Message Date
Garrett D'Amore 84b54971b4 fixes #294 Baud rate should not matter 2019-07-23 19:03:31 -07:00
Garrett D'Amore 8fa68ef023 fixes #191 tcell hangs in go1.10
This is not so much a fix, as a workaround for an incredibly busted
tty driver in macOS.  I've tried nearly every other approach I can
think of, and this is the best of a bunch of really rotten options.

The draw back here is that reinitializing the screen may not work as well
as we'd like, and that there may be a leaked descriptor and goroutine
after you Fini() on macOS.  Not many other approaches seem viable, and to
be honest, very few applications are likely to ever notice that.

If some Apple developer sees this, please talk to me about the fixes
needed in the tty driver -- this has been a known bug (to me at least)
for many years now.
2018-02-20 10:21:48 -08:00
Garrett D'Amore 50f9ed7673 fixes #129 Very high IDLE_WAKE - Power consumption
fixes #164 KeyEscape does not work in Go 1.9 under Linux

This is a complete refactor of the input loop for UNIX systems.
We use a blocking reader on the TTY, and a separate select
loop for timers and other events.  This means that our idle
use should be low now.
2017-09-23 23:25:24 -07:00
Garrett D'Amore 33f5ff39fa fixes #43 Minimize use of CGO 2015-11-01 21:37:37 -08:00