Skip to content
Myr

Temporarily disable mouse mode when switching to an external command

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 91b9591 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/tui/light.go+2 added-1 removed
603 unmodified lines
604 r.csi("?1049l")605}606607func (r *LightRenderer) Pause(clear bool) {608 r.disableMouse()609 r.restoreTerminal()610 if clear {611 if r.fullscreen {612 r.rmcup()
17 unmodified lines
630 if r.mouse {631 r.csi("?1000l")632 r.csi("?1002l")633 r.csi("?1006l")633 r.mouse = false634 }635}636637func (r *LightRenderer) Resume(clear bool, sigcont bool) {
10 unmodified lines
648 // NOTE: SIGCONT (Coming back from CTRL-Z):649 // It's highly likely that the offset we obtained at the beginning is650 // no longer correct, so we simply disable mouse input.651 r.disableMouse()652 r.mouse = false653 }654}655656func (r *LightRenderer) Clear() {
413 unmodified lines