aboutsummaryrefslogtreecommitdiff
path: root/grid-view.c
Commit message (Collapse)AuthorAge
* Preserve trailing spaces with capture-pane -J, from George Nachman.Nicholas Marriott2013-03-04
|
* 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.
* Add -e flag to capture-pane to include embedded ANSI SGR escape sequences, fromNicholas Marriott2013-02-19
| | | | George Nachman.
* 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).
| * Enforce history-limit option when clearing the screen, memory leakNicholas Marriott2012-01-29
| | | | | | | | spotted by R I Pienaar.
| * When clearing the entire screen, clear lines that are used into theNicholas Marriott2011-01-25
| | | | | | | | history like xterm does. Requested ages ago by someone I've forgotten.
| * 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...
| * 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.
| * 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.
| * Change inserting and deleting lines inside the scroll region to properly clearNicholas Marriott2009-07-09
| | | | | | | | | | lines that should be inserted/deleted but not moved. Fixes problems with mutt reported by Brian Lewis, thanks.
| * Tidy by removing unused argument from grid_view_{insert,delete}_line_regionNicholas Marriott2009-07-09
| | | | | | | | functions (currently don't fully work, this is to make fix easier).
| * Fix two errors with character/line insertion and deletion: the maximum numberNicholas Marriott2009-06-29
| | | | | | | | | | | | | | | | | | | | of characters which may be inserted or deleted is the screen width, not one less (and similarly for lines and height); and if characters or lines are deleted by moving the ones that follow, the space at the end needs to be cleared. This appears to solve long-standing redraw issues most visible when using the force-width option then scrolling in view(1) or unwrapping lines in emacs.
| * Add a dedicated function to convert a line into a string and use it to ↵Nicholas Marriott2009-06-24
| | | | | | | | simplify the search window function.
| * 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 1016:Tiago Cunha2012-01-31
| | | | | | Enforce history-limit option when clearing the screen, memory leak spotted by R I Pienaar.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 853:Tiago Cunha2011-02-15
| | | | | | When clearing the entire screen, clear lines that are used into the history like xterm does. Requested ages ago by someone I've forgotten.
* 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 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.
* 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.
* Change inserting and deleting lines inside the scroll region to properly clearNicholas Marriott2009-07-09
| | | | | | lines that should be inserted/deleted but not moved. Fixes problems with mutt reported by Brian Lewis, thanks.
* Tidy by removing unused argument from grid_view_{insert,delete}_line_regionNicholas Marriott2009-07-09
| | | | | functions (currently don't fully work, this is to make fix easier).
* Fix two errors with character/line insertion and deletion: the maximum numberNicholas Marriott2009-07-01
| | | | | | | | | | | of characters which may be inserted or deleted is the screen width, not one less (and similarly for lines and height); and if characters or lines are deleted by moving the ones that follow, the space at the end needs to be cleared. This appears to solve long-standing redraw issues most visible when using the force-width option then scrolling in view(1) or unwrapping lines in emacs.
* Whitespace and more syncing.Nicholas Marriott2009-06-25
|
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Add a dedicated function to convert a line into a string and use it to ↵Nicholas Marriott2009-06-25
| | | | simplify the search window function.
* 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
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* Some tweaks found by LLVM courtesy of IcePic.Nicholas Marriott2009-01-05
|
* Don't segfault on last character.Nicholas Marriott2008-12-11
|
* 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