aboutsummaryrefslogtreecommitdiff
path: root/tty.c
Commit message (Collapse)AuthorAge
...
| * If colours are not supported by the terminal, try to emulate a colouredNicholas Marriott2009-08-05
| | | | | | | | | | | | | | | | background by setting or clearing the reverse attribute. This makes a few applications which don't use the reverse attribute themselves a little happier, and allows the status, message and mode options to have default attributes and fg/bg options that work as expected when set as reverse.
| * Add a terminal-overrides session option allowing individual terminfo(5) entriesNicholas Marriott2009-08-03
| | | | | | | | | | | | | | | | to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Also remove a couple of old workarounds for xterm and rxvt which are no longer necessary (tmux can emulate them if missing).
| * Draw UTF-8 characters under the selection correctly.Nicholas Marriott2009-07-27
| |
| * tty_write is relatively short and the only function left in tty-write.c so moveNicholas Marriott2009-07-22
| | | | | | | | it into tty.c.
| * More tty code tidying: move the saved cursor/region position (from before theNicholas Marriott2009-07-22
| | | | | | | | screen was updated) out of struct screen and into struct tty_ctx.
| * enum tty_cmd is only used as an index into the array of command functionNicholas Marriott2009-07-22
| | | | | | | | | | pointers, so remove it and use the function pointers directly to represent themselves.
| * There are relatively few arguments to tty_cmd_* functions now, so tidy them upNicholas Marriott2009-07-22
| | | | | | | | by using a struct rather than hiding everything with varargs.
| * tty_cmd_raw is only used once, for raw UTF-8 output, so rename it toNicholas Marriott2009-07-22
| | | | | | | | tty_cmd_utf8character and eliminate the size argument.
| * Don't send initialisation strings is1/2/3 (barely anything else does) and moveNicholas Marriott2009-07-10
| | | | | | | | | | smcup to the first and rmcup to the last sequences output to the terminal. This allows tmux to use the alternate screen (smcup/rmcup) when available.
| * Handle empty or unset TERM correctly; also fix a fatal() message while here.Nicholas Marriott2009-07-07
| |
| * Copy the 256-colour flag into the tty saved cell as well as the actual colour,Nicholas Marriott2009-06-27
| | | | | | | | otherwise colour 8 isn't reset properly.
| * Miscellaneous unused functions, including one which was basically aNicholas Marriott2009-06-25
| | | | | | | | duplicate. Found by lint.
| * Unused variables. Found by lint, no binary change.Nicholas Marriott2009-06-25
| |
| * Trying to predict the cursor position for UTF-8 output in the same way as forNicholas Marriott2009-06-24
| | | | | | | | | | | | normal eight-bit output is wrong, separate it into a different function. Fixes spacing when mixing UTF-8 with some escape sequences, notably the way w3m does it.
| * Implement the DEC alignment test. With the last change this is enough for theNicholas Marriott2009-06-03
| | | | | | | | | | first cursor test in vttest (in ports) to pass; it still shops a few more problems though.
| * Fix some miscalculations when clearing to start of screen: the number of linesNicholas Marriott2009-06-03
| | | | | | | | to the cursor is cy not cy - 1, and the current cursor cell should be included.
| * Recent code to try and detect if a terminal supports UTF-8 by printing to itNicholas Marriott2009-06-02
| | | | | | | | | | fails spectacularly on (at least) sparc64, so disable it for now. Thanks to naddy and Josh Elsasser for help and testing.
| * Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
| | | | | | | 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
* Remove xterm CRA support - support is patchy and it will be done betterNicholas Marriott2012-09-04
| | | | using margins.
* Sync OpenBSD patchset 1163:Tiago Cunha2012-08-31
| | | | | Tidy up tty_write, from Sean Estabrooks.
* Sync OpenBSD patchset 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Sync OpenBSD patchset 1140:Tiago Cunha2012-07-04
| | | | | Remove a couple of unused variables from redbrain at gcc dot gnu dot org.
* Sync OpenBSD patchset 1121:Tiago Cunha2012-05-22
| | | | | | Store client in tty struct directly instead of using a callback function pointer.
* Sync OpenBSD patchset 1117:Tiago Cunha2012-05-22
| | | | | Use tty_pane_full_width macro in some more places.
* Sync OpenBSD patchset 1116:Tiago Cunha2012-05-22
| | | | | | If there are any terminals with insert mode but not ich1, they can go through the slow path. Tidies code slightly.
* Sync OpenBSD patchset 1115:Tiago Cunha2012-05-22
| | | | | Move some common code to repeat spaces into a function.
* Sync OpenBSD patchset 1109:Tiago Cunha2012-05-12
| | | | | | Tidy up by adding a macro for the pane being the full screen width, from Ailin Nemui.
* Sync OpenBSD patchset 1108:Tiago Cunha2012-05-12
| | | | | Missing ()s in macros.
* Sync OpenBSD patchset 1107:Tiago Cunha2012-05-12
| | | | | Pull CRA out into a separate function and add ERA, from Ailin Nemui.
* Sync OpenBSD patchset 1072:Tiago Cunha2012-03-29
| | | | | | | | | | | | | | | | | | | | Add a simple form of output rate limiting by counting the number of 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.
* Sync OpenBSD patchset 1070:Tiago Cunha2012-03-18
| | | | | | | On xterm 271 and later, put the terminal into SCL 5 and use DECCRA for scrolling the region in panes (if the large region check isn't hit). With help from Ailin Nemui.
* Sync OpenBSD patchset 1062:Tiago Cunha2012-03-18
| | | | | | Break out termios initialization into a separate function, from George Nachman.
* Sync OpenBSD patchset 1061:Tiago Cunha2012-03-18
| | | | | | Do not clear to end of line if the line is full, fixes missing last character in rightmost pane.
* Sync OpenBSD patchset 1060:Tiago Cunha2012-03-18
| | | | | | Use the region lower not the pane size to work out where the bottom line is.
* Sync OpenBSD patchset 1059:Tiago Cunha2012-03-18
| | | | | Tweak last fix to actually hit the right end of pane.
* Sync OpenBSD patchset 1057:Tiago Cunha2012-03-18
| | | | | | Check event_initialized before event_del if event may not have been set up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
* Sync OpenBSD patchset 1055:Tiago Cunha2012-03-18
| | | | | | | Revert screen-write.c r1.54 and fix the bug properly. After wrapping a line in a pane, the cursor needs to move to the next line unless it scrolled.
* Sync OpenBSD patchset 1054:Tiago Cunha2012-03-18
| | | | | | Send secondary DA to terminals with XT in terminfo when starting up and parse it to work out the xterm version.
* Sync OpenBSD patchset 1052:Tiago Cunha2012-03-18
| | | | | Fix a warning. Doh.
* Sync OpenBSD patchset 1051:Tiago Cunha2012-03-18
| | | | | | Add a helper function for enabling an optimization to make some code clearer.
* Sync OpenBSD patchset 1048:Tiago Cunha2012-03-18
| | | | | Erm, use EL in a way that actually works...
* Sync OpenBSD patchset 1047:Tiago Cunha2012-03-18
| | | | | Use EL to clear to end of line if possible.
* Sync OpenBSD patchset 1045:Tiago Cunha2012-03-18
| | | | | Remove some bits leftover from unused backoff code.
* Sync OpenBSD patchset 1037:Tiago Cunha2012-03-07
| | | | | | | | | Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if this is used and the application has requested bracketed pastes, then tmux surrounds the pasted text by \033[200~ and \033[201~. Applications like vim can (apparently) use this to avoid, for example, indenting the text. From Ailin Nemui.
* Sync OpenBSD patchset 1029:Tiago Cunha2012-02-15
| | | | | Add a wrapper function tty_set_size from George Nachman.
* Sync OpenBSD patchset 1015:Tiago Cunha2012-01-29
| | | | | | Add an option to move the status line to the top of the screen, requested by many.
* Sync OpenBSD patchset 1006:Tiago Cunha2012-01-21
| | | | | | Add strings to allow the aixterm bright colours to be used when configuring colours, requested by Elliott Cable a few months ago.
* Sync OpenBSD patchset 997:Tiago Cunha2012-01-20
| | | | | | Calculate last position correctly for UTF-8 wide characters, reported by Matthias Lederhofer.
* Sync OpenBSD patchset 949:Tiago Cunha2011-08-25
| | | | | Add a tty_bell wrapper function, from Dylan Alex Simon.
* Sync OpenBSD patchset 921:Tiago Cunha2011-05-26
| | | | | Trim another useless if statement, from Ailin Nemui.