summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tty.c
AgeCommit message (Collapse)Author
2014-08-09Remove support for the continuous reporting "any" mouse mode which neverNicholas Marriott
really worked properly and is rarely used.
2014-04-25specifying ECHOCTL once is enoughJonathan Gray
ok nicm@
2014-04-17Some more long lines.Nicholas Marriott
2014-04-17Wrap some long lines.Nicholas Marriott
2014-02-23Change terminal-overrides to a server option (now that we have them), itNicholas Marriott
doesn't make much sense as a session option.
2014-02-14If the terminfo entry has colors#256, assume that setaf and setab workNicholas Marriott
and use them for the 256 colour set. If the terminfo entry doesn't have colors#256 and the user gives -2 to the client, use a \033[38;5;Xm sequence as before. Should allow fbterm to work with it's weird setaf and setab.
2014-01-28Allow replacing each of the many sets of separate foo-{fg,bg,attr}Nicholas Marriott
options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.
2013-10-20Don't turn on modifyOtherKeys by default, it is annoying if tmux isNicholas Marriott
killed and it's left on and we can't turn it on and off like we do for attributes. It's not hard to enable in .Xresources or .Xdefaults anyway.
2013-06-23Focus events can cause trouble if left on and they can't be turned offNicholas Marriott
during idle periods (like the other states are) because we'd miss events. So add a server option to control them. Defaults to off.
2013-06-11revert r1.156 "Add support for focus notifications when tmux pane changes"Stuart Henderson
beck@ found annoying beeps if a machine was shutdown while tmux is running and you then focus in/out of an xterm; kettenis tracked it down to 1.156.
2013-06-02The actual terminfo entries we ended up with for cursor changes are Cs,Nicholas Marriott
Ce, Ss and Se (not Cc, Ce, Cs, Csr). So use and document these instead of the ones we were using earlier.
2013-04-11Send an SGR0 after turning on modifyOtherKeys to fix Terminal.app whichNicholas Marriott
treats \033[>4;1m and \033[4;1m (bold+underline). Reported & tested by otto@.
2013-03-27Remove tmux's (already minimal) 88 colour support. Such terminals areNicholas Marriott
few and unnecessary.
2013-03-24Handle focus events from the terminal, from Aaron Jensen.Nicholas Marriott
2013-03-24Add support for focus notifications when tmux pane changes, based onNicholas Marriott
work by Aaron Jensen.
2013-03-22Use tty_raw on stop, not tty_puts.Nicholas Marriott
2013-03-22Correctly handle UTF8 mouse option being toggled, from Egmont Koblinger.Nicholas Marriott
2013-03-22Support the latest theory for mouse input, this is enabled/disabled withNicholas Marriott
SM/RM 1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From Egmont Koblinger.
2013-03-22No more lint means no more ARGSUSED.Nicholas Marriott
2013-03-22In terminals with XT, turn on modifyOtherKeys=1 with the escape sequenceNicholas Marriott
and handle the most common set. Pass them through if xterm-keys is on.
2013-03-22I strongly suspect it is possible for tmux to block on detach inNicholas Marriott
tty_raw, so make the fd blocking again much later and have tty_raw just retry the write a few times.
2013-03-21Include the \033 in the key tree and adjust key matching for this change.Nicholas Marriott
2013-03-21Tidy by splitting default key tables into two.Nicholas Marriott
2013-01-18Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott
UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
2013-01-15Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.Nicholas Marriott
2012-11-22Put helper function back, will be needed in a bit.Nicholas Marriott
2012-11-22Instead of worrying about xterm version, send DA and read DEC serviceNicholas Marriott
class which is more likely to be useful. Not used for anything yet anyway.
2012-11-22Don't need to send DECSL on detaching now, the code using higher levelsNicholas Marriott
has gone.
2012-09-29Do not test client flags against TTY_FREEZE bit, reported by Tom Ryder.Nicholas Marriott
2012-09-05We can't tell what the terminal has done with a DCS string, so reset theNicholas Marriott
cursor and attributes afterwards.
2012-09-03Remove xterm CRA support - support is patchy and it will be done betterNicholas Marriott
using margins.
2012-08-14Tidy up tty_write, from Sean Estabrooks.Nicholas Marriott
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-06-20Remove a couple of unused variables from redbrain at gcc dot gnu dot org.Nicholas Marriott
2012-05-22Store client in tty struct directly instead of using a callback functionNicholas Marriott
pointer.
2012-05-22Use tty_pane_full_width macro in some more places.Nicholas Marriott
2012-05-22If there are any terminals with insert mode but not ich1, they can goNicholas Marriott
through the slow path. Tidies code slightly.
2012-05-22Move some common code to repeat spaces into a function.Nicholas Marriott
2012-05-05Tidy up by adding a macro for the pane being the full screen width, fromNicholas Marriott
Ailin Nemui.
2012-05-05Missing ()s in macros.Nicholas Marriott
2012-05-05Pull CRA out into a separate function and add ERA, from Ailin Nemui.Nicholas Marriott
2012-03-20Add a simple form of output rate limiting by counting the number ofNicholas Marriott
certain C0 sequences (linefeeds, backspaces, carriage returns) and if it exceeds a threshold (current default 50/millisecond), start to redraw the pane every 100 milliseconds instead of making each change as it comes. Two configuration options - c0-change-trigger and c0-change-interval. This makes tmux much more responsive under very fast output (for example yes(1) or accidentally cat'ing a large file) but may not be perfect on all terminals and connections - feedback very welcome, particularly where this change has a negative rather than positive effect (making it off by default is a possibility). After much experimentation based originally on a request Robin Lee Powell (which ended with a completely different solution), this idea from discussion with Ailin Nemui.
2012-03-17On xterm 271 and later, put the terminal into SCL 5 and use DECCRA forNicholas Marriott
scrolling the region in panes (if the large region check isn't hit). With help from Ailin Nemui.
2012-03-17Break out termios initialization into a separate function, from GeorgeNicholas Marriott
Nachman.
2012-03-17Do not clear to end of line if the line is full, fixes missing lastNicholas Marriott
character in rightmost pane.
2012-03-17Use the region lower not the pane size to work out where the bottom lineNicholas Marriott
is.
2012-03-17Tweak last fix to actually hit the right end of pane.Nicholas Marriott
2012-03-17Check event_initialized before event_del if event may not have been setNicholas Marriott
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-17Revert screen-write.c r1.54 and fix the bug properly. After wrapping aNicholas Marriott
line in a pane, the cursor needs to move to the next line unless it scrolled.
2012-03-15Send secondary DA to terminals with XT in terminfo when starting up andNicholas Marriott
parse it to work out the xterm version.