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.
// Wraps the nsf/termbox-go terminal implementation.
// This isn't thread-safe, because termbox isn't and only one instance is ever
// supported, because termbox uses global state.
// Terminal provides input and output to a real terminal. Wraps the
// nsf/termbox-go terminal implementation. This object is not thread-safe.
// Implements terminalapi.Terminal.
type Terminal struct {
// events is a queue of input events.