Skip to content
Myr

Fix F1, F2, F3, F4 on rxvt-unicode

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

Tested on urxvt. Fix #1799.

authored by Junegunn Choi · committed by Junegunn Choi · parent 6e3af64 · Browse files · 1 file+9 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+9 added−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:src/tui/light.go+9 added-1 removed
484 unmodified lines
485 case 49:486 switch r.buffer[3] {487 case 126:488 return Event{Home, 0, nil}489 case 53, 55, 56, 57:489 case 49, 50, 51, 52, 53, 55, 56, 57:490 if len(r.buffer) == 5 && r.buffer[4] == 126 {491 *sz = 5492 switch r.buffer[3] {493 case 49:494 return Event{F1, 0, nil}495 case 50:496 return Event{F2, 0, nil}497 case 51:498 return Event{F3, 0, nil}499 case 52:500 return Event{F4, 0, nil}501 case 53:502 return Event{F5, 0, nil}503 case 55:504 return Event{F6, 0, nil}
460 unmodified lines