| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Merge branch 'fast-scroll' | Daniel Eklöf | 2019-07-03 | -250/+607 |
| |\ | ||||
| | * | 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 | -3/+4 |
| | | | | | | | | | | | Default is auto-margins enabled (scroll when cursor reaches right margin). | |||
| | * | vt: implement (untested!) insert mode | Daniel Eklöf | 2019-07-03 | -8/+19 |
| | | | | | | | | | \E4l is not horizontal index, but disable INSERT mode | |||
| | * | logging: disable debug logging by default | Daniel Eklöf | 2019-07-03 | -8/+8 |
| | | | ||||
| | * | 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 |
| | | | ||||
| | * | 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 |
| | | | ||||
| | * | main: mitigate screen flashes on slow client | Daniel Eklöf | 2019-07-03 | -8/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a client writes to the PTY "too slow", we often end up flashing the screen. This could for example be caused by a client first erasing a line, then we render that frame, followed by the client updating the just-erased line. When we render _that_ frame, it will be perceived as a flash. Mitigate this by trying to read client data again, after finishing processing one batch, but before rendering. To avoid hanging on client output (and never rendering anything), limit this to at most 3 iterations. This may have to be tweaked. | |||
| | * | 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 |
| | | | ||||
| | * | scrolling: initial implementation of scrolling region when reverse scrolling | Daniel Eklöf | 2019-07-03 | -2/+38 |
| | | | ||||
| | * | scrolling: make sure we don't clear too much memory | Daniel Eklöf | 2019-07-03 | -1/+3 |
| | | | ||||
| | * | scrolling: hopefully fix bad damage update of items outside scrolling region | Daniel Eklöf | 2019-07-03 | -4/+4 |
| | | | ||||
| | * | csi: implement 'civis' (show/hide cursor) | Daniel Eklöf | 2019-07-03 | -3/+5 |
| | | | ||||
| | * | scrolling: initial reverse scrolling support - no scroll regions | Daniel Eklöf | 2019-07-03 | -49/+45 |
| | | | ||||
| | * | render: fix last-cursor comparison | Daniel Eklöf | 2019-07-03 | -1/+1 |
| | | | ||||
| | * | main: add --font/-f command line option | Daniel Eklöf | 2019-07-03 | -3/+32 |
| | | | ||||
| | * | term: optimize damage list after scroll | Daniel Eklöf | 2019-07-03 | -0/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This optimizes the normal scrolling case; updates are done at the bottom of the screen and then scrolled up. In this case, the damage list will be a more or less sorted list of updates, oldest first. If we're scrolling a lot, the oldest updates will eventually scroll off screen. In this case, there's no need to keep them in the damage list. So, when scrolling, loop the damage list and adjust/remove updates that have scrolled off screen (either partially, or completely). Stop looping as soon as we see an update that has *not* scrolled off screen. Note that this means there may be update items in the damage list that *has* scrolled off screen. This is especially true for random screen writes (i.e. typical to some synthetic benchmarks). | |||
| | * | csi: up to application to restore scroll region on alt switch? | Daniel Eklöf | 2019-07-03 | -5/+0 |
| | | | ||||
| | * | main: make sure cursor is inside the new row/col limits on resize | Daniel Eklöf | 2019-07-02 | -0/+5 |
| | | | ||||
| | * | render: track last cursor position in absolute values | Daniel Eklöf | 2019-07-02 | -7/+6 |
| | | | | | | | | | | | This seems to fix an issue where we sometimes saw "ghost" cursors when scrolling. | |||
| | * | 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. | |||
| | * | term: "cache" pointer to current line | Daniel Eklöf | 2019-07-02 | -5/+14 |
| | | | | | | | | | | | | | | | | | 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 |
| | | | ||||
| | * | term: simplify horizontal cursor movement | Daniel Eklöf | 2019-07-02 | -2/+6 |
| | | | | | | | | | | | | | Since horizontal cursor movement is clamped to the current line, we can calculate the new linear cursor without any expensive multiplications and/or divisions. | |||
| | * | term: if the damage list gets too long, replace with a full redraw | Daniel Eklöf | 2019-07-02 | -0/+8 |
| | | | ||||
| | * | render: revert glyph caching | Daniel Eklöf | 2019-07-02 | -101/+72 |
| | | | | | | | | | | | Instead, try to group as long sequences of glyphs as possible, as fewer calls to cairo_show_glyphs() is *much* faster. | |||
| | * | render: fix cursor not always being rendered | Daniel Eklöf | 2019-07-02 | -8/+13 |
| | | | | | | | | | | | In case the only difference between this and the last frame was cursor movement, the cursor was not rendered. | |||
| | * | render: draw pre-rendered glyph OVER background | Daniel Eklöf | 2019-07-02 | -0/+1 |
| | | | | | | | | | | | This allows us to render the background dynamically. Note that pre-rendered glyphs still have wrong foreground color. | |||
| | * | render: cache glyph masks | Daniel Eklöf | 2019-07-02 | -38/+102 |
| | | | | | | | | | | | | | | | | | | | Cache rendered glyph masks for each font combo. When rendering text, use these when possible (standard ASCII). For now, use the cached glyph as a mask. This allows colors to just work. It would be faster to cache a completely pre-rendered image, but then we would need one image for each background/foreground combo. | |||
| | * | main: log resize event as INFO | Daniel Eklöf | 2019-07-01 | -2/+2 |
| | | | ||||
| | * | term: 'end' variable is only used in assert() | Daniel Eklöf | 2019-07-01 | -1/+1 |
| | | | ||||
| | * | vt: no need to clear temporary utf8 buffer after printing it | Daniel Eklöf | 2019-07-01 | -1/+0 |
| | | | ||||
| | * | render: always render cursor | Daniel Eklöf | 2019-07-01 | -19/+27 |
| | | | ||||
| | * | 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 |
| | | | ||||
| | * | scrolling: implement partial scrolling | Daniel Eklöf | 2019-07-01 | -23/+45 |
| | | | ||||
| | * | render: use actual grid size when re-allocating grid buffer | Daniel Eklöf | 2019-07-01 | -2/+2 |
| | | | ||||
| | * | render: re-enable drawing cursor on erase | Daniel Eklöf | 2019-07-01 | -5/+4 |
| | | | ||||
| | * | grid: implement a memmove-sort-of function | Daniel Eklöf | 2019-07-01 | -0/+34 |
| | | | | | | | | | | | grid_memmove() moves cell data from one index to another, taking the grid offset into account. | |||
| | * | 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 | -108/+140 |
| |/ | | | | | 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 | -2/+2 |
| | | ||||
| * | terminal: prepare for floating grids | Daniel Eklöf | 2019-06-29 | -61/+67 |
| | | ||||
| * | terminal: move print_needs_wrap from grid to terminal | Daniel Eklöf | 2019-06-29 | -5/+4 |
| | | ||||
| * | terminal: move cursor from grid to terminal | Daniel Eklöf | 2019-06-29 | -66/+61 |
| | | ||||
| * | terminal: move fore/background colors from grid to terminal | Daniel Eklöf | 2019-06-29 | -12/+11 |
| | | ||||
| * | terminal: move col/row count, cell width/height and scroll region to terminal | Daniel Eklöf | 2019-06-29 | -110/+111 |
| | | ||||
| * | Rename grid_* functions to term_* | Daniel Eklöf | 2019-06-29 | -374/+376 |
| | | ||||
| * | render: don't try to render glyph for empty cell(s) | Daniel Eklöf | 2019-06-29 | -0/+3 |
| | | ||||
| * | main: increase ptmx slave buffer size | Daniel Eklöf | 2019-06-29 | -1/+1 |
| | | ||||
| * | render: alignment | Daniel Eklöf | 2019-06-29 | -2/+2 |
| | | ||||
| * | render: also check scroll damage list | Daniel Eklöf | 2019-06-29 | -1/+4 |
| | | ||||
| * | slave: remove initial debug code | Daniel Eklöf | 2019-06-29 | -16/+0 |
| | | ||||
| * | vt: dummy implementation of of "ESC (B" (character charset) | Daniel Eklöf | 2019-06-29 | -0/+21 |
| | | ||||
| * | log: don't syslog | Daniel Eklöf | 2019-06-29 | -66/+3 |
| | | ||||
| * | colors: store as doubles, rather than uint32_t | Daniel Eklöf | 2019-06-26 | -55/+73 |
| | | | | | | Since cairo uses doubles, we don't want to have to convert a uin32_t to double values every time we render a cell. | |||
| * | render: use alpha from cell colors | Daniel Eklöf | 2019-06-26 | -2/+4 |
| | | ||||
| * | render: avoid division | Daniel Eklöf | 2019-06-26 | -1/+2 |
| | | ||||
| * | vt: execute: implement HT - horizontal tab | Daniel Eklöf | 2019-06-26 | -1/+13 |
| | | ||||
| * | grid: attributes now track whether we've set a foreground/background color | Daniel Eklöf | 2019-06-26 | -21/+25 |
| | | | | | | | | | | 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: let the render erase the scrolled up region | Daniel Eklöf | 2019-06-26 | -39/+51 |
| | | | | | | | The grid scroll operation no longer inserts a DAMAGE_ERASE operation, but instead manually clears the region. The render does the corresponding thing. | |||
| * | scroll-region: don't clear damage queue when changing scroll region | Daniel Eklöf | 2019-06-25 | -208/+168 |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | |||
| * | grid: scroll reverse: hopefully done correct now | Daniel Eklöf | 2019-06-24 | -3/+3 |
| | | ||||
| * | grid: scroll: fix start/end for erase region | Daniel Eklöf | 2019-06-24 | -3/+4 |
| | | ||||
| * | 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 |
| | | ||||
| * | TIOCSWINSZ: fix alignment and spelling | Daniel Eklöf | 2019-06-24 | -4/+4 |
| | | ||||
| * | 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 | -60/+182 |
| | | ||||
| * | 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 | -55/+68 |
| | | | | | | | | | | | 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 | -2/+2 |
| | | ||||
| * | vt: implement reverse scrolling (terminfo 'ri') | Daniel Eklöf | 2019-06-23 | -28/+132 |
| | | | | | | This currently duplicates the code paths for DAMAGE_SCROLL; there are many similarities between the two, but also major differences... | |||
| * | resize: bug: we're not in alt screen mode at startup | Daniel Eklöf | 2019-06-23 | -1/+2 |
| | | | | | | | When we start up, the cells pointer, *and* the alt screen pointer are both NULL. Hence we incorrectly decided we were initially in alt screen mode. | |||
| * | csi: save and restore cursor when switching to and from alt screen | Daniel Eklöf | 2019-06-23 | -2/+10 |
| | | ||||
| * | vt: initial implementation of alt screen + 256 colors | Daniel Eklöf | 2019-06-23 | -41/+170 |
| | | ||||
| * | vt: implement DECCKM (cursor key sends either SS3 or CSI escapes) | Daniel Eklöf | 2019-06-23 | -34/+44 |
| | | ||||
| * | csi: implement 'CSI H' (set cursor position) | Daniel Eklöf | 2019-06-23 | -0/+9 |
| | | ||||
| * | vt: dummy implementation of ESC dispatch | Daniel Eklöf | 2019-06-23 | -1/+37 |
| | | ||||
| * | csi: include intermediates in debug logging | Daniel Eklöf | 2019-06-23 | -0/+3 |
| | | ||||
| * | vt: add all (?) missing states, actions and transitions | Daniel Eklöf | 2019-06-23 | -101/+517 |
| | | ||||
| * | vt: add missing entry action for ESCAPE | Daniel Eklöf | 2019-06-22 | -1/+1 |
| | | ||||
