Improving comment about thread un-safety.

This commit is contained in:
Jakub Sobon 2018-04-23 00:47:12 +01:00
parent 9b5caa35f5
commit e18b9ba79b
1 changed files with 2 additions and 4 deletions

View File

@ -46,10 +46,8 @@ func ColorMode(cm terminalapi.ColorMode) Option {
}) })
} }
// Terminal provides input and output to a real terminal. // Terminal provides input and output to a real terminal. Wraps the
// Wraps the nsf/termbox-go terminal implementation. // nsf/termbox-go terminal implementation. This object is not thread-safe.
// This isn't thread-safe, because termbox isn't and only one instance is ever
// supported, because termbox uses global state.
// Implements terminalapi.Terminal. // Implements terminalapi.Terminal.
type Terminal struct { type Terminal struct {
// events is a queue of input events. // events is a queue of input events.