Revert "Prefer LightRenderer over tcell on Windows"

This reverts commit dca2262fe6.

> 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
This commit is contained in:
Junegunn Choi 2024-07-26 01:35:24 +09:00
parent 62545cd983
commit 559fb7ee45
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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,