| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| * | scrolling: initial reverse scrolling support - no scroll regions | Daniel Eklöf | 2019-07-03 | -4/+15 | |
| | | |||||
| * | 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 | |
| | | |||||
| * | 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. | ||||
| * | 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 | |
| | | |||||
| * | render: always render cursor | Daniel Eklöf | 2019-07-01 | -17/+27 | |
| | | |||||
| * | 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 | |
| | | |||||
| * | wip: use a sliding window instead of memmove() to scroll | Daniel Eklöf | 2019-07-01 | -19/+47 | |
| | | | | | | Instead of memmoving a large amount of data on every scroll, use a sliding window. That is, each time we scroll, we offset origin. | ||||
| * | terminal: prepare for floating grids | Daniel Eklöf | 2019-06-29 | -28/+30 | |
| | | |||||
| * | terminal: move cursor from grid to terminal | Daniel Eklöf | 2019-06-29 | -4/+4 | |
| | | |||||
| * | terminal: move fore/background colors from grid to terminal | Daniel Eklöf | 2019-06-29 | -5/+5 | |
| | | |||||
| * | terminal: move col/row count, cell width/height and scroll region to terminal | Daniel Eklöf | 2019-06-29 | -42/+42 | |
| | | |||||
| * | Rename grid_* functions to term_* | Daniel Eklöf | 2019-06-29 | -1/+1 | |
| | | |||||
| * | 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 | |
| | | |||||
| * | colors: store as doubles, rather than uint32_t | Daniel Eklöf | 2019-06-26 | -22/+13 | |
| | | | | | | 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 | |
| | | |||||
| * | grid: attributes now track whether we've set a foreground/background color | Daniel Eklöf | 2019-06-26 | -2/+4 | |
| | | | | | | | | | | 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 | -14/+32 | |
| | | | | | | | 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 | -46/+33 | |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | TIOCSWINSZ: fix alignment and spelling | Daniel Eklöf | 2019-06-24 | -4/+4 | |
| | | |||||
| * | scrolling region: wip | Daniel Eklöf | 2019-06-23 | -7/+11 | |
| | | |||||
| * | vt: wip: implement scrolling region | Daniel Eklöf | 2019-06-23 | -20/+22 | |
| | | | | | | | | | | | 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. | ||||
| * | vt: implement reverse scrolling (terminfo 'ri') | Daniel Eklöf | 2019-06-23 | -4/+48 | |
| | | | | | | 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. | ||||
| * | vt: initial implementation of alt screen + 256 colors | Daniel Eklöf | 2019-06-23 | -4/+19 | |
| | | |||||
| * | vt: implement DECCKM (cursor key sends either SS3 or CSI escapes) | Daniel Eklöf | 2019-06-23 | -0/+2 | |
| | | |||||
| * | vt: add all (?) missing states, actions and transitions | Daniel Eklöf | 2019-06-23 | -1/+1 | |
| | | |||||
| * | render: implement 'reverse' attribute | Daniel Eklöf | 2019-06-22 | -14/+22 | |
| | | |||||
| * | render: implement 'conceal' attribute | Daniel Eklöf | 2019-06-22 | -0/+3 | |
| | | |||||
| * | main: implement bold+italic fonts | Daniel Eklöf | 2019-06-22 | -8/+32 | |
| | | |||||
| * | 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 | -1/+49 | |
| | | |||||
| * | render: break up grid_render() | Daniel Eklöf | 2019-06-19 | -127/+132 | |
| | | |||||
| * | Use a 'damage' list to communicate what needs to be updated | Daniel Eklöf | 2019-06-19 | -67/+157 | |
| | | | | | | | | | | | 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). | ||||
| * | wip: initial input handling | Daniel Eklöf | 2019-06-19 | -3/+155 | |
| | | |||||
| * | grid: track both linear and row,col cursor | Daniel Eklöf | 2019-06-17 | -1/+1 | |
| | | |||||
| * | wip: vt parsing | Daniel Eklöf | 2019-06-17 | -9/+8 | |
| | | |||||
| * | 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 | -8/+10 | |
| | | |||||
| * | wip: vt parsing: initial csi/osc dispatching | Daniel Eklöf | 2019-06-15 | -103/+59 | |
| | | |||||
| * | 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 | -11/+23 | |
| | | | | | 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/+66 | |
| | | |||||
| * | Use frame callback to rate-limit surface updates | Daniel Eklöf | 2019-06-13 | -2/+36 | |
| | | |||||
| * | initial grid implementation | Daniel Eklöf | 2019-06-13 | -5/+130 | |
| | | | | | | 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/+55 | |
| | | |||||
| * | main: handle window resize | Daniel Eklöf | 2019-06-12 | -14/+22 | |
| | | |||||
| * | initial commit: maps an XDG toplevel window | Daniel Eklöf | 2019-06-12 | -0/+286 | |
