aboutsummaryrefslogtreecommitdiff
path: root/grid.c
Commit message (Collapse)AuthorAge
* 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.
* Limit the history to hlimit not hlimit - 1. This makes a history-limit settingNicholas Marriott2009-07-12
| | | | | of 0 work as expected.
* Whitespace and more syncing.Nicholas Marriott2009-06-25
|
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* 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-25
| | | | | compatibility, *s are implicitly added at the start and end of the pattern.
* Add a dedicated function to convert a line into a string and use it to ↵Nicholas Marriott2009-06-25
| | | | simplify the search window function.
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* Add UTF-8 to grid_compare..Nicholas Marriott2009-03-30
|
* Better UTF-8 support, including combined characters. Unicode data is now storedNicholas Marriott2009-03-28
| | | | | | | | | | | as UTF-8 in a separate array, the code does a lookup into this every time it gets to a UTF-8 cell. Zero width characters are just appended onto the UTF-8 data for the previous cell. This also means that almost no bytes extra are wasted non-Unicode data (yay). Still some oddities, such as copy mode skips over wide characters in a strange way, and the code could do with some tidying.
* _fill functions are no longer needed. Nuke them.Nicholas Marriott2009-03-28
|
* Whoops. Missed a few changes.Nicholas Marriott2009-03-28
|
* Step 2 of the Grand Plan To Make UTF-8 Better.Nicholas Marriott2009-03-28
| | | | | | | | | | | | | | | | | | | Split grid into two arrays, one containing grid attributes/flags/colours (keeps the name grid_cell for now) and a separate with the character data (called text). The text is stored as a u_short but is treated as a uint64_t elsewhere; eventually the grid will have two arrays. I'm not happy with the naming so that might change. Still need to decide where to go from here. I'm not sure whether to combine the peek/set functions together, and also whether to continue to treat the text as a uint64_t (and convert to/from Unicode) or make it a char array (of size one when UTF-8 disabled, eight when enabled) and keep everything as UTF-8. Also since UTF-8 will eventually become an attribute of the grid itself it might be nice to move all the padding crap into grid.c.
* struct grid_data -> struct grid. Stage 1 of the Grand Plan To Make UTF-8 Better.Nicholas Marriott2009-03-28
|
* Don't leak top line of history and status screen.Nicholas Marriott2009-02-16
|
* Don't redraw status line unless it has actually changed. Stops extraneousNicholas Marriott2009-02-10
| | | | | | updates between clock/#() changes and doesn't require manual status-interval 0 when no updates are occuring.
* Tidy a few warnings.Nicholas Marriott2009-01-17
|
* Correct comment.Nicholas Marriott2009-01-11
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* Don't die when out of bounds if non-DEBUG. Stops people hitting me when bugs ↵Nicholas Marriott2009-01-08
| | | | kill their long-running sessions in release versions.
* Calculate y properly.Nicholas Marriott2008-09-28
|
* Trim.Nicholas Marriott2008-09-26
|
* Internal screen data rewrite for better 256 colour/UTF-8 support.Nicholas Marriott2008-09-25