| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | 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 | |
| | | |||||
| * | vt: add missing transition from state ESCAPE -> CSI DISPATCH | Daniel Eklöf | 2019-06-22 | -0/+1 | |
| | | |||||
| * | csi: wip: recognize the private CSIs for bracketed paste, smcup/rmxup, smkx/rmkx | Daniel Eklöf | 2019-06-22 | -4/+87 | |
| | | |||||
| * | csi: remove commented out debug logging | Daniel Eklöf | 2019-06-22 | -13/+2 | |
| | | |||||
| * | render: implement 'reverse' attribute | Daniel Eklöf | 2019-06-22 | -14/+22 | |
| | | |||||
| * | render: implement 'conceal' attribute | Daniel Eklöf | 2019-06-22 | -0/+3 | |
| | | |||||
| * | csi: sgr: treat CSI[m as CSI[0m (SGR reset) | Daniel Eklöf | 2019-06-22 | -10/+21 | |
| | | |||||
| * | main: implement bold+italic fonts | Daniel Eklöf | 2019-06-22 | -8/+32 | |
| | | |||||
| * | csi: implement CSI Pn P (DCH - delete character) | Daniel Eklöf | 2019-06-22 | -24/+51 | |
| | | |||||
| * | input: reduce utf8 buffer size | Daniel Eklöf | 2019-06-22 | -1/+3 | |
| | | |||||
| * | input: add a key mapping table, mapping key syms to escape sequences | Daniel Eklöf | 2019-06-22 | -12/+123 | |
| | | | | | At the same time, also add support for the shift modifier. | ||||
| * | input: stop key repeater when input focus is lost | Daniel Eklöf | 2019-06-21 | -3/+7 | |
| | | |||||
| * | 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 | |
| | | |||||
| * | render: re-render cursor after ERASE (if cursor is in the erase range) | Daniel Eklöf | 2019-06-21 | -72/+83 | |
| | | |||||
| * | grid: implement DAMAGE_SCROLL | Daniel Eklöf | 2019-06-21 | -15/+142 | |
| | | |||||
| * | render: break up grid_render() | Daniel Eklöf | 2019-06-19 | -128/+134 | |
| | | |||||
| * | Use a 'damage' list to communicate what needs to be updated | Daniel Eklöf | 2019-06-19 | -82/+262 | |
| | | | | | | | | | | | 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). | ||||
| * | csi: dummy implementation of bright foreground/background colors | Daniel Eklöf | 2019-06-19 | -0/+24 | |
| | | | | | Re-use the regular colors for now | ||||
| * | grid: erase: memset() the entire range in one call | Daniel Eklöf | 2019-06-19 | -10/+10 | |
| | | |||||
| * | wip: initial scrolling support (no scrollback though) | Daniel Eklöf | 2019-06-19 | -2/+39 | |
| | | |||||
| * | wip: initial input handling | Daniel Eklöf | 2019-06-19 | -49/+482 | |
| | | |||||
| * | csi: CSI log messages are now single line | Daniel Eklöf | 2019-06-18 | -5/+24 | |
| | | |||||
| * | 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 | -26/+94 | |
| | | |||||
| * | vt: handle cursor-at-right-edge | Daniel Eklöf | 2019-06-17 | -2/+11 | |
| | | | | | | | 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 | -36/+56 | |
| | | |||||
| * | wip: vt parsing | Daniel Eklöf | 2019-06-17 | -14/+99 | |
| | | |||||
| * | TIOCSWINSZ: set ws_xpixel and ws_ypixel | Daniel Eklöf | 2019-06-16 | -2/+5 | |
| | | |||||
| * | vt: cell now tracks attributes (bold, italic, underline etc) | Daniel Eklöf | 2019-06-16 | -63/+67 | |
| | | |||||
| * | wip: vt parsing: initial csi/osc dispatching | Daniel Eklöf | 2019-06-15 | -103/+571 | |
| | | |||||
| * | Track cell foreground and background colors | Daniel Eklöf | 2019-06-13 | -30/+62 | |
| | | |||||
| * | Initial handling of multi byte characters | Daniel Eklöf | 2019-06-13 | -12/+24 | |
| | | | | | Use mblen() to calculate the byte count for each character. | ||||
| * | Set XDG toplevel title | Daniel Eklöf | 2019-06-13 | -1/+1 | |
| | | |||||
| * | Render cursor | Daniel Eklöf | 2019-06-13 | -20/+69 | |
| | | |||||
| * | Use frame callback to rate-limit surface updates | Daniel Eklöf | 2019-06-13 | -2/+39 | |
| | | |||||
| * | initial grid implementation | Daniel Eklöf | 2019-06-13 | -7/+228 | |
| | | | | | | This allows us to render *something*, even though it's inefficient, stupid and far far away from the real thing. | ||||
| * | Set up pseudo terminal and fork slave | Daniel Eklöf | 2019-06-13 | -7/+127 | |
| | | |||||
| * | main: handle window resize | Daniel Eklöf | 2019-06-12 | -14/+22 | |
| | | |||||
| * | shm: width/height must match | Daniel Eklöf | 2019-06-12 | -0/+3 | |
| | | |||||
| * | add license | Daniel Eklöf | 2019-06-12 | -0/+21 | |
| | | |||||
| * | initial commit: maps an XDG toplevel window | Daniel Eklöf | 2019-06-12 | -0/+874 | |
