From e18b9ba79bce5376c7629977344f81334a24a77d Mon Sep 17 00:00:00 2001 From: Jakub Sobon Date: Mon, 23 Apr 2018 00:47:12 +0100 Subject: [PATCH] Improving comment about thread un-safety. --- terminal/termbox/termbox.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/terminal/termbox/termbox.go b/terminal/termbox/termbox.go index b216cf2..3b2a6b0 100644 --- a/terminal/termbox/termbox.go +++ b/terminal/termbox/termbox.go @@ -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.