summaryrefslogtreecommitdiffstats
path: root/screen.c
AgeCommit message (Collapse)Author
2015-01-16Merge branch 'obsd-master'Thomas Adam
2015-01-11correctly use HOST_NAME_MAX.deraadt
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
2014-11-09Merge branch 'obsd-master'Thomas Adam
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-11-06Add V for select line with vi(1) keys. From Juho Pohjala.nicm
2014-10-21Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
2014-10-20Tidy up some includes.nicm
2014-10-08Add xreallocarray and remove nmemb argument from xrealloc.nicm
2014-09-25Merge branch 'obsd-master'Thomas Adam
2014-09-01Various minor style and spacing nits.nicm
2014-08-11Fix two copy mode problems:nicm
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.
2014-01-20Merge branch 'obsd-master'Thomas
2014-01-09Three small changes from Tiago Cunha:nicm
- 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.
2013-05-25Merge branch 'obsd-master'Thomas Adam
Conflicts: tmux.h
2013-05-15Don't let cursor position overflow when reflowing, from ChristopherNicholas Marriott
Collins.
2013-03-21Rework reflow code so it does not do so much allocation which should beNicholas Marriott
faster with large histories.
2013-02-10Rework reflow code so it does not do so much allocation which should be fasterNicholas Marriott
with large histories.
2013-02-07Merge branch 'obsd-master'Thomas Adam
2013-02-05Automatically reflow wrapped lines when a pane is resized, requested byNicholas Marriott
many over the years and finally implemented by Richard Woodbury.
2012-07-11Sync OpenBSD patchset 1150:Tiago Cunha
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-03-18Sync OpenBSD patchset 1065:Tiago Cunha
Michael Krysiak points out that some terminals (eg mintty) have cursor styles 5 and 6 too, so allow them to be set.
2012-03-17Michael Krysiak points out that some terminals (eg mintty) have cursorNicholas Marriott
styles 5 and 6 too, so allow them to be set.
2011-07-09Expand the Id keyword. Tiago Cunha
2011-05-22Sync OpenBSD patchset 916:Tiago Cunha
Support DECSCUSR sequence to set the cursor style with two new terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
2011-05-22Sync OpenBSD patchset 915:Tiago Cunha
Support xterm(1) cursor colour change sequences through terminfo(5) Cc (set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
2011-05-20Support DECSCUSR sequence to set the cursor style with two newNicholas Marriott
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
2011-05-20Support xterm(1) cursor colour change sequences through terminfo(5) CcNicholas Marriott
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
2011-05-05Sync OpenBSD patchset 901:Tiago Cunha
Don't use strnvis for the title as it breaks UTF-8. set-titles is now off by default and we have to trust the terminal can understand what we send it anyway so there isn't any harm.
2011-05-04Don't need vis.h anymore.Nicholas Marriott
2011-05-04Don't use strnvis for the title as it breaks UTF-8. set-titles is nowNicholas Marriott
off by default and we have to trust the terminal can understand what we send it anyway so there isn't any harm.
2010-12-11Fix rectangle copy to behave like emacs - the cursor is not part of theNicholas Marriott
selection on the right edge but on the left it is.
2010-12-11Fix rectangle copy to behave like emacs - the cursor is not part of theNicholas Marriott
selection on the right edge but on the left it is.
2010-07-19Solaris has MAXHOSTNAMELEN in netdb.h.Nicholas Marriott
2010-04-06From Bob Beck:Nicholas Marriott
rather than using an empty "" as the default window title, put the hostname 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.
2010-04-06Merge copy mode and output mode, dropping the latter. Idea and code fromNicholas Marriott
Micah Cowan.
2010-04-05Merge output (more) and copy modes into one single mode (called copy).Micah Cowan
2010-04-04rather than using an empty "" as the default window title, put the hostnameBob Beck
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@
2010-02-08Sync OpenBSD patchset 636:Tiago Cunha
Rectangle copy support, from Robin Lee Powell.
2010-02-06Rectangle copy support, from Robin Lee Powell.Nicholas Marriott
2010-01-05Sync OpenBSD patchset 598:Tiago Cunha
Fix selection behaviour when the cursor is moved backwards (ie so the selection start is after the end).
2010-01-03Fix selection behaviour when the cursor is moved backwards (ie so the selectionNicholas Marriott
start is after the end).
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
time now I've configured emacs to make them displayed in really annoying colours...
2009-08-09Sync OpenBSD patchset 226:Tiago Cunha
Change the way the grid is stored, previously it was: - 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 contains 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.
2009-08-08Change the way the grid is stored, previously it was:Nicholas Marriott
- 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.
2009-07-30Sync OpenBSD patchset 207:Tiago Cunha
Plug some memory leaks.
2009-07-30Plug some memory leaks.Nicholas Marriott
2009-07-18When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott
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.
2009-07-17When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott
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.