summaryrefslogtreecommitdiffstats
path: root/input-keys.c
AgeCommit message (Collapse)Author
2023-01-12Merge branch 'obsd-master'Thomas Adam
2023-01-12Have tmux recognise pasted texts wrapped in bracket paste sequences,nicm
rather than only forwarding them to the program inside. From Andrew Onyshchuk in GitHub issue 3431.
2022-11-08Merge branch 'obsd-master'Thomas Adam
2022-11-08Fix C-S-Tab without extended keys, from Aaron Jensen.nicm
2022-11-02Merge branch 'obsd-master'Thomas Adam
2022-11-02Instead of always setting the extended flag, set it only when searching.nicm
Allows send-keys to work. From Aaron Jensen.
2022-11-01Merge branch 'obsd-master'Thomas Adam
2022-11-01Add modified Tab key sequences, from Aaron Jensen, GitHub issue 3368.nicm
2022-05-30If a mouse position was above the maximum supported by the normal mousenicm
protocol (223), tmux was allowing it to wrap around. However, since tmux was not correctly handling this on input, other programs also do not handle it correctly, and the alternative SGR mouse mode is now widespread, this seems unnecessary, so remove this feature. Also define some constants to make it clearer what the numbers mean. Mostly from Leonid S Usov in GitHub issue 3165.
2022-04-27If a mouse position was above the maximum supported by the normal mouseNicholas Marriott
protocol (223), tmux was allowing it to wrap around. However, since tmux was not correctly handling this on input, other programs also do not handle it correctly, and the alternative SGR mouse mode is now widespread, this seems unnecessary, so remove this feature. Also define some constants to make it clearer what the numbers mean. Mostly from Leonid S Usov in GitHub issue 3165.
2022-03-01Merge branch 'obsd-master' into masterThomas Adam
2022-03-01Don't convert codes for special keys (Tab, Enter, Escape).nicm
2022-02-28Merge branch 'obsd-master' into masterThomas Adam
2022-02-28Map control keys back to an ASCII uppercase letter when passing them onnicm
as extended keys.
2022-02-16Merge branch 'obsd-master' into masterThomas Adam
2022-02-16Support more mouse buttons when the terminal sends them, GitHub issuenicm
3055.
2021-08-20Merge branch 'obsd-master' into masterThomas Adam
2021-08-20Remove stray spaces after function names.nicm
2021-06-10Remove old shift function keys which interfere with xterm keys now.nicm
GitHub issue 2696.
2021-06-10Move "special" keys into the Unicode PUA rather than making them top bitnicm
set, some compilers do not allow enums that are larger than int. GitHub issue 2673.
2021-05-05Remove old shift function keys which interfere with xterm keys now. GitHubNicholas Marriott
issue 2696.
2021-04-28Move "special" keys into the Unicode PUA rather than making them high a top bitNicholas Marriott
set, some compilers cannot handle enums that are larger than int. GitHub issue 2673.
2021-04-09Merge branch 'obsd-master' into masterThomas Adam
2021-04-09Change a type to fix a warning with some compilers.nicm
2021-04-08Merge branch 'obsd-master' into masterThomas Adam
2021-04-08Log the key written to the terminal as well as tmux's idea of what itnicm
is.
2021-02-16Log missing keys when extended keys is on rather than fatal().nicm
2020-11-17Log missing keys when extended keys is on rather than fatal().nicm
2020-09-18Merge branch 'obsd-master'Thomas Adam
2020-09-18Some other warnings, GitHub issue 2382.nicm
2020-06-01Merge branch 'obsd-master'Thomas Adam
2020-06-01Try without cursor/keypad flags if a key doesn't exist, and limit ctrlnicm
key translation to ASCII keys. Fixes send-keys, GitHub issue 2247.
2020-05-26Merge branch 'obsd-master'Thomas Adam
2020-05-25Use the internal representation for UTF-8 keys instead of wchar_t andnicm
drop some code only needed for that.
2020-05-19Merge branch 'obsd-master'Thomas Adam
2020-05-19Some other ctrl keys need to be translated with extended keys on.nicm
2020-05-16Add a terminal feature for enable/disable extended keys (supported bynicm
xterm and mintty) and add an option to make tmux send it. Only forward extended keys if the application has requested them, even though we use the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as well.
2020-05-16If the application has not requested extended keys, then C-1 sends 1 notNicholas Marriott
nothing.
2020-05-15Er, misread this and it is not needed.Nicholas Marriott
2020-05-15Only forward extended keys if the application has requested them, even thoughNicholas Marriott
we use the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as well.
2020-05-15C-M-S keys need the implied flag also.Nicholas Marriott
2020-05-15Send conventional \033 sequences for keys with just Meta even if they came inNicholas Marriott
as an extended CSI u key sequence. It is much more useful for applications that don't understand CSI u to receive \033> for M-S-. rather than \033[62;3u.
2020-05-15Send CSI u sequences for any keys that do not have a defined sequence already -Nicholas Marriott
this should only be similar sequences sent by the terminal outside tmux if enabled.
2020-05-15Separate key flags and modifiers, log key flags, make the "xterm" flag moreNicholas Marriott
explicit and fix M- keys with a leading escape.
2020-05-15Rename KEYC_ESCAPE to KEYC_META.Nicholas Marriott
2020-05-15xterm-keys has been on by default for 5 years and all other modern terminalsNicholas Marriott
use these key sequences by default. Merge the code into the main tty and input tree processing (convering the latter to use a tree rather than a table at the same time) and make the option a no-op.
2020-04-07Merge branch 'obsd-master'Thomas Adam
2020-04-07Do not send mouse events if the program has not requested them.nicm
2020-04-01Merge branch 'obsd-master'Thomas Adam
2020-04-01Support mouse in popups.nicm