diff --git a/internal/tui/terminal.go b/internal/tui/terminal.go new file mode 100644 index 0000000..827bd43 --- /dev/null +++ b/internal/tui/terminal.go @@ -0,0 +1,10 @@ +package tui + +import "os" + +func init() { + // Set to xterm-256color as it's widely supported and works well with tview. + // If whatever terminal we're using doesn't support it, it'll fallback to + // xterm normally anyway. + os.Setenv("TERM", "xterm-256color") +}