| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | csi: implement \E[@ (ICH - insert characters) | Daniel Eklöf | 2019-07-17 | -15/+24 |
| | | ||||
| * | vt/csi: recognize the reset sequence sent by 'reset' | Daniel Eklöf | 2019-07-17 | -0/+24 |
| | | | | | However, we don't (yet) actually reset the terminal | |||
| * | csi: document a couple of unimplemented CSIs | Daniel Eklöf | 2019-07-17 | -0/+3 |
| | | ||||
| * | csi: move 'dim' attribute from 'vt' to cell attributes | Daniel Eklöf | 2019-07-16 | -3/+2 |
| | | ||||
| * | csi: add back 'blink' attribute | Daniel Eklöf | 2019-07-16 | -2/+2 |
| | | ||||
| * | terminal: foreground/background in cell attributes are now uint32_t | Daniel Eklöf | 2019-07-16 | -40/+48 |
| | | | | | This reduces the cell size, and thus improves the cache behavour | |||
| * | csi: implement \E[21m (disable bold) | Daniel Eklöf | 2019-07-16 | -0/+1 |
| | | ||||
| * | csi: implement FocusIn/Out events | Daniel Eklöf | 2019-07-16 | -0/+8 |
| | | ||||
| * | csi: recognize, but mostly ignore, cursor style configuration | Daniel Eklöf | 2019-07-16 | -0/+32 |
| | | ||||
| * | csi: add missing 'break' | Daniel Eklöf | 2019-07-16 | -0/+1 |
| | | ||||
| * | Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere | Daniel Eklöf | 2019-07-15 | -3/+3 |
| | | ||||
| * | csi: remove debug logging | Daniel Eklöf | 2019-07-15 | -6/+0 |
| | | ||||
| * | csi: erase alt screen before activating it | Daniel Eklöf | 2019-07-15 | -2/+4 |
| | | ||||
| * | csi: 'X': then 'end' parameter in term_erase() is *inclusive* | Daniel Eklöf | 2019-07-15 | -1/+1 |
| | | ||||
| * | csi: implement ':'-separated 24-bit color values | Daniel Eklöf | 2019-07-15 | -6/+70 |
| | | ||||
| * | csi: cancel selection when switching between 'normal' and 'alt' grid | Daniel Eklöf | 2019-07-11 | -0/+3 |
| | | ||||
| * | terminal: remove 'blink' attribute from cell struct | Daniel Eklöf | 2019-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öf | 2019-07-10 | -31/+21 |
| | | ||||
| * | terminal: only support a single intermediate/private character | Daniel Eklöf | 2019-07-10 | -9/+15 |
| | | ||||
| * | csi: fix logging; 'CSI' was printed twice | Daniel Eklöf | 2019-07-10 | -12/+12 |
| | | ||||
| * | terminal: rename and redefine cursor keys mode and keypad keys mode | Daniel Eklöf | 2019-07-09 | -2/+2 |
| | | ||||
| * | rgba: drop alpha channel support | Daniel Eklöf | 2019-07-08 | -27/+23 |
| | | ||||
| * | wip: grid is now represented as a grid, not a linear array | Daniel Eklöf | 2019-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öf | 2019-07-07 | -1/+1 |
| | | ||||
| * | csi: scroll region is not allowed past available rows | Daniel Eklöf | 2019-07-07 | -1/+1 |
| | | ||||
| * | performance improvements | Daniel Eklöf | 2019-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 video | Daniel Eklöf | 2019-07-05 | -2/+4 |
| | | ||||
| * | csi: implement URXVT style mouse event reporting | Daniel Eklöf | 2019-07-05 | -2/+1 |
| | | ||||
| * | csi: SGR mouse tracking *is* implemented | Daniel Eklöf | 2019-07-05 | -1/+0 |
| | | ||||
| * | vt: add support for mouse motion reports | Daniel Eklöf | 2019-07-05 | -7/+5 |
| | | ||||
| * | vt: add support for \E[?1000h - report mouse button events | Daniel Eklöf | 2019-07-05 | -20/+18 |
| | | ||||
| * | osc: implement change window title and icon | Daniel Eklöf | 2019-07-05 | -1/+1 |
| | | ||||
| * | csi: manually erase alt screen when switching to it | Daniel Eklöf | 2019-07-05 | -1/+3 |
| | | ||||
| * | csi: implement CSI S and CSI T (scroll up/down) | Daniel Eklöf | 2019-07-04 | -0/+8 |
| | | ||||
| * | vt: improve logging of invalid and unimplemented sequences | Daniel Eklöf | 2019-07-04 | -26/+33 |
| | | ||||
| * | csi: ignore 'blinking cursor' private mode | Daniel Eklöf | 2019-07-04 | -2/+2 |
| | | ||||
| * | csi: fix parsing of 256-color and 24-bit color SGRs | Daniel Eklöf | 2019-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-one | Daniel Eklöf | 2019-07-03 | -6/+2 |
| | | ||||
| * | csi: cleanup | Daniel Eklöf | 2019-07-03 | -18/+3 |
| | | ||||
| * | csi: ?r and ?s are like ?h and ?l; they save/restore things | Daniel Eklöf | 2019-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öf | 2019-07-03 | -2/+2 |
| | | | | | | Default is auto-margins enabled (scroll when cursor reaches right margin). | |||
| * | vt: implement (untested!) insert mode | Daniel Eklöf | 2019-07-03 | -7/+7 |
| | | | | | \E4l is not horizontal index, but disable INSERT mode | |||
| * | logging: disable debug logging by default | Daniel Eklöf | 2019-07-03 | -1/+1 |
| | | ||||
| * | csi: add unknown private escapes 's' and 'r', seen with ncmpcpp | Daniel Eklöf | 2019-07-03 | -0/+7 |
| | | ||||
| * | csi: recognize ?1005 and ?1015 private CSIs | Daniel Eklöf | 2019-07-03 | -0/+16 |
| | | ||||
| * | csi: fix cursor positioning | Daniel Eklöf | 2019-07-03 | -1/+1 |
| | | ||||
| * | csi: implement 'erase characters' (CSI X) | Daniel Eklöf | 2019-07-03 | -0/+11 |
| | | ||||
| * | csi: recognize 'smam', but log unimplemented | Daniel Eklöf | 2019-07-03 | -0/+8 |
| | | ||||
| * | csi: add untested implementation of "horizontal index" | Daniel Eklöf | 2019-07-03 | -0/+11 |
| | | ||||
| * | csi: scroll region changes are now logged as debug again, rather than info | Daniel Eklöf | 2019-07-03 | -3/+3 |
| | | ||||
| * | csi: implement 'civis' (show/hide cursor) | Daniel Eklöf | 2019-07-03 | -2/+2 |
| | | ||||
| * | csi: up to application to restore scroll region on alt switch? | Daniel Eklöf | 2019-07-03 | -5/+0 |
| | | ||||
| * | csi: re-set cursor when switching between alt and normal screen | Daniel Eklöf | 2019-07-02 | -0/+4 |
| | | | | | This forces a refresh of the "current line" pointer. | |||
| * | csi: repair DCH (delete character) | Daniel Eklöf | 2019-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 <--> normal | Daniel Eklöf | 2019-07-01 | -0/+6 |
| | | ||||
| * | csi: erase alt screen when enabling it | Daniel Eklöf | 2019-07-01 | -1/+1 |
| | | ||||
| * | csi: DECSTBM: move cursor to top left corner of scrolling region | Daniel Eklöf | 2019-07-01 | -0/+2 |
| | | ||||
| * | wip: use a sliding window instead of memmove() to scroll | Daniel Eklöf | 2019-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 enabled | Daniel Eklöf | 2019-07-01 | -1/+1 |
| | | ||||
| * | terminal: prepare for floating grids | Daniel Eklöf | 2019-06-29 | -7/+7 |
| | | ||||
| * | terminal: move cursor from grid to terminal | Daniel Eklöf | 2019-06-29 | -31/+25 |
| | | ||||
| * | terminal: move fore/background colors from grid to terminal | Daniel Eklöf | 2019-06-29 | -4/+4 |
| | | ||||
| * | terminal: move col/row count, cell width/height and scroll region to terminal | Daniel Eklöf | 2019-06-29 | -28/+28 |
| | | ||||
| * | Rename grid_* functions to term_* | Daniel Eklöf | 2019-06-29 | -29/+25 |
| | | ||||
| * | colors: store as doubles, rather than uint32_t | Daniel Eklöf | 2019-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 color | Daniel Eklöf | 2019-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 region | Daniel Eklöf | 2019-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 end | Daniel Eklöf | 2019-06-24 | -1/+1 |
| | | ||||
| * | csi: add function param_get() | Daniel Eklöf | 2019-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 absolute | Daniel Eklöf | 2019-06-24 | -0/+13 |
| | | ||||
| * | csi: implement VPR (vertical line position relative) | Daniel Eklöf | 2019-06-24 | -0/+1 |
| | | ||||
| * | csi: VPA: saturate row | Daniel Eklöf | 2019-06-24 | -0/+4 |
| | | ||||
| * | csi: implement "send device attributes" | Daniel Eklöf | 2019-06-24 | -0/+21 |
| | | ||||
| * | csi: recognize a bunch of ?h/l commands, log unimplemented | Daniel Eklöf | 2019-06-24 | -0/+32 |
| | | ||||
| * | csi: implement VPA (vertical line position absolute) | Daniel Eklöf | 2019-06-24 | -0/+9 |
| | | ||||
| * | csi: saturate row/col when setting cursor position | Daniel Eklöf | 2019-06-24 | -1/+5 |
| | | ||||
| * | csi: fix cursor request response; add 1, not 2 | Daniel Eklöf | 2019-06-24 | -2/+3 |
| | | ||||
| * | scrolling region: wip | Daniel Eklöf | 2019-06-23 | -4/+66 |
| | | ||||
| * | csi: recognize, but do nothing, for civis, cvvis | Daniel Eklöf | 2019-06-23 | -0/+16 |
| | | ||||
| * | csi: implement cursor query and respones | Daniel Eklöf | 2019-06-23 | -0/+29 |
| | | ||||
| * | vt: wip: implement scrolling region | Daniel Eklöf | 2019-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 characters | Daniel Eklöf | 2019-06-23 | -1/+1 |
| | | ||||
| * | csi: save and restore cursor when switching to and from alt screen | Daniel Eklöf | 2019-06-23 | -2/+6 |
| | | ||||
| * | vt: initial implementation of alt screen + 256 colors | Daniel Eklöf | 2019-06-23 | -37/+149 |
| | | ||||
| * | vt: implement DECCKM (cursor key sends either SS3 or CSI escapes) | Daniel Eklöf | 2019-06-23 | -2/+2 |
| | | ||||
| * | csi: implement 'CSI H' (set cursor position) | Daniel Eklöf | 2019-06-23 | -0/+9 |
| | | ||||
| * | csi: include intermediates in debug logging | Daniel Eklöf | 2019-06-23 | -0/+3 |
| | | ||||
| * | csi: wip: recognize the private CSIs for bracketed paste, smcup/rmxup, smkx/rmkx | Daniel Eklöf | 2019-06-22 | -4/+86 |
| | | ||||
| * | csi: remove commented out debug logging | Daniel Eklöf | 2019-06-22 | -13/+2 |
| | | ||||
| * | csi: sgr: treat CSI[m as CSI[0m (SGR reset) | Daniel Eklöf | 2019-06-22 | -10/+21 |
| | | ||||
| * | csi: implement CSI Pn P (DCH - delete character) | Daniel Eklöf | 2019-06-22 | -24/+51 |
| | | ||||
| * | csi: fix \e[B - it should move the cursor *down*, not up. | Daniel Eklöf | 2019-06-21 | -1/+2 |
| | | ||||
| * | csi: fix line clearing; the erase range 'end' is exclusive | Daniel Eklöf | 2019-06-21 | -2/+7 |
| | | ||||
| * | csi: dummy implementation of bright foreground/background colors | Daniel Eklöf | 2019-06-19 | -0/+24 |
| | | | | | Re-use the regular colors for now | |||
| * | wip: initial input handling | Daniel Eklöf | 2019-06-19 | -14/+87 |
| | | ||||
| * | csi: CSI log messages are now single line | Daniel Eklöf | 2019-06-18 | -5/+24 |
| | | ||||
| * | grid: track both linear and row,col cursor | Daniel Eklöf | 2019-06-17 | -7/+7 |
| | | ||||
| * | wip: vt parsing: break out grid operating functions | Daniel Eklöf | 2019-06-17 | -27/+7 |
| | | ||||
| * | wip: vt parsing | Daniel Eklöf | 2019-06-17 | -3/+77 |
| | | ||||
| * | vt: cell now tracks attributes (bold, italic, underline etc) | Daniel Eklöf | 2019-06-16 | -42/+42 |
| | | ||||
