summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* correctly use HOST_NAME_MAX.deraadt2015-01-111-3/+3
| | | | | | | | | | | | | | | | | Some notes: POSIX HOST_NAME_MAX doesn't include the NUL. POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL. BSD MAXHOSTNAMELEN includes the NUL. Actually, most of the historical BSD MAX* defines did include the NUL, except for the historical mistake of utmp fields without NULs in the string, which directly led to strncpy.. just showing how error prone this kind of accounting is. CSRG did right. Somehow POSIX missed the memo on the concepts of carefulness and consistancy, and we are still paying the price when people trip over this. Of course, glibc is even more amazing (that is a hint to blackhats) ok guenther
* Add V for select line with vi(1) keys. From Juho Pohjala.nicm2014-11-061-1/+2
|
* Tidy up some includes.nicm2014-10-201-4/+4
|
* Add xreallocarray and remove nmemb argument from xrealloc.nicm2014-10-081-3/+3
|
* Various minor style and spacing nits.nicm2014-09-011-2/+2
|
* Fix two copy mode problems:nicm2014-08-111-6/+19
| | | | | | | | | 1. In vi mode the selection doesn't include the last character if you moved the cursor up or left. 2. In emacs mode the selection includes the last character if you moved the cursor to the left. From Balazs Kezes.
* Three small changes from Tiago Cunha:nicm2014-01-091-6/+2
| | | | | | - Check for truncation when copying path. - Don't need to use a temporary buffer in screen_set_title. - Include strerror in output when connecting to server fails.
* Don't let cursor position overflow when reflowing, from Christophernicm2013-05-151-2/+8
| | | | Collins.
* Rework reflow code so it does not do so much allocation which should benicm2013-03-211-10/+5
| | | | faster with large histories.
* Automatically reflow wrapped lines when a pane is resized, requested bynicm2013-02-051-2/+20
| | | | many over the years and finally implemented by Richard Woodbury.
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-101-9/+7
|
* Michael Krysiak points out that some terminals (eg mintty) have cursornicm2012-03-171-2/+2
| | | | styles 5 and 6 too, so allow them to be set.
* Support DECSCUSR sequence to set the cursor style with two newnicm2011-05-201-1/+10
| | | | terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
* Support xterm(1) cursor colour change sequences through terminfo(5) Ccnicm2011-05-201-1/+11
| | | | | (set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
* Don't need vis.h anymore.nicm2011-05-041-2/+1
|
* Don't use strnvis for the title as it breaks UTF-8. set-titles is nownicm2011-05-041-2/+2
| | | | | off by default and we have to trust the terminal can understand what we send it anyway so there isn't any harm.
* Fix rectangle copy to behave like emacs - the cursor is not part of thenicm2010-12-111-3/+3
| | | | selection on the right edge but on the left it is.
* Merge copy mode and output mode, dropping the latter. Idea and code fromnicm2010-04-061-2/+3
| | | | Micah Cowan.
* rather than using an empty "" as the default window title, put the hostnamebeck2010-04-041-2/+7
| | | | | | | | | of the machine we are running on in there. makes my many green lines easier to deal with without using fiddly options to set it. ok nicm@
* Rectangle copy support, from Robin Lee Powell.nicm2010-02-061-37/+78
|
* Fix selection behaviour when the cursor is moved backwards (ie so the selectionnicm2010-01-031-4/+24
| | | | start is after the end).
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastnicm2009-12-031-5/+5
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Change the way the grid is stored, previously it was:nicm2009-08-081-11/+5
| | | | | | | | | | | - a two-dimensional array of cells; - a two-dimensional array of utf8 data; - an array of line lengths. Now it is a single array of a new struct grid_line each of which represents a line and containts the length and an array of cells and an array of utf8 data. This will make it easier to add additional per-line members, such as flags.
* Plug some memory leaks.nicm2009-07-301-1/+3
|
* When resizing a screen smaller in alternate screen mode, all the lines needednicm2009-07-171-2/+2
| | | | | | could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
* Support "alternate screen" mode (terminfo smcup/rmcup) typically used by fullnicm2009-07-131-7/+21
| | | | | | | screen interactive programs to preserve the screen contents. When activated, it saves a copy of the visible grid and disables scrolling into and resizing out of the history; when deactivated the visible data is restored and the history reenabled.
* When the terminal size is reduced horizontally, don't truncate lines to the newnicm2009-07-091-35/+10
| | | | | width, so that if the same lines are later increased in size the content reappears.
* When reinitialising the screen, do not omit to clear the last line.nicm2009-07-081-2/+2
|
* Fix a type mismatch warning in assignment.nicm2009-06-241-3/+5
|
* Change to match xterm's resizing behaviour, including pushing lines into thenicm2009-06-241-34/+48
| | | | | | | history from the top when reducing vertical size and pulling them again when increasing size. ok todd sthen
* Proper support for tab stops (\033H etc), using a bitstring(3). Makes anothernicm2009-06-041-2/+31
| | | | vttest test happy.
* Pass window titles through vis(1). <0x20 is dropped anyway by the input statenicm2009-06-031-2/+7
| | | | | | | machine but top-bit-set nonprintables could cause trouble, and they are neater like this anyway. Suggested by deraadt a few days ago.
* Import tmux, a terminal multiplexor allowing (among other things) a singlenicm2009-06-011-0/+240
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