aboutsummaryrefslogtreecommitdiff
path: root/csi.c (follow)
Commit message (Collapse)AuthorAgeLines
...
* csi: repair DCH (delete character)Daniel Eklöf2019-07-02-14/+14
| | | | | The logic was simply broken. This fixes it, and also converts it to use the new "current line" pointer.
* csi: clear all existing alt damage when switch alt <--> normalDaniel Eklöf2019-07-01-0/+6
|
* csi: erase alt screen when enabling itDaniel Eklöf2019-07-01-1/+1
|
* 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-1/+1
| | | | | 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-1/+1
|
* terminal: prepare for floating gridsDaniel Eklöf2019-06-29-7/+7
|
* terminal: move cursor from grid to terminalDaniel Eklöf2019-06-29-31/+25
|
* terminal: move fore/background colors from grid to terminalDaniel Eklöf2019-06-29-4/+4
|
* terminal: move col/row count, cell width/height and scroll region to terminalDaniel Eklöf2019-06-29-28/+28
|
* Rename grid_* functions to term_*Daniel Eklöf2019-06-29-29/+25
|
* colors: store as doubles, rather than uint32_tDaniel Eklöf2019-06-26-29/+54
| | | | | Since cairo uses doubles, we don't want to have to convert a uin32_t to double values every time we render a cell.
* grid: attributes now track whether we've set a foreground/background colorDaniel Eklöf2019-06-26-9/+17
| | | | | | | | | 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-region: don't clear damage queue when changing scroll regionDaniel Eklöf2019-06-25-28/+21
| | | | | | | | | | | | | | | | | | | | | | 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.
* 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
|
* csi: fix cursor request response; add 1, not 2Daniel Eklöf2019-06-24-2/+3
|
* scrolling region: wipDaniel Eklöf2019-06-23-4/+66
|
* 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-0/+15
| | | | | | | | | | 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-1/+1
|
* csi: save and restore cursor when switching to and from alt screenDaniel Eklöf2019-06-23-2/+6
|
* vt: initial implementation of alt screen + 256 colorsDaniel Eklöf2019-06-23-37/+149
|
* vt: implement DECCKM (cursor key sends either SS3 or CSI escapes)Daniel Eklöf2019-06-23-2/+2
|
* csi: implement 'CSI H' (set cursor position)Daniel Eklöf2019-06-23-0/+9
|
* csi: include intermediates in debug loggingDaniel Eklöf2019-06-23-0/+3
|
* csi: wip: recognize the private CSIs for bracketed paste, smcup/rmxup, smkx/rmkxDaniel Eklöf2019-06-22-4/+86
|
* csi: remove commented out debug loggingDaniel Eklöf2019-06-22-13/+2
|
* csi: sgr: treat CSI[m as CSI[0m (SGR reset)Daniel Eklöf2019-06-22-10/+21
|
* csi: implement CSI Pn P (DCH - delete character)Daniel Eklöf2019-06-22-24/+51
|
* 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
|
* csi: dummy implementation of bright foreground/background colorsDaniel Eklöf2019-06-19-0/+24
| | | | Re-use the regular colors for now
* wip: initial input handlingDaniel Eklöf2019-06-19-14/+87
|
* csi: CSI log messages are now single lineDaniel Eklöf2019-06-18-5/+24
|
* grid: track both linear and row,col cursorDaniel Eklöf2019-06-17-7/+7
|
* wip: vt parsing: break out grid operating functionsDaniel Eklöf2019-06-17-27/+7
|
* wip: vt parsingDaniel Eklöf2019-06-17-3/+77
|
* vt: cell now tracks attributes (bold, italic, underline etc)Daniel Eklöf2019-06-16-42/+42
|
* wip: vt parsing: initial csi/osc dispatchingDaniel Eklöf2019-06-15-0/+87