Restore mouse drag mode (#3096)

This commit is contained in:
Junegunn Choi 2023-01-01 21:04:40 +09:00
parent 7c660aa86e
commit 088293f5e7
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -631,6 +631,7 @@ func (r *LightRenderer) Resume(clear bool, sigcont bool) {
// It's highly likely that the offset we obtained at the beginning is
// no longer correct, so we simply disable mouse input.
r.csi("?1000l")
r.csi("?1002l")
r.csi("?1006l")
r.mouse = false
}
@ -671,6 +672,7 @@ func (r *LightRenderer) Close() {
}
if r.mouse {
r.csi("?1000l")
r.csi("?1002l")
r.csi("?1006l")
}
r.flush()