macvim-dev / macvim-dev/macvim
What exactly pressing <F13> sends?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Vim Script
- Sterne
- 7.9k
- Forks
- 691
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I have <Eject> key mapped to <F13> with Karabiner-Elements. And if tested in Terminal.app or Alacritty.app, it correctly reports ^[[25~
However, in MacVim, if I :terminal cat, and then press <F11>, <F12> and then <F13>, I see ^[[23~, ^[[24~, and then just some sort of space (the cursor moves one position to the right, while reporting nothing):

It does work OK, though, I can create mappings with <F13>. But if I use some TUI application in :terminal, then it clearly doesn't understand it.
:set t_F3 or :set <F13> both report E846: Key code not set. Trying to actually set those to ^[[25~ makes no effect (:terminal cat still reports that mysterious space). Reproducible on the latest release.
Any hints may be? :)
Well, tnoremap <F13> ^[[25~ seems to solve the problem :). But still, what exactly does it send by default?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das Problem in MacVim mit :terminal cat reproduzieren und dabei F11, F12 und F13 mit Terminal.app oder Alacritty.app vergleichen. Untersuchen, wie MacVim F13 im eingebetteten Terminal verarbeitet, und überprüfen, ob tnoremap ^[[25~ das Ergebnis ändert; abgeschlossen ist die Untersuchung, wenn entweder die Standardsequenz identifiziert oder die Abweichung korrigiert wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, vim
- Bereich
- desktop
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100