| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| * | vt: \EB and \E0 have an optional "private", not param (which are CSI only) | Daniel Eklöf | 2019-07-15 | -2/+4 | |
| | | |||||
| * | vt: handle ':'-separated sub parameters correctly | Daniel Eklöf | 2019-07-15 | -16/+12 | |
| | | |||||
| * | vt: implement SI/SO (shift in, shift out) | Daniel Eklöf | 2019-07-15 | -0/+10 | |
| | | | | | This enables switching between the G0 and G1 charsets. | ||||
| * | cell: we only need 4 bytes for the longest utf8 sequence | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | | | | | | We don't *have* to NULL-terminate the utf8 string. So don't. This makes the cell glyph 4 bytes exactly, which is better for alignment and cache usage. | ||||
| * | vt: implement \ED and \EE | Daniel Eklöf | 2019-07-10 | -0/+9 | |
| | | | | | | | | '\ED' is just like '\n'; move the cursor down to the next row, or if it's at the bottom, scroll up one row. '\EE' is just like '\n\r' | ||||
| * | vt: \EM now calls term_reverse_index() instead of always scrolling one line | Daniel Eklöf | 2019-07-10 | -5/+4 | |
| | | |||||
| * | vt: '\n' now calls term_linefeed() | Daniel Eklöf | 2019-07-10 | -4/+1 | |
| | | |||||
| * | vt: escape '\E' properly when logging an ESC sequence | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | |||||
| * | vt/csi: use vt_param_get() | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | |||||
| * | terminal: only support a single intermediate/private character | Daniel Eklöf | 2019-07-10 | -8/+8 | |
| | | |||||
| * | input: implement keypad application mode | Daniel Eklöf | 2019-07-09 | -4/+2 | |
| | | | | | | This commit also replaces the previous (temporary) key map with a much more complete one. | ||||
| * | vt: handle ESC correctly in OSC string state | Daniel Eklöf | 2019-07-09 | -0/+5 | |
| | | |||||
| * | vt: handle UTF-8 sequences in OSC PUT | Daniel Eklöf | 2019-07-09 | -2/+9 | |
| | | | | | | | | | This is strictly speaking not correct, since we're not treating a lot of characters that should switch state as part of the OSC string. The correct way would be to have a specific OSC UTF8 state that parses UTF8 strings. | ||||
| * | wip: grid is now represented as a grid, not a linear array | Daniel Eklöf | 2019-07-08 | -4/+23 | |
| | | | | | | | | | | | | | 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. | ||||
| * | performance improvements | Daniel Eklöf | 2019-07-07 | -98/+131 | |
| | | | | | | | | | | * 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() | ||||
| * | vt: add branch hinting to PRINT action | Daniel Eklöf | 2019-07-06 | -3/+3 | |
| | | |||||
| * | osc: implement change window title and icon | Daniel Eklöf | 2019-07-05 | -1/+4 | |
| | | |||||
| * | vt: improve logging of invalid and unimplemented sequences | Daniel Eklöf | 2019-07-04 | -12/+17 | |
| | | |||||
| * | vt: implement save/restore cursor+attributes | Daniel Eklöf | 2019-07-04 | -0/+10 | |
| | | |||||
| * | vt: handle graphical charset mode when printing a character | Daniel Eklöf | 2019-07-04 | -3/+20 | |
| | | |||||
| * | vt: track charsets G0-G3 and support either ASCII or graphical mode | Daniel Eklöf | 2019-07-04 | -15/+8 | |
| | | |||||
| * | vt: bug fix: clear utf-8 state after printing a utf-8 character | Daniel Eklöf | 2019-07-04 | -0/+1 | |
| | | |||||
| * | vt: implement (untested!) smam and rmam (auto margins) | Daniel Eklöf | 2019-07-03 | -1/+1 | |
| | | | | | | Default is auto-margins enabled (scroll when cursor reaches right margin). | ||||
| * | vt: implement (untested!) insert mode | Daniel Eklöf | 2019-07-03 | -0/+9 | |
| | | | | | \E4l is not horizontal index, but disable INSERT mode | ||||
| * | logging: disable debug logging by default | Daniel Eklöf | 2019-07-03 | -1/+1 | |
| | | |||||
| * | vt: recognize ESC(0 - switch character set | Daniel Eklöf | 2019-07-03 | -0/+19 | |
| | | |||||
| * | vt: always log unimplemented as warnings, not errors | Daniel Eklöf | 2019-07-03 | -2/+3 | |
| | | |||||
| * | vt: fix logging of ESC intermediates and parameters | Daniel Eklöf | 2019-07-03 | -1/+1 | |
| | | |||||
| * | term: "cache" pointer to current line | Daniel Eklöf | 2019-07-02 | -5/+1 | |
| | | | | | | | | | This adds a pointer to the first cell on the current line. This pointer must be updated every time the row changes. The advantage is mainly that PRINT doesn't have to call grid_get_range(), which is fairly expensive. | ||||
| * | vt: simplify CLEAR action; don't memset() more than necessary | Daniel Eklöf | 2019-07-02 | -3/+3 | |
| | | |||||
| * | vt: no need to clear temporary utf8 buffer after printing it | Daniel Eklöf | 2019-07-01 | -1/+0 | |
| | | |||||
| * | wip: use a sliding window instead of memmove() to scroll | Daniel Eklöf | 2019-07-01 | -1/+5 | |
| | | | | | | 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 | -1/+1 | |
| | | |||||
| * | terminal: move print_needs_wrap from grid to terminal | Daniel Eklöf | 2019-06-29 | -2/+2 | |
| | | |||||
| * | terminal: move cursor from grid to terminal | Daniel Eklöf | 2019-06-29 | -10/+10 | |
| | | |||||
| * | terminal: move col/row count, cell width/height and scroll region to terminal | Daniel Eklöf | 2019-06-29 | -3/+3 | |
| | | |||||
| * | Rename grid_* functions to term_* | Daniel Eklöf | 2019-06-29 | -11/+11 | |
| | | |||||
| * | vt: dummy implementation of of "ESC (B" (character charset) | Daniel Eklöf | 2019-06-29 | -0/+21 | |
| | | |||||
| * | vt: execute: implement HT - horizontal tab | Daniel Eklöf | 2019-06-26 | -1/+13 | |
| | | |||||
| * | scroll-region: don't clear damage queue when changing scroll region | Daniel Eklöf | 2019-06-25 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | scrolling region: wip | Daniel Eklöf | 2019-06-23 | -3/+2 | |
| | | |||||
| * | vt: wip: implement scrolling region | Daniel Eklöf | 2019-06-23 | -2/+2 | |
| | | | | | | | | | | | 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 | |
| | | |||||
| * | vt: implement reverse scrolling (terminfo 'ri') | Daniel Eklöf | 2019-06-23 | -0/+5 | |
| | | | | | | This currently duplicates the code paths for DAMAGE_SCROLL; there are many similarities between the two, but also major differences... | ||||
| * | vt: dummy implementation of ESC dispatch | Daniel Eklöf | 2019-06-23 | -1/+37 | |
| | | |||||
| * | vt: add all (?) missing states, actions and transitions | Daniel Eklöf | 2019-06-23 | -100/+516 | |
| | | |||||
| * | vt: add missing entry action for ESCAPE | Daniel Eklöf | 2019-06-22 | -1/+1 | |
| | | |||||
| * | vt: add missing transition from state ESCAPE -> CSI DISPATCH | Daniel Eklöf | 2019-06-22 | -0/+1 | |
| | | |||||
| * | grid: implement DAMAGE_SCROLL | Daniel Eklöf | 2019-06-21 | -2/+3 | |
| | | |||||
| * | Use a 'damage' list to communicate what needs to be updated | Daniel Eklöf | 2019-06-19 | -4/+2 | |
| | | | | | | | | | | | 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). | ||||
| * | grid: erase: memset() the entire range in one call | Daniel Eklöf | 2019-06-19 | -7/+5 | |
| | | |||||
| * | wip: initial scrolling support (no scrollback though) | Daniel Eklöf | 2019-06-19 | -2/+12 | |
| | | |||||
| * | wip: initial input handling | Daniel Eklöf | 2019-06-19 | -1/+13 | |
| | | |||||
| * | vt: fix utf-8 bug: re-load 'current state' after processing a utf8 byte | Daniel Eklöf | 2019-06-18 | -0/+5 | |
| | | |||||
| * | vt: disable the worst spamming logging | Daniel Eklöf | 2019-06-18 | -3/+4 | |
| | | |||||
| * | grid: track both linear and row,col cursor | Daniel Eklöf | 2019-06-17 | -8/+6 | |
| | | |||||
| * | vt: handle cursor-at-right-edge | Daniel Eklöf | 2019-06-17 | -2/+9 | |
| | | | | | | | 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 functions | Daniel Eklöf | 2019-06-17 | -9/+6 | |
| | | |||||
| * | wip: vt parsing | Daniel Eklöf | 2019-06-17 | -2/+13 | |
| | | |||||
| * | vt: cell now tracks attributes (bold, italic, underline etc) | Daniel Eklöf | 2019-06-16 | -2/+1 | |
| | | |||||
| * | wip: vt parsing: initial csi/osc dispatching | Daniel Eklöf | 2019-06-15 | -0/+314 | |
