aboutsummaryrefslogtreecommitdiff
path: root/tty.c
Commit message (Collapse)AuthorAge
* 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