aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
Commit message (Collapse)AuthorAge
* Fix behaviour with \007 (used the wrong tree for last change).nicm2023-01-09
|
* Accept \007 as terminator to OSC 10 or 11.nicm2023-01-09
|
* Query the client terminal for foreground and background colours and ifnicm2023-01-03
| | | | | | OSC 10 or 11 is received but no colour has been set inside tmux, return the colour from the first attached client (probably most people will have all light or or all dark terminals).
* Tweak previous to set and log the feature instead of just setting thenicm2022-11-11
| | | | flag.
* Parse primary device attributes as well as secondary and add a SIXELnicm2022-11-11
| | | | flag (not used yet), from Anindya Mukherjee.
* Instead of always setting the extended flag, set it only when searching.nicm2022-11-02
| | | | Allows send-keys to work. From Aaron Jensen.
* Add modified Tab key sequences, from Aaron Jensen, GitHub issue 3368.nicm2022-11-01
|
* Process modifiers as bits rather than using a switch, from Koichi Murase.nicm2022-07-19
|
* kf* terminfo capabilities are poorly defined and rxvt uses them in anicm2022-06-14
| | | | | different way from xterm, so add a feature flag for rxvt to make tmux ignore the capabilities and instead rely on its builtin definitions.
* If escape-time is 0, force to 1 instead - not waiting at all is askingnicm2022-06-01
| | | | for problems on some platforms.
* If a mouse position was above the maximum supported by the normal mousenicm2022-05-30
| | | | | | | | | 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.
* Add argument to refresh-client -l to forward clipboard to a pane. GitHubnicm2022-03-08
| | | | issue 3068.
* Support more mouse buttons when the terminal sends them, GitHub issuenicm2022-02-16
| | | | 3055.
* Do not create a buffer from an OSC 52 response if we have not sent anicm2022-02-15
| | | | query.
* Correctly adjust the end pointer for a two character terminator beforenicm2021-10-21
| | | | decoding OSC 52 response, from Daniel Ekloef in GitHub issue 2942.
* Break message type stuff out into its own header.nicm2021-08-13
|
* Change focus to be driven by events rather than walking all panes at endnicm2021-08-13
| | | | | of event loop, this way the ordering of in and out can be enforced. GitHub issue 2808.
* Add client focus hooks.nicm2021-08-06
|
* Add another couple of keys needed for extended keys, GitHub issue 2658.nicm2021-06-10
| | | | Handle modifier 9 as Meta, GitHub issue 2647.
* Change how extended ctrl keys are processed to fix C-S-Tab and C-;.nicm2021-04-13
|
* Handle C-Tab correctly with extended keys, GitHub issue 2642.nicm2021-04-13
|
* Restore previous behaviour so that C-X remains the same as C-x. Instead,nicm2021-04-07
| | | | translate incoming extended keys so that they are consistent.
* Fixes for extended keys: 1) allow C-x and C-X to be bound separatelynicm2021-04-07
| | | | | | | | | | since some terminals report them differently 2) use the "backspace" option to translate backspace 3) map ctrl which are have the ctrl implied (such as C-x) properly when the terminal reports both the key and the modifier. Note that any key bindings for C-X where C-x is meant must now be changed.
* Escape+Up and the other arrow keys should be kept as Escape+Up and notnicm2020-09-23
| | | | | | converted to M-Up. Do not give them the implied meta flag so they don't match the M-Up entry in the output key tree. Fixes problem with vi reported by jsing@.
* Old Terminal.app versions do not respond correctly to secondary DA,nicm2020-08-24
| | | | | instead responding with the primary DA response. Ignore it. Reported by Dave Vandervies.
* Always send xterm-style keys for M-Left and M-Right. GitHub issue 2296.nicm2020-07-06
|
* Use CLOCK_MONOTONIC for timer measurement and add a timestamp to controlnicm2020-06-02
| | | | mode %output blocks.
* Use the internal representation for UTF-8 keys instead of wchar_t andnicm2020-05-25
| | | | drop some code only needed for that.
* FocusIn keys can also update the latest client, like normal keys.nicm2020-05-22
|
* Add a terminal feature for enable/disable extended keys (supported bynicm2020-05-16
| | | | | | | 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.
* Only redraw popup on the client it belongs to.nicm2020-05-16
|
* Move terminal features into a single file.nicm2020-05-16
|
* Response is iTerm2 not not ITerm2.nicm2020-05-16
|
* Remove support for iTerm2's DSR 1337 extension and use the CSI > qnicm2020-05-16
| | | | extension now supported by a few different terminals.
* Change how sync works to always send the end sequence after all outputnicm2020-04-20
| | | | | is done when we are returning to the event loop (since we always move the cursor at that point). Also a man fix from jmc.
* Tidy up the terminal detection and feature code and add named sets ofnicm2020-04-20
| | | | | | | | | | | | | | | | | | | | | terminal features, each of which are defined in one place and map to a builtin set of terminfo(5) capabilities. Features can be specified based on TERM with a new terminal-features option or with the -T flag when running tmux. tmux will also detect a few common terminals from the DA and DSR responses. This is intended to make it easier to configure tmux's use of terminfo(5) even in the presence of outdated ncurses(3) or terminfo(5) databases or for features which do not yet have a terminfo(5) entry. Instead of having to grok terminfo(5) capability names and what they should be set to in the terminal-overrides option, the user can hopefully just give tmux a feature name and let it do the right thing. The terminal-overrides option remains both for backwards compatibility and to allow tweaks of individual capabilities. tmux already did much of this already, this makes it tidier and simpler to configure.
* Support the application escape sequence mintty (means tmux doesn't havenicm2020-04-17
| | | | to delay to wait for Escape).
* Send secondary device attributes instead of primary which gives us a bitnicm2020-04-16
| | | | more useful information on some terminals.
* Add support for the iTerm2 sychronized updates escape sequence whichnicm2020-04-16
| | | | drastically reduces flickering.
* If we can identify the terminal as iTerm2 or as tmux, we can be surenicm2020-01-28
| | | | they support 256 and RGB colours, so set those flags too.
* Add support for the iTerm2 DSR 1337 sequence to get the terminal version.nicm2020-01-28
|
* Be more specific in the DSR we are looking for so it doesn't getnicm2020-01-13
| | | | | | confused with mouse sequences. Also set a flag and don't bother checking for it if we have already seen it (same for DA), and don't check if we never asked for it.
* Detect iTerm2 and enable DECSLRM.nicm2020-01-12
|
* The terminal type was never as much use as I expected so remove it innicm2020-01-12
| | | | | favour of a couple of flags for the features used (DECSLRM and DECFRA). Also rename the flag for no xenl to be more obvious while here.
* Loop over all DA features, don't skip the first.nicm2020-01-12
|
* Parse out DA features.nicm2019-11-28
|
* Fix parsing of DA with only one argument in the response and add 65 for VT520.nicm2019-11-14
|
* Save mouse buttons as well as position.nicm2019-05-09
|
* Treat keys in identify mode (display-panes) specially and handle themnicm2019-05-07
| | | | | | immediately rather than queuing them (the command can block the queue which means they were not being seen until it finished which was too late). Reported by denis@ and solene@, ok solene@.
* Use the right index for user-keys.nicm2019-05-03
|