aboutsummaryrefslogtreecommitdiff
path: root/grid.c
Commit message (Collapse)AuthorAge
* Spacing, warning nits.Nicholas Marriott2013-03-25
|
* Allow lastgc to be NULL in grid_string_cells so find-window doesn't crash,Nicholas Marriott2013-03-06
| | | | problem reported by eugene everson.
* Preserve trailing spaces with capture-pane -J, from George Nachman.Nicholas Marriott2013-03-04
|
* Use \\ not \ for escaping \.Nicholas Marriott2013-02-24
|
* Add -C and -J to capture pane to escape control sequences and to join wrappedNicholas Marriott2013-02-21
| | | | line, based on a diff from George Nachman.
* Clear last attributes after reset in string_cells, from George Nachman.Nicholas Marriott2013-02-20
|
* Add -e flag to capture-pane to include embedded ANSI SGR escape sequences, fromNicholas Marriott2013-02-19
| | | | George Nachman.
* 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.
* | Merge branch 'obsd-master'Thomas Adam2013-01-30
|\| | | | | | | | | | | Conflicts: Makefile grid-utf8.c
| * Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott2013-01-18
| | | | | | | | | | UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Use a predefined structure for not-space cells used to set attributes.Nicholas Marriott2012-05-23
| |
| * Merge copy mode and output mode, dropping the latter. Idea and code fromNicholas Marriott2010-04-06
| | | | | | | | Micah Cowan.
| * 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...
| * Cleanup by moving various (mostly horrible) little bits handling UTF-8 gridNicholas Marriott2009-11-18
| | | | | | | | | | | | | | data into functions in a new file, grid-utf8.c, and use sizeof intead of UTF8_DATA. Also nuke trailing whitespace from tmux.1, reminded by jmc.
| * Move lines into the history when scrolling even if the scroll region is notNicholas Marriott2009-10-13
| | | | | | | | | | | | the entire screen. Allows ircII users to see history, prompted by naddy.
| * Stick line length to what is actually used (removing an optimization thatNicholas Marriott2009-09-15
| | | | | | | | | | | | | | | | allowed it to be bigger), and use clear line/EOL sequences rather than spaces in copy/scroll mode. This fixes xterm copy/paste from tmux which treats trailing spaces differently from clearing a line with the escape sequences. Reported by martynas@.
| * Fix grid_expand_line so it actually works when the required size is bigger thanNicholas Marriott2009-08-21
| | | | | | | | 2 * the current size.
| * A few trivial optimisations: no need to check for zero size if callingNicholas Marriott2009-08-20
| | | | | | | | | | | | buffer_ensure in buffer.c; expand grid lines by a greater increase than one each time; and don't read UTF-8 data unless it actually needs to be checked when overwriting a cell.
| * Use the right source and destination lines in grid_duplicate_lines.Nicholas Marriott2009-08-10
| |
| * 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.
| * Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found byNicholas Marriott2009-07-21
| | | | | | | | lint.
| * Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrongNicholas Marriott2009-07-16
| | | | | | | | place when copying UTF-8 data. Found by Dan Colish.
| * 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.
| * Limit the history to hlimit not hlimit - 1. This makes a history-limit settingNicholas Marriott2009-07-11
| | | | | | | | of 0 work as expected.
| * Miscellaneous unused functions, including one which was basically aNicholas Marriott2009-06-25
| | | | | | | | duplicate. Found by lint.
| * Change find-window and monitor-content to use fnmatch(3). For convenience andNicholas Marriott2009-06-24
| | | | | | | | | | | | | | | | | | compatibility, *s are implicitly added at the start and end of the pattern. Also display the line number and the entire line in the results, and lose the nasty section_string function and the now empty util.c file. Initially from Tiago Cunha.
| * Add a dedicated function to convert a line into a string and use it to ↵Nicholas Marriott2009-06-24
| | | | | | | | simplify the search window function.
| * Remove trailing newlines, spaces, and tabs.Ray Lai2009-06-05
| | | | | | | | No binary change.
| * 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 1122:Tiago Cunha2012-05-30
| | | | | Use a predefined structure for not-space cells used to set attributes.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Merge output (more) and copy modes into one single mode (called copy).Micah Cowan2010-04-05
|
* 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 547:Tiago Cunha2009-11-19
| | | | | | | | | Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid data into functions in a new file, grid-utf8.c, and use sizeof intead of UTF8_DATA. Also nuke trailing whitespace from tmux.1, reminded by jmc.
* Sync OpenBSD patchset 409:Tiago Cunha2009-10-15
| | | | | | | | Move lines into the history when scrolling even if the scroll region is not the entire screen. Allows ircII users to see history, prompted by naddy.
* Sync OpenBSD patchset 328:Tiago Cunha2009-09-15
| | | | | | | | | | Stick line length to what is actually used (removing an optimization that allowed it to be bigger), and use clear line/EOL sequences rather than spaces in copy/scroll mode. This fixes xterm copy/paste from tmux which treats trailing spaces differently from clearing a line with the escape sequences. Reported by martynas@.
* Sync OpenBSD patchset 283:Tiago Cunha2009-08-21
| | | | | | Fix grid_expand_line so it actually works when the required size is bigger than 2 * the current size.
* Sync OpenBSD patchset 282:Tiago Cunha2009-08-21
| | | | | | | | A few trivial optimisations: no need to check for zero size if calling buffer_ensure in buffer.c; expand grid lines by a greater increase than one each time; and don't read UTF-8 data unless it actually needs to be checked when overwriting a cell.
* Sync OpenBSD patchset 239:Tiago Cunha2009-08-10
| | | | | Use the right source and destination lines in grid_duplicate_lines.
* 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 153:Tiago Cunha2009-07-22
| | | | | | Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by lint.
* Stupid cvsps.Nicholas Marriott2009-07-17
|
* Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrongNicholas Marriott2009-07-17
| | | | | place when copying UTF-8 data. Found by Dan Colish.
* Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrongNicholas Marriott2009-07-16
| | | | | place when copying UTF-8 data. Found by Dan Colish.
* 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.
* If it exist, load a system-wide configuration file /etc/tmux.conf before anyNicholas Marriott2009-07-14
| | | | | user-specified one.