Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | xfree is not particularly helpful, remove it. From Thomas Adam. | 2012-07-10 | 1 | -2/+2 | ||
| | ||||||
* | Store client in tty struct directly instead of using a callback function | 2012-05-22 | 1 | -3/+3 | ||
| | | | | pointer. | |||||
* | Store mouse data in tty structure not on the stack. | 2012-05-22 | 1 | -16/+14 | ||
| | ||||||
* | Handle partial keys properly by making sure the timer has actually | 2012-04-22 | 1 | -5/+9 | ||
| | | | | expired, fixes problems with mintty reported by Michael Simpson. | |||||
* | Some terminals respond to secondary DA with primary (they ignore the | 2012-03-21 | 1 | -5/+9 | ||
| | | | | intermediate character). So ignore the possible responses to primary DA. | |||||
* | On xterm 271 and later, put the terminal into SCL 5 and use DECCRA for | 2012-03-17 | 1 | -3/+2 | ||
| | | | | | scrolling the region in panes (if the large region check isn't hit). With help from Ailin Nemui. | |||||
* | Check event_initialized before event_del if event may not have been set | 2012-03-17 | 1 | -3/+5 | ||
| | | | | up; libevent2 complains about this. Reported by Moriyoshi Koizumi. | |||||
* | Send secondary DA to terminals with XT in terminfo when starting up and | 2012-03-15 | 1 | -2/+78 | ||
| | | | | parse it to work out the xterm version. | |||||
* | Two fixes by Micah Cowan: make mouse work properly beyond >127 on signed | 2011-03-04 | 1 | -3/+3 | ||
| | | | | | char architectures and properly parse $TMUX by stopping the socket path at the first comma. | |||||
* | Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262 | 2011-01-03 | 1 | -16/+46 | ||
| | | | | | | | | | | and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li. | |||||
* | Key table should be const. | 2011-01-01 | 1 | -5/+5 | ||
| | ||||||
* | When the mode-mouse option is on, support dragging to make a selection | 2010-05-31 | 1 | -2/+3 | ||
| | | | | | | | | in copy mode. Also support the scroll wheel, although xterm strangely does not ignore it in application mouse mode, causing redraw artifacts when scrolling up (other terminals appear to be better behaved). | |||||
* | Accept a full key match (not a partial) even if there is data left in | 2010-03-22 | 1 | -2/+2 | ||
| | | | | the buffer. | |||||
* | Allow keys to be replaced and reorder the table so that terminfo-defined keys | 2009-12-17 | 1 | -127/+135 | ||
| | | | | (or terminal-overrides) take precedence over internally defined. | |||||
* | New server option, escape-time, to set the timeout used to detect if escapes | 2009-12-14 | 1 | -4/+5 | ||
| | | | | are alone or part of a function key or meta sequence. | |||||
* | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last | 2009-12-03 | 1 | -10/+10 | ||
| | | | | | time now I've configured emacs to make them displayed in really annoying colours... | |||||
* | Look for mice and xterm keys before standard function keys as they are less | 2009-12-01 | 1 | -10/+10 | ||
| | | | | likely to be partial versions. | |||||
* | Handle partial xterm function key sequences. | 2009-11-30 | 1 | -4/+7 | ||
| | ||||||
* | Continue rather than returning if not a mouse key, to avoid hanging on any | 2009-11-26 | 1 | -3/+2 | ||
| | | | | function key... | |||||
* | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to | 2009-11-26 | 1 | -1/+2 | ||
| | | | | the rest to reduce lint output. | |||||
* | Handle the possibility of partial mouse reads, and fix a comment while here. | 2009-11-26 | 1 | -10/+37 | ||
| | ||||||
* | Support rxvt-style keys again, but this time: support all the variations, put | 2009-11-12 | 1 | -13/+97 | ||
| | | | | | them in as raw escape sequences rather than fiddling with the values from terminfo, put them /after/ the terminfo values so the latter take precedence. | |||||
* | Twiddling the last bit is an rxvtism, so do not support it in the table by | 2009-11-10 | 1 | -44/+35 | ||
| | | | | default. | |||||
* | The input key should be a u_char. Fixes top-bit-set input problem reported by | 2009-11-09 | 1 | -2/+2 | ||
| | | | | ajacoutot@. | |||||
* | Constify buf. | 2009-11-09 | 1 | -4/+5 | ||
| | ||||||
* | Unused variable. Aargh. | 2009-11-05 | 1 | -2/+2 | ||
| | ||||||
* | Switch the tty key tree over to an (unbalanced) ternary tree which allows | 2009-11-05 | 1 | -80/+156 | ||
| | | | | | | | partial matches to be done (they wait for further data or a timer to expire, like a naked escape). Mouse and xterm-style keys still expect to be atomic. | |||||
* | Key flags are only used for initialisation so they are not needed in the main | 2009-11-05 | 1 | -6/+7 | ||
| | | | | tty_key struct. | |||||
* | Switch tty key input over to happen on a read event. This is a bit more | 2009-11-05 | 1 | -40/+53 | ||
| | | | | | | | | | | complicated because of escape input, but in that case instead of processing a key immediately, schedule a timer and reprocess the bufer when it expires. This currently assumes that keys will be atomic (ie that if eg F1 is pressed the entire sequence is present in the buffer). This is usually but not always true, a change in the tree format so it can differentiate potential (partial) key sequences will happens soon and will allow this to be fixed. | |||||
* | Switch tty fds over to a bufferevent. | 2009-11-04 | 1 | -11/+14 | ||
| | ||||||
* | Not all terminals swap CSI and SS3 on ctrl, so remove that. | 2009-10-26 | 1 | -15/+12 | ||
| | | | | | Also mark the rxvt special-cases as such until terminfo is updated to have kLFT5, kRIT5 etc. | |||||
* | Rewrite xterm-keys code (both input and output) so that works (doesn't always | 2009-10-26 | 1 | -1/+8 | ||
| | | | | | output the same modifiers, accepts all the possible input keys) and is more understandable. | |||||
* | Support the (mostly new) function key+modifier caps (kIC-kIC7). Most of these | 2009-10-26 | 1 | -1/+63 | ||
| | | | | | will be caught (soon) by the xterm keys code in xterm itself but some other descriptions such as rxvt define them as well. | |||||
* | As we always put the cursor keys into application mode, assume keys sent | 2009-10-26 | 1 | -6/+15 | ||
| | | | | | | with CSI have ctrl. Also add a couple of comments. | |||||
* | Tidy up table. | 2009-10-26 | 1 | -75/+71 | ||
| | ||||||
* | Rename keypad keys to something more useful. | 2009-10-26 | 1 | -17/+17 | ||
| | ||||||
* | Remove the xterm-keys code which is broken (a replacement is coming but some | 2009-10-26 | 1 | -77/+4 | ||
| | | | | more cleanup is needed first). | |||||
* | Clean up by introducing a wrapper struct for mouse clicks rather than passing | 2009-10-11 | 1 | -11/+12 | ||
| | | | | | | | three u_chars around. As a side-effect this fixes incorrectly rejecting high cursor positions (because it was comparing them as signed char), reported by Tom Doherty. | |||||
* | Regularise some fatal messages. | 2009-09-20 | 1 | -3/+3 | ||
| | ||||||
* | Detect backspace by looking at termios VERASE and translate it into \177 (which | 2009-07-26 | 1 | -1/+13 | ||
| | | | | | | matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs cap is often wrong or missing so it can't be used, and just assuming \177 may be wrong. | |||||
* | Tidy up keys: use an enum for the key codes, and remove the macros which just | 2009-07-21 | 1 | -24/+19 | ||
| | | | | wrap flag sets/clears/tests. | |||||
* | Import tmux, a terminal multiplexor allowing (among other things) a single | 2009-06-01 | 1 | -0/+412 | ||
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti |