aboutsummaryrefslogtreecommitdiff
path: root/csi.c (follow)
Commit message (Collapse)AuthorAgeLines
* csi: implement \E[@ (ICH - insert characters)Daniel Eklöf2019-07-17-15/+24
|
* vt/csi: recognize the reset sequence sent by 'reset'Daniel Eklöf2019-07-17-0/+24
| | | | However, we don't (yet) actually reset the terminal
* csi: document a couple of unimplemented CSIsDaniel Eklöf2019-07-17-0/+3
|
* csi: move 'dim' attribute from 'vt' to cell attributesDaniel Eklöf2019-07-16-3/+2
|
* csi: add back 'blink' attributeDaniel Eklöf2019-07-16-2/+2
|
* terminal: foreground/background in cell attributes are now uint32_tDaniel Eklöf2019-07-16-40/+48
| | | | This reduces the cell size, and thus improves the cache behavour
* csi: implement \E[21m (disable bold)Daniel Eklöf2019-07-16-0/+1
|
* csi: implement FocusIn/Out eventsDaniel Eklöf2019-07-16-0/+8
|
* csi: recognize, but mostly ignore, cursor style configurationDaniel Eklöf2019-07-16-0/+32
|
* csi: add missing 'break'Daniel Eklöf2019-07-16-0/+1
|
* Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhereDaniel Eklöf2019-07-15-3/+3
|
* csi: remove debug loggingDaniel Eklöf2019-07-15-6/+0
|
* csi: erase alt screen before activating itDaniel Eklöf2019-07-15-2/+4
|
* csi: 'X': then 'end' parameter in term_erase() is *inclusive*Daniel Eklöf2019-07-15-1/+1
|
* csi: implement ':'-separated 24-bit color valuesDaniel Eklöf2019-07-15-6/+70
|
* csi: cancel selection when switching between 'normal' and 'alt' gridDaniel Eklöf2019-07-11-0/+3
|
* terminal: remove 'blink' attribute from cell structDaniel Eklöf2019-07-10-30/+31
| | | | | This makes the other attribute bits fit in a single uint8_t, which makes each cell smaller which improves cache usage.
* vt/csi: use vt_param_get()Daniel Eklöf2019-07-10-31/+21
|
* terminal: only support a single intermediate/private characterDaniel Eklöf2019-07-10-9/+15
|
* csi: fix logging; 'CSI' was printed twiceDaniel Eklöf2019-07-10-12/+12
|
* terminal: rename and redefine cursor keys mode and keypad keys modeDaniel Eklöf2019-07-09-2/+2
|
* rgba: drop alpha channel supportDaniel Eklöf2019-07-08-27/+23
|
* wip: grid is now represented as a grid, not a linear arrayDaniel Eklöf2019-07-08-24/+41
| | | | | | | | | | | | The grid is now represented with an array of row *pointers*. Each row contains an array of cells (the row's columns). The main point of having row pointers is we can now move rows around almost for free. This is useful when scrolling with scroll margins for example, where we previously had to copy the lines in the margins. Now it's just a matter of swapping two pointers.
* grid: grid_memset() -> grid_memclear()Daniel Eklöf2019-07-07-1/+1
|
* csi: scroll region is not allowed past available rowsDaniel Eklöf2019-07-07-1/+1
|
* performance improvementsDaniel Eklöf2019-07-07-25/+25
| | | | | | | | | * action() returns void - this gets rid of checks in vt_from_slave() * split up ACTION_PRINT into ACTION_PRINT (ASCII) and ACTION_UTF8_PRINT ACTION_PRINT is on the hot path, and we want it streamlined. * Remove run-time checkout for unimplemented state transitions, as we shouldn't have any of those left. * Don't re-load current VT state on each iteration in vt_from_slave()
* csi: implement reverse videoDaniel Eklöf2019-07-05-2/+4
|
* csi: implement URXVT style mouse event reportingDaniel Eklöf2019-07-05-2/+1
|
* csi: SGR mouse tracking *is* implementedDaniel Eklöf2019-07-05-1/+0
|
* vt: add support for mouse motion reportsDaniel Eklöf2019-07-05-7/+5
|
* vt: add support for \E[?1000h - report mouse button eventsDaniel Eklöf2019-07-05-20/+18
|
* osc: implement change window title and iconDaniel Eklöf2019-07-05-1/+1
|
* csi: manually erase alt screen when switching to itDaniel Eklöf2019-07-05-1/+3
|
* csi: implement CSI S and CSI T (scroll up/down)Daniel Eklöf2019-07-04-0/+8
|
* vt: improve logging of invalid and unimplemented sequencesDaniel Eklöf2019-07-04-26/+33
|
* csi: ignore 'blinking cursor' private modeDaniel Eklöf2019-07-04-2/+2
|
* csi: fix parsing of 256-color and 24-bit color SGRsDaniel Eklöf2019-07-04-4/+4
| | | | | | | | | There may be more SGR sequences after the 256-color/24-bit sequence. Thus, check that we have *enough* parameters to parse the 256-color/24-bit SGR. It doesn't have to be *exactly* the required number of parameters though. Fixes issues with sequences like: \e[38;2;1;48;2;1m
* csi: fix bug: cursor horizontal absolute (<ESC> Pn G) was off-by-oneDaniel Eklöf2019-07-03-6/+2
|
* csi: cleanupDaniel Eklöf2019-07-03-18/+3
|
* csi: ?r and ?s are like ?h and ?l; they save/restore thingsDaniel Eklöf2019-07-03-4/+29
| | | | | Assuming ncmpcpp is correct, ?1001s and ?1001r saves and restores the 'highlight mouse tracking' mode.
* vt: implement (untested!) smam and rmam (auto margins)Daniel Eklöf2019-07-03-2/+2
| | | | | Default is auto-margins enabled (scroll when cursor reaches right margin).
* vt: implement (untested!) insert modeDaniel Eklöf2019-07-03-7/+7
| | | | \E4l is not horizontal index, but disable INSERT mode
* logging: disable debug logging by defaultDaniel Eklöf2019-07-03-1/+1
|
* csi: add unknown private escapes 's' and 'r', seen with ncmpcppDaniel Eklöf2019-07-03-0/+7
|
* csi: recognize ?1005 and ?1015 private CSIsDaniel Eklöf2019-07-03-0/+16
|
* csi: fix cursor positioningDaniel Eklöf2019-07-03-1/+1
|
* csi: implement 'erase characters' (CSI X)Daniel Eklöf2019-07-03-0/+11
|
* csi: recognize 'smam', but log unimplementedDaniel Eklöf2019-07-03-0/+8
|
* csi: add untested implementation of "horizontal index"Daniel Eklöf2019-07-03-0/+11
|
* csi: scroll region changes are now logged as debug again, rather than infoDaniel Eklöf2019-07-03-3/+3
|
* csi: implement 'civis' (show/hide cursor)Daniel Eklöf2019-07-03-2/+2
|
* csi: up to application to restore scroll region on alt switch?Daniel Eklöf2019-07-03-5/+0
|
* csi: re-set cursor when switching between alt and normal screenDaniel Eklöf2019-07-02-0/+4
| | | | This forces a refresh of the "current line" pointer.
* 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
|