From 559fb7ee4552312f59a4bbe428199db9f5aa1247 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 26 Jul 2024 01:35:24 +0900 Subject: [PATCH] Revert "Prefer LightRenderer over tcell on Windows" This reverts commit dca2262fe6f8d7c4a9264464e45d44e684d0e70b. > For mouse support on mintty > Fix #3847 The current implementation LightRenderer for Windows is unable to accept non-ASCII input unlike the tcell renderer. So even though it supports mouse on mintty, we shouldn't use it as the default. * #3799 * #3847 --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 302a534..f43bb8e 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -728,7 +728,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox, executor *util.Executor } } if fullscreen { - if !tui.IsLightRendererSupported() { + if tui.HasFullscreenRenderer() { 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,