aboutsummaryrefslogtreecommitdiff
path: root/tty.c
Commit message (Collapse)AuthorAge
* Add a per-pane option set. Pane options inherit from window options (sonicm2019-06-20
| | | | | | | | | | | | there should be no change to existing behaviour) and are set and shown with set-option -p and show-options -p. Change remain-on-exit and window-style/window-active-style to be pane options (some others will be changed later). This makes select-pane -P and -g unnecessary so no longer document them (they still work) and no longer document set-window-option and show-window-options in favour of set-option -w and show-options -w.
* I had hoped that non-xenl terminals had died out, at least in fairlynicm2019-05-30
| | | | | modern OSs, but no - DragonFly BSD's console returns to haunt us. Fix it at least somewhat. GitHub issue 1763.
* Add support for overline (SGR 53), from Ricardo Banffy.nicm2019-05-13
|
* Need a fallback for -2 for aixterm colours.nicm2019-04-25
|
* Use bg not fg when adjusting for aixterm, from Ailin Nemui.nicm2019-04-24
|
* Set the window size as well as the layout size when using the presetnicm2019-04-17
| | | | layouts.
* Fix ED1 (clear end of screen), reported by Marc Reisner.nicm2019-03-14
|
* Add a wrapper (struct style) around styles rather than using thenicm2019-03-14
| | | | grid_cell directly. There will be some non-cell members soon.
* Need to set attributes before clearing.nicm2019-03-13
|
* Set a flag on cells are genuinely empty (cleared and never written to)nicm2019-03-12
| | | | | | and use tty_clear_line (which will choose the best escape sequence) to clear any batches of cells with that flag when redrawing a line from the stored screen.
* Don't set client offset if client is not a terminalnicm2019-03-04
|
* Should use DECFRA if not default, not if default. From Karl Beldan.nicm2019-01-20
|
* Should save the bg colour when setting it to default, not the fg.nicm2019-01-15
|
* evbuffer_new and bufferevent_new can both fail (when malloc fails) andnicm2018-11-19
| | | | return NULL. GitHub issue 1547.
* Add a "terminal" colour which can be used instead of "default" in stylenicm2018-10-25
| | | | | options for the terminal default colour, bypassing any inheritance from other options. Prompted by a discussion with abieber@.
* Support for windows larger than visible on the attached client. This hasnicm2018-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | been a limitation for a long time. There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed. The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before. If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right. Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual). The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest. For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing.. If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session. The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders. The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
* Support for extended underline styles on terminals which offer them,nicm2018-10-18
| | | | | enabled by adding the Smulx capability with terminal-overrides (add something like ',vte*:Smulx=\E[4\:%p1%dm'). GitHub issue 1492.
* Allow panes to be 1 line or column by redrawing instead of using thenicm2018-09-25
| | | | scroll region, from Soeren Tempel in GitHub issue 1487.
* The cursor position is limited to the margins for CUF and CUB, so turnnicm2018-09-11
| | | | | margins off for printing cells (like most everything else already does). Problem reported by Thomas Sattler.
* Add a client redraw-window flag instead of the redraw-all flag and fornicm2018-08-19
| | | | all just use the three flags together (window, borders, status).
* Some tidying and helper functions.nicm2018-08-18
|
* Add accessors for grid linedata member, for some future work. From Dannicm2018-07-04
| | | | Aloni.
* Handle terminfo colors > 256 correctly, GitHub issue 1337.nicm2018-05-07
|
* rxvt-unicode has some funny behaviour when scrolling with the cursor notnicm2018-04-23
| | | | at column 1, so move it back there first if possible. GitHub issue 1318.
* Upstream ncurses has introduced terminfo capabilities to specify RGBnicm2018-02-04
| | | | | | | | | | | | | | | | | | | | | colour ("true" or "direct" colour). These consist of new entries (such as "xterm-direct") which have a different setaf/setab implementation, colors and pairs set to 0x1000000 and 0x10000, and a new RGB flag. The setaf/setab definitions seem to be geared towards what ncurses (or emacs maybe) needs, in that the new versions do only ANSI and RGB colours (they can't be used for the 256 colour palette); they rely on the silly ISO colon-separated version of SGR; and they use a weird multiplication scheme so they still only need one argument. The higher values of colors and pairs require a recent ncurses to parse. tmux can use the RGB flag to detect RGB colour support (keeping the old Tc extension for backwards compatibility for now). However, as we still want to send 256 colour information unchanged when possible, the new setaf/setab are awkward. So when RGB is present, reserve setaf/setab only for ANSI colours and use the escape sequences directly for 256 and RGB colours. (To my knowledge no recent terminal uses unusual escape sequences for these in any case.)
* Fix drawing of ACS characters (they need to go character-at-a-time),nicm2018-01-16
| | | | accidentally broken in last commit.
* Simplify character replacement on non-UTF-8 terminals and make a commonnicm2018-01-12
| | | | function.
* If there is a double width character at the very end of the line withnicm2017-11-15
| | | | not enough room to draw it, just leave it out.
* Infrastructure for drawing status lines of more than one line in height,nicm2017-10-16
| | | | still only one is allowed but this lets tmux draw bigger ones.
* When tty is error or closed, remove client. Reported by Thomas Sattler.nicm2017-08-24
|
* Same as previous for \r alone.nicm2017-08-21
|
* Do not emit \r\n to move to column 0 if there are margins, because itnicm2017-08-21
| | | | will instead move to the margin left.
* Use the actual width written rather than the possible width to clear.nicm2017-07-21
|
* Trim trailing spaces from full line when it is clearly OK to do so.nicm2017-07-21
|
* Delete input event when evbuffer_read() fails to avoid just spinningnicm2017-06-06
| | | | | around a dead file descriptor. Seems to fix a problem reported by Greg Hurrell in GitHub issue 941.
* Typo/style; plus man page escaping from jmc.nicm2017-06-04
|
* Foreground colours with the bright attribute set need to use the brightnicm2017-06-03
| | | | entries in the palette. GitHub issue 954.
* It is not OK to ignore SIGWINCH if SIOCGWINSZ reports the size hasnicm2017-05-31
| | | | | | unchanged, because it may have changed and changed back in the time between us getting the signal and calling ioctl(). Always redraw when we see SIGWINCH.
* Look for setrgbf and setrgbb terminfo extensions for RGB colour. This isnicm2017-05-31
| | | | | the most reasonable of the various (some bizarre) suggestions for capabilities.
* Check the terminfo(5) U8 capability and disable using UTF-8 for ACS ifnicm2017-05-15
| | | | | | it is present and zero. This is useful for users with terminals or fonts that do not correctly support UTF-8 line drawing characters. GitHub issue 927, reported by Hiroaki Yamazoe and Akinori Hattori.
* The Konsole SU bug means it can't clear the entire scroll region (itnicm2017-05-15
| | | | | | ignores if >= size, not if > as I first thought). So we can't effectively fix it in code - remove the workarounds which just cause bugs on other terminals.
* Scroll the right number of lines off the region when clearing.nicm2017-05-13
|
* Some other unused variables.nicm2017-05-13
|
* Compare >= for columns not >.nicm2017-05-12
|
* Can scroll away full lines to clear them too.nicm2017-05-12
|
* Cannot rely on cursor position after DL and IL (some terminals move tonicm2017-05-12
| | | | column 0, some do not).
* Scrolling needs to use background colour.nicm2017-05-12
|
* Regions can't be smaller than 2 so don't try to clear them by scrolling if so.nicm2017-05-12
|
* Can use INDN to clear regions with default background colour if marginsnicm2017-05-12
| | | | are supported.
* ECH needs to use background colour.nicm2017-05-12
|