Skip to content

Commit

Permalink
Prefer LightRenderer over tcell on Windows
Browse files Browse the repository at this point in the history
For mouse support on mintty

Fix #3847
  • Loading branch information
junegunn committed Jun 12, 2024
1 parent 0684a20 commit dca2262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dca2262

Please sign in to comment.