From f7aa26d418970b6069ffc1e40dd332dca2640c64 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 22 Sep 2019 11:10:12 +0200 Subject: [PATCH] zrepl status: follow up c4be60c: import screen terminfo This is $TERM on FreeBSD and FreeNAS. fixes #204 ref https://github.com/gdamore/tcell/issues/252 --- client/status.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/status.go b/client/status.go index 75934ff..37e256e 100644 --- a/client/status.go +++ b/client/status.go @@ -11,7 +11,14 @@ import ( "sync" "time" + // tcell is the termbox-compatbile library for abstracting away escape sequences, etc. + // as of tcell#252, the number of default distributed terminals is relatively limited + // additional terminal definitions can be included via side-effect import + // See https://github.com/gdamore/tcell/blob/master/terminfo/base/base.go + // See https://github.com/gdamore/tcell/issues/252#issuecomment-533836078 "github.com/gdamore/tcell/termbox" + _ "github.com/gdamore/tcell/terminfo/s/screen" // tmux on FreeBSD 11 & 12 without ncurses + "github.com/pkg/errors" "github.com/spf13/pflag" "github.com/zrepl/yaml-config"