summaryrefslogtreecommitdiffstats
path: root/grid-view.c
AgeCommit message (Collapse)Author
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-10-15Sync OpenBSD patchset 409:Tiago Cunha
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.
2009-07-14Support "alternate screen" mode (terminfo smcup/rmcup) typically used by fullNicholas Marriott
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.
2009-07-09Change inserting and deleting lines inside the scroll region to properly clearNicholas Marriott
lines that should be inserted/deleted but not moved. Fixes problems with mutt reported by Brian Lewis, thanks.
2009-07-09Tidy by removing unused argument from grid_view_{insert,delete}_line_regionNicholas Marriott
functions (currently don't fully work, this is to make fix easier).
2009-07-01Fix two errors with character/line insertion and deletion: the maximum numberNicholas Marriott
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.
2009-06-25Whitespace and more syncing.Nicholas Marriott
2009-06-25Restore $Id$ and add script to do so.Nicholas Marriott
2009-06-25Add a dedicated function to convert a line into a string and use it to ↵Nicholas Marriott
simplify the search window function.
2009-03-28Better UTF-8 support, including combined characters. Unicode data is now storedNicholas Marriott
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.
2009-03-28_fill functions are no longer needed. Nuke them.Nicholas Marriott
2009-03-28Whoops. Missed a few changes.Nicholas Marriott
2009-03-28Step 2 of the Grand Plan To Make UTF-8 Better.Nicholas Marriott
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.
2009-03-28struct grid_data -> struct grid. Stage 1 of the Grand Plan To Make UTF-8 Better.Nicholas Marriott
2009-01-10Trim spaces.Nicholas Marriott
2009-01-05Some tweaks found by LLVM courtesy of IcePic.Nicholas Marriott
2008-12-11Don't segfault on last character.Nicholas Marriott
2008-09-28Calculate y properly.Nicholas Marriott
2008-09-26Trim.Nicholas Marriott
2008-09-25Internal screen data rewrite for better 256 colour/UTF-8 support.Nicholas Marriott