mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-28 13:48:51 +08:00
Improving comment about thread un-safety.
This commit is contained in:
parent
9b5caa35f5
commit
e18b9ba79b
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user