aboutsummaryrefslogtreecommitdiff
path: root/screen.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2013-05-25
|\ | | | | | | | | Conflicts: tmux.h
| * Don't let cursor position overflow when reflowing, from ChristopherNicholas Marriott2013-05-15
| | | | | | | | Collins.
| * Rework reflow code so it does not do so much allocation which should beNicholas Marriott2013-03-21
| | | | | | | | faster with large histories.
* | Rework reflow code so it does not do so much allocation which should be fasterNicholas Marriott2013-02-10
| | | | | | | | with large histories.
* | Merge branch 'obsd-master'Thomas Adam2013-02-07
|\|
| * Automatically reflow wrapped lines when a pane is resized, requested byNicholas Marriott2013-02-05
| | | | | | | | many over the years and finally implemented by Richard Woodbury.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Michael Krysiak points out that some terminals (eg mintty) have cursorNicholas Marriott2012-03-17
| | | | | | | | styles 5 and 6 too, so allow them to be set.
| * Support DECSCUSR sequence to set the cursor style with two newNicholas Marriott2011-05-20
| | | | | | | | terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
| * Support xterm(1) cursor colour change sequences through terminfo(5) CcNicholas Marriott2011-05-20
| | | | | | | | | | (set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
| * Don't need vis.h anymore.Nicholas Marriott2011-05-04
| |
| * Don't use strnvis for the title as it breaks UTF-8. set-titles is nowNicholas Marriott2011-05-04
| | | | | | | | | | 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 theNicholas Marriott2010-12-11
| | | | | | | | selection on the right edge but on the left it is.
| * Merge copy mode and output mode, dropping the latter. Idea and code fromNicholas Marriott2010-04-06
| | | | | | | | Micah Cowan.
| * rather than using an empty "" as the default window title, put the hostnameBob Beck2010-04-04
| | | | | | | | | | | | | | | | | | 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.Nicholas Marriott2010-02-06
| |
| * Fix selection behaviour when the cursor is moved backwards (ie so the selectionNicholas Marriott2010-01-03
| | | | | | | | start is after the end).
| * Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | | | | | | time now I've configured emacs to make them displayed in really annoying colours...
| * Change the way the grid is stored, previously it was:Nicholas Marriott2009-08-08
| | | | | | | | | | | | | | | | | | | | | | - 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.Nicholas Marriott2009-07-30
| |
| * When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott2009-07-17
| | | | | | | | | | | | 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 fullNicholas Marriott2009-07-13
| | | | | | | | | | | | | | 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 newNicholas Marriott2009-07-09
| | | | | | | | | | 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.Nicholas Marriott2009-07-08
| |
| * Fix a type mismatch warning in assignment.Nicholas Marriott2009-06-24
| |
| * Change to match xterm's resizing behaviour, including pushing lines into theNicholas Marriott2009-06-24
| | | | | | | | | | | | | | 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 anotherNicholas Marriott2009-06-04
| | | | | | | | vttest test happy.
| * Pass window titles through vis(1). <0x20 is dropped anyway by the input stateNicholas Marriott2009-06-03
| | | | | | | | | | | | | | 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 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
* Sync OpenBSD patchset 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Sync OpenBSD patchset 1065:Tiago Cunha2012-03-18
| | | | | | Michael Krysiak points out that some terminals (eg mintty) have cursor styles 5 and 6 too, so allow them to be set.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 916:Tiago Cunha2011-05-22
| | | | | | Support DECSCUSR sequence to set the cursor style with two new terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
* Sync OpenBSD patchset 915:Tiago Cunha2011-05-22
| | | | | | | 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.
* Sync OpenBSD patchset 901:Tiago Cunha2011-05-05
| | | | | | | 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.
* Fix rectangle copy to behave like emacs - the cursor is not part of theNicholas Marriott2010-12-11
| | | | | selection on the right edge but on the left it is.
* Solaris has MAXHOSTNAMELEN in netdb.h.Nicholas Marriott2010-07-19
|
* From Bob Beck:Nicholas Marriott2010-04-06
| | | | | | | | | 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.
* Merge output (more) and copy modes into one single mode (called copy).Micah Cowan2010-04-05
|
* Sync OpenBSD patchset 636:Tiago Cunha2010-02-08
| | | | | Rectangle copy support, from Robin Lee Powell.
* Sync OpenBSD patchset 598:Tiago Cunha2010-01-05
| | | | | | Fix selection behaviour when the cursor is moved backwards (ie so the selection start is after the end).
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | 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...
* Sync OpenBSD patchset 226:Tiago Cunha2009-08-09
| | | | | | | | | | | | | | 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.
* Sync OpenBSD patchset 207:Tiago Cunha2009-07-30
| | | | | Plug some memory leaks.
* When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott2009-07-18
| | | | | | | 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.
* When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott2009-07-17
| | | | | | | 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 fullNicholas Marriott2009-07-14
| | | | | | | | 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 newNicholas Marriott2009-07-12
| | | | | | width, so that if the same lines are later increased in size the content reappears.
* Fix $Id$.Nicholas Marriott2009-07-08
|
* When reinitialising the screen, do not omit to clear the last line.Nicholas Marriott2009-07-08
|