From dca2262fe6f8d7c4a9264464e45d44e684d0e70b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 12 Jun 2024 21:53:18 +0900 Subject: [PATCH] Prefer LightRenderer over tcell on Windows For mouse support on mintty Fix #3847 --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 128da4e..7307c17 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -711,7 +711,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox, executor *util.Executor } } if fullscreen { - if tui.HasFullscreenRenderer() { + if !tui.IsLightRendererSupported() { renderer = tui.NewFullscreenRenderer(opts.Theme, opts.Black, opts.Mouse) } else { renderer, err = tui.NewLightRenderer(ttyin, opts.Theme, opts.Black, opts.Mouse, opts.Tabstop, opts.ClearOnExit,