aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * render: re-enable drawing cursor on eraseDaniel Eklöf2019-07-01-5/+4
| |
| * grid: implement a memmove-sort-of functionDaniel Eklöf2019-07-01-0/+34
| | | | | | | | | | grid_memmove() moves cell data from one index to another, taking the grid offset into account.
| * csi: DECSTBM: move cursor to top left corner of scrolling regionDaniel Eklöf2019-07-01-0/+2
| |
| * wip: use a sliding window instead of memmove() to scrollDaniel Eklöf2019-07-01-108/+140
|/ | | | | Instead of memmoving a large amount of data on every scroll, use a sliding window. That is, each time we scroll, we offset origin.
* vt: only prep logging of CSI/ESC parameters when debug logging is enabledDaniel Eklöf2019-07-01-2/+2
|
* terminal: prepare for floating gridsDaniel Eklöf2019-06-29-61/+67
|
* terminal: move print_needs_wrap from grid to terminalDaniel Eklöf2019-06-29-5/+4
|
* terminal: move cursor from grid to terminalDaniel Eklöf2019-06-29-66/+61
|
* terminal: move fore/background colors from grid to terminalDaniel Eklöf2019-06-29-12/+11
|
* terminal: move col/row count, cell width/height and scroll region to terminalDaniel Eklöf2019-06-29-110/+111
|
* Rename grid_* functions to term_*Daniel Eklöf2019-06-29-374/+376
|
* render: don't try to render glyph for empty cell(s)Daniel Eklöf2019-06-29-0/+3
|
* main: increase ptmx slave buffer sizeDaniel Eklöf2019-06-29-1/+1
|
* render: alignmentDaniel Eklöf2019-06-29-2/+2
|
* render: also check scroll damage listDaniel Eklöf2019-06-29-1/+4
|
* slave: remove initial debug codeDaniel Eklöf2019-06-29-16/+0
|
* vt: dummy implementation of of "ESC (B" (character charset)Daniel Eklöf2019-06-29-0/+21
|
* log: don't syslogDaniel Eklöf2019-06-29-66/+3
|
* colors: store as doubles, rather than uint32_tDaniel Eklöf2019-06-26-55/+73
| | | | | Since cairo uses doubles, we don't want to have to convert a uin32_t to double values every time we render a cell.
* render: use alpha from cell colorsDaniel Eklöf2019-06-26-2/+4
|
* render: avoid divisionDaniel Eklöf2019-06-26-1/+2
|
* vt: execute: implement HT - horizontal tabDaniel Eklöf2019-06-26-1/+13
|
* grid: attributes now track whether we've set a foreground/background colorDaniel Eklöf2019-06-26-21/+25
| | | | | | | | | This means we don't have to explicitly set the foreground/background to the grid's default colors whenever we reset/clear a cell, and we can instead simply memset() the entire cell to 0. This also means the renderer has to get the default color when rendering a cell without a foreground/background color set.
* scroll: let the render erase the scrolled up regionDaniel Eklöf2019-06-26-39/+51
| | | | | | The grid scroll operation no longer inserts a DAMAGE_ERASE operation, but instead manually clears the region. The render does the corresponding thing.
* scroll-region: don't clear damage queue when changing scroll regionDaniel Eklöf2019-06-25-208/+168
| | | | | | | | | | | | | | | | | | | | | | Vim, for example, changes the scroll region every time you scroll a single line. Thus, resetting the damage queue is slow. This reworks the damage handling of scroll updates: * Split damage queue into two: one for scroll operations and one for update/erase operations. * Don't separate update/erase operations inside/outside the scroll region * Store the current scroll region in the scroll damage operation. This allows us to stack multiple scroll operations with different scroll regions. * When updating update/erase operations after a scroll operation, split the update/erase operations if necessary (the current scroll operation may have a scroll region different from before, thus forcing us to split existing update/erase operations. * The renderer no longer erases after a scroll. The scroll operation also adds an erase operation. This also means that erase operation are subject to adjustments by later scroll operations.
* grid: scroll reverse: hopefully done correct nowDaniel Eklöf2019-06-24-3/+3
|
* grid: scroll: fix start/end for erase regionDaniel Eklöf2019-06-24-3/+4
|
* csi: fix scrolling region endDaniel Eklöf2019-06-24-1/+1
|
* csi: add function param_get()Daniel Eklöf2019-06-24-58/+36
| | | | | | | | Returns the value of parameter #idx, if available, or the specified default value. If the specified parameter does exist, but is 0, the default value is returned.
* csi: implement cursor horizontal absoluteDaniel Eklöf2019-06-24-0/+13
|
* csi: implement VPR (vertical line position relative)Daniel Eklöf2019-06-24-0/+1
|
* csi: VPA: saturate rowDaniel Eklöf2019-06-24-0/+4
|
* csi: implement "send device attributes"Daniel Eklöf2019-06-24-0/+21
|
* csi: recognize a bunch of ?h/l commands, log unimplementedDaniel Eklöf2019-06-24-0/+32
|
* csi: implement VPA (vertical line position absolute)Daniel Eklöf2019-06-24-0/+9
|
* csi: saturate row/col when setting cursor positionDaniel Eklöf2019-06-24-1/+5
|
* TIOCSWINSZ: fix alignment and spellingDaniel Eklöf2019-06-24-4/+4
|
* csi: fix cursor request response; add 1, not 2Daniel Eklöf2019-06-24-2/+3
|
* scrolling region: wipDaniel Eklöf2019-06-23-60/+182
|
* csi: recognize, but do nothing, for civis, cvvisDaniel Eklöf2019-06-23-0/+16
|
* csi: implement cursor query and responesDaniel Eklöf2019-06-23-0/+29
|
* vt: wip: implement scrolling regionDaniel Eklöf2019-06-23-55/+68
| | | | | | | | | | This is largely untested, but existing scrolling code has been converted to using a terminal-global scrolling region that is defined as start-end of the scrollable region. This is compared to the old code where the scrolling region where defined in terms of marginals, counted in lines from top and from bottom.
* csi/vt: fix logging of intermediate charactersDaniel Eklöf2019-06-23-2/+2
|
* vt: implement reverse scrolling (terminfo 'ri')Daniel Eklöf2019-06-23-28/+132
| | | | | This currently duplicates the code paths for DAMAGE_SCROLL; there are many similarities between the two, but also major differences...
* resize: bug: we're not in alt screen mode at startupDaniel Eklöf2019-06-23-1/+2
| | | | | | When we start up, the cells pointer, *and* the alt screen pointer are both NULL. Hence we incorrectly decided we were initially in alt screen mode.
* csi: save and restore cursor when switching to and from alt screenDaniel Eklöf2019-06-23-2/+10
|
* vt: initial implementation of alt screen + 256 colorsDaniel Eklöf2019-06-23-41/+170
|
* vt: implement DECCKM (cursor key sends either SS3 or CSI escapes)Daniel Eklöf2019-06-23-34/+44
|
* csi: implement 'CSI H' (set cursor position)Daniel Eklöf2019-06-23-0/+9
|
* vt: dummy implementation of ESC dispatchDaniel Eklöf2019-06-23-1/+37
|
* csi: include intermediates in debug loggingDaniel Eklöf2019-06-23-0/+3
|
* vt: add all (?) missing states, actions and transitionsDaniel Eklöf2019-06-23-101/+517
|
* vt: add missing entry action for ESCAPEDaniel Eklöf2019-06-22-1/+1
|
* vt: add missing transition from state ESCAPE -> CSI DISPATCHDaniel Eklöf2019-06-22-0/+1
|
* csi: wip: recognize the private CSIs for bracketed paste, smcup/rmxup, smkx/rmkxDaniel Eklöf2019-06-22-4/+87
|
* csi: remove commented out debug loggingDaniel Eklöf2019-06-22-13/+2
|
* render: implement 'reverse' attributeDaniel Eklöf2019-06-22-14/+22
|
* render: implement 'conceal' attributeDaniel Eklöf2019-06-22-0/+3
|
* csi: sgr: treat CSI[m as CSI[0m (SGR reset)Daniel Eklöf2019-06-22-10/+21
|
* main: implement bold+italic fontsDaniel Eklöf2019-06-22-8/+32
|
* csi: implement CSI Pn P (DCH - delete character)Daniel Eklöf2019-06-22-24/+51
|
* input: reduce utf8 buffer sizeDaniel Eklöf2019-06-22-1/+3
|
* input: add a key mapping table, mapping key syms to escape sequencesDaniel Eklöf2019-06-22-12/+123
| | | | At the same time, also add support for the shift modifier.
* input: stop key repeater when input focus is lostDaniel Eklöf2019-06-21-3/+7
|
* csi: fix \e[B - it should move the cursor *down*, not up.Daniel Eklöf2019-06-21-1/+2
|
* csi: fix line clearing; the erase range 'end' is exclusiveDaniel Eklöf2019-06-21-2/+7
|
* render: re-render cursor after ERASE (if cursor is in the erase range)Daniel Eklöf2019-06-21-72/+83
|
* grid: implement DAMAGE_SCROLLDaniel Eklöf2019-06-21-15/+142
|
* render: break up grid_render()Daniel Eklöf2019-06-19-128/+134
|
* Use a 'damage' list to communicate what needs to be updatedDaniel Eklöf2019-06-19-82/+262
| | | | | | | | | | Instead of having each cell in the grid track it's own dirtiness, grid operations now append "damage" to a list. This list is consumed every time we render the grid. This allows us to special case some operations, like erase (and in the future, scroll).
* csi: dummy implementation of bright foreground/background colorsDaniel Eklöf2019-06-19-0/+24
| | | | Re-use the regular colors for now
* grid: erase: memset() the entire range in one callDaniel Eklöf2019-06-19-10/+10
|
* wip: initial scrolling support (no scrollback though)Daniel Eklöf2019-06-19-2/+39
|
* wip: initial input handlingDaniel Eklöf2019-06-19-49/+482
|
* csi: CSI log messages are now single lineDaniel Eklöf2019-06-18-5/+24
|
* vt: fix utf-8 bug: re-load 'current state' after processing a utf8 byteDaniel Eklöf2019-06-18-0/+5
|
* vt: disable the worst spamming loggingDaniel Eklöf2019-06-18-3/+4
|
* grid: track both linear and row,col cursorDaniel Eklöf2019-06-17-26/+94
|
* vt: handle cursor-at-right-edgeDaniel Eklöf2019-06-17-2/+11
| | | | | | When printing to the right-most-cell, don't advance the cursor. Instead, set a flag that indicates that the *next* print should line-wrap.
* wip: vt parsing: break out grid operating functionsDaniel Eklöf2019-06-17-36/+56
|
* wip: vt parsingDaniel Eklöf2019-06-17-14/+99
|
* TIOCSWINSZ: set ws_xpixel and ws_ypixelDaniel Eklöf2019-06-16-2/+5
|
* vt: cell now tracks attributes (bold, italic, underline etc)Daniel Eklöf2019-06-16-63/+67
|
* wip: vt parsing: initial csi/osc dispatchingDaniel Eklöf2019-06-15-103/+571
|
* Track cell foreground and background colorsDaniel Eklöf2019-06-13-30/+62
|
* Initial handling of multi byte charactersDaniel Eklöf2019-06-13-12/+24
| | | | Use mblen() to calculate the byte count for each character.
* Set XDG toplevel titleDaniel Eklöf2019-06-13-1/+1
|
* Render cursorDaniel Eklöf2019-06-13-20/+69
|
* Use frame callback to rate-limit surface updatesDaniel Eklöf2019-06-13-2/+39
|
* initial grid implementationDaniel Eklöf2019-06-13-7/+228
| | | | | This allows us to render *something*, even though it's inefficient, stupid and far far away from the real thing.
* Set up pseudo terminal and fork slaveDaniel Eklöf2019-06-13-7/+127
|
* main: handle window resizeDaniel Eklöf2019-06-12-14/+22
|
* shm: width/height must matchDaniel Eklöf2019-06-12-0/+3
|
* add licenseDaniel Eklöf2019-06-12-0/+21
|
* initial commit: maps an XDG toplevel windowDaniel Eklöf2019-06-12-0/+874