| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | vt: don't log ignored execute commands | Daniel Eklöf | 2019-09-28 | -1/+0 |
| | | | | | cat:ing a binary file would otherwise result in us spamming syslog. | |||
| * | vt: implement 'insert mode' | Daniel Eklöf | 2019-08-30 | -18/+27 |
| | | ||||
| * | vt: remove unneeded include | Daniel Eklöf | 2019-08-30 | -1/+0 |
| | | ||||
| * | vt: tidy lazy initialization of escape parameters | Daniel Eklöf | 2019-08-27 | -6/+6 |
| | | ||||
| * | vt: no need to reset OSC string in CLEAR action | Daniel Eklöf | 2019-08-27 | -1/+0 |
| | | | | | ... as this is done when a new OSC string is started | |||
| * | vt: store alt charset characters as wchars | Daniel Eklöf | 2019-08-27 | -9/+6 |
| | | ||||
| * | vt: bug: fix lazy initialization of sub parameter value (off-by-one) | Daniel Eklöf | 2019-08-24 | -2/+1 |
| | | ||||
| * | vt: clear CSI parameters lazily | Daniel Eklöf | 2019-08-24 | -3/+11 |
| | | | | | | | | | | The CLEAR action is so common, that explicitly clearing the entire params array, which is kind of big, is too slow. Clear it lazily instead. Meaning, we only set 'idx' (count) to 0 in CLEAR. Then whenever we parse a parameter, clear the value and sub parameters. | |||
| * | vt: remove support for urxvt 'extended' line drawing character set | Daniel Eklöf | 2019-08-16 | -12/+7 |
| | | ||||
| * | vt: there is no default charset for \e0 and \eB | Daniel Eklöf | 2019-08-16 | -2/+4 |
| | | ||||
| * | cell: pack more efficiently and store glyph as a wchar | Daniel Eklöf | 2019-08-02 | -26/+23 |
| | | | | | | | | | | | | The 'attributes' struct is now 8 bytes and naturally packed (used to be 9 bytes, artificially packed). 'cell' struct is now 12 bytes, naturally packed (used to be 13 bytes, artificially packed). Furthermore, the glyph is stored as a wchar instead of a char*. This makes it easier (faster) to do glyph lookup when rendering. | |||
| * | term: implement reset | Daniel Eklöf | 2019-08-01 | -1/+1 |
| | | ||||
| * | font: initial support for double-width *and* color emoji glyphs | Daniel Eklöf | 2019-07-31 | -8/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fonts are now loaded with FT_LOAD_COLOR and we recognize and support the FT_PIXEL_MODE_BGRA pixel mode. This is mapped to a CAIRO_FORMAT_ARGB32 surface, that is blitted as-is (instead of used as a mask like we do for gray and mono glyphs). Furthermore, since many emojis are double-width, we add initial support for double-width glyphs. These are assumed to always be utf8. When PRINT:ing an utf8 character, we check its width, and add empty "spacer" cells after the cell with the multi-column glyph. When rendering, we render the columns in each row backwards. This ensures the spacer cells get cleared *before* we render the glyph (so that we don't end up erasing part of the glyph). Finally, emoji fonts are usually bitmap fonts with *large* glyphs. These aren't automatically scaled down. I.e. even if we request a glyph of 13 pixels, we might end up getting a 100px glyph. To handle this, fontconfig must be configured to scale bitmap fonts. When it is, we can look at the 'scalable' and 'pixelsizefixup' properties, and use these to scale the rendered glyph. | |||
| * | vt: disable flash on bell, it's too annoying in e.g. zsh | Daniel Eklöf | 2019-07-30 | -1/+1 |
| | | ||||
| * | vt: BELL is now logged at info level, and flashes the screen | Daniel Eklöf | 2019-07-30 | -1/+2 |
| | | ||||
| * | vt: remove almost all abort() calls | Daniel Eklöf | 2019-07-30 | -9/+6 |
| | | | | | | | Replace with generic error log messages that simply says the ESC/CSI/OSC sequence is unhandled. This can mean either invalid or unimplemented, depending on the context. | |||
| * | vt: remove duplicate initialization warnings (clang) | Daniel Eklöf | 2019-07-30 | -3/+0 |
| | | ||||
| * | render: add a 'clean' bit to each cell; only render cells that aren't clean | Daniel Eklöf | 2019-07-30 | -8/+2 |
| | | | | | | | | | | | | This patch takes a bit from the foreground color value in a cell (todo: split up foreground/background into bitfields with a separate field for 'foreground/background' has been set), and only re-renders cells that aren't marked as clean. Note: we use a 'clean' bit rather than a 'dirty' bit to make it easy to erase cells - we can (keep doing) do that by simply memsetting a cell range to 0. | |||
| * | term: make sure to update 'current row' when restoring saved cursor | Daniel Eklöf | 2019-07-23 | -1/+1 |
| | | ||||
| * | dcs: we have no parent terminal to pass through to | Daniel Eklöf | 2019-07-21 | -13/+1 |
| | | ||||
| * | vt: define state_names[] table when debug logging has been enabled | Daniel Eklöf | 2019-07-19 | -1/+1 |
| | | ||||
| * | vt: handle up to two private characters | Daniel Eklöf | 2019-07-19 | -8/+15 |
| | | ||||
| * | dcs: sort of implement DCS passthrough | Daniel Eklöf | 2019-07-19 | -4/+16 |
| | | | | | | | | We now store the passthrough characters in a buffer, and call dcs_passthrough() on unhook. However, dcs_passthrough() doesn't do anything. | |||
| * | osc: allocate data buffer dynamically | Daniel Eklöf | 2019-07-19 | -3/+6 |
| | | ||||
| * | vt: implement SS2/SS3 and ST | Daniel Eklöf | 2019-07-18 | -3/+17 |
| | | ||||
| * | vt: execute: ignore unrecognized C0 commands | Daniel Eklöf | 2019-07-18 | -2/+1 |
| | | ||||
| * | vt: execute: handle \0 (NUL), by ignoring it | Daniel Eklöf | 2019-07-18 | -0/+3 |
| | | ||||
| * | vt/csi: recognize the reset sequence sent by 'reset' | Daniel Eklöf | 2019-07-17 | -0/+4 |
| | | | | | However, we don't (yet) actually reset the terminal | |||
| * | vt: add vt_to_slave() | Daniel Eklöf | 2019-07-15 | -0/+21 |
| | | ||||
| * | vt: there are NULL entries in the alternate charset | Daniel Eklöf | 2019-07-15 | -1/+3 |
| | | ||||
| * | 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 |
