aboutsummaryrefslogtreecommitdiff
path: root/main.c (follow)
Commit message (Collapse)AuthorAgeLines
...
* main: more zenburn:ish default foreground and background colorsDaniel Eklöf2019-07-04-2/+2
|
* vt: implement (untested!) smam and rmam (auto margins)Daniel Eklöf2019-07-03-0/+1
| | | | | Default is auto-margins enabled (scroll when cursor reaches right margin).
* logging: disable debug logging by defaultDaniel Eklöf2019-07-03-1/+1
|
* main: mitigate screen flashes on slow clientDaniel Eklöf2019-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: implement 'civis' (show/hide cursor)Daniel Eklöf2019-07-03-1/+2
|
* scrolling: initial reverse scrolling support - no scroll regionsDaniel Eklöf2019-07-03-4/+15
|
* render: fix last-cursor comparisonDaniel Eklöf2019-07-03-1/+1
|
* main: add --font/-f command line optionDaniel Eklöf2019-07-03-3/+32
|
* main: make sure cursor is inside the new row/col limits on resizeDaniel Eklöf2019-07-02-0/+5
|
* render: track last cursor position in absolute valuesDaniel Eklöf2019-07-02-7/+6
| | | | | This seems to fix an issue where we sometimes saw "ghost" cursors when scrolling.
* render: revert glyph cachingDaniel Eklöf2019-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 renderedDaniel Eklöf2019-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 backgroundDaniel Eklöf2019-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 masksDaniel Eklöf2019-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 INFODaniel Eklöf2019-07-01-2/+2
|
* render: always render cursorDaniel Eklöf2019-07-01-17/+27
|
* render: use actual grid size when re-allocating grid bufferDaniel Eklöf2019-07-01-2/+2
|
* render: re-enable drawing cursor on eraseDaniel Eklöf2019-07-01-5/+4
|
* wip: use a sliding window instead of memmove() to scrollDaniel Eklöf2019-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 gridsDaniel Eklöf2019-06-29-28/+30
|
* terminal: move cursor from grid to terminalDaniel Eklöf2019-06-29-4/+4
|
* terminal: move fore/background colors from grid to terminalDaniel Eklöf2019-06-29-5/+5
|
* terminal: move col/row count, cell width/height and scroll region to terminalDaniel Eklöf2019-06-29-42/+42
|
* Rename grid_* functions to term_*Daniel Eklöf2019-06-29-1/+1
|
* render: don't try to render glyph for empty cell(s)Daniel Eklöf2019-06-29-0/+3
|
* main: increase ptmx slave buffer sizeDaniel Eklöf2019-06-29-1/+1
|
* render: alignmentDaniel Eklöf2019-06-29-2/+2
|
* render: also check scroll damage listDaniel Eklöf2019-06-29-1/+4
|
* colors: store as doubles, rather than uint32_tDaniel Eklöf2019-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 colorsDaniel Eklöf2019-06-26-2/+4
|
* render: avoid divisionDaniel Eklöf2019-06-26-1/+2
|
* grid: attributes now track whether we've set a foreground/background colorDaniel Eklöf2019-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 regionDaniel Eklöf2019-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 regionDaniel Eklöf2019-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 spellingDaniel Eklöf2019-06-24-4/+4
|
* scrolling region: wipDaniel Eklöf2019-06-23-7/+11
|
* vt: wip: implement scrolling regionDaniel Eklöf2019-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öf2019-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 startupDaniel Eklöf2019-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 colorsDaniel Eklöf2019-06-23-4/+19
|
* vt: implement DECCKM (cursor key sends either SS3 or CSI escapes)Daniel Eklöf2019-06-23-0/+2
|
* vt: add all (?) missing states, actions and transitionsDaniel Eklöf2019-06-23-1/+1
|
* render: implement 'reverse' attributeDaniel Eklöf2019-06-22-14/+22
|
* render: implement 'conceal' attributeDaniel Eklöf2019-06-22-0/+3
|
* main: implement bold+italic fontsDaniel Eklöf2019-06-22-8/+32
|
* render: re-render cursor after ERASE (if cursor is in the erase range)Daniel Eklöf2019-06-21-72/+83
|
* grid: implement DAMAGE_SCROLLDaniel Eklöf2019-06-21-1/+49
|
* render: break up grid_render()Daniel Eklöf2019-06-19-127/+132
|
* Use a 'damage' list to communicate what needs to be updatedDaniel Eklöf2019-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 handlingDaniel Eklöf2019-06-19-3/+155
|
* grid: track both linear and row,col cursorDaniel Eklöf2019-06-17-1/+1
|
* wip: vt parsingDaniel Eklöf2019-06-17-9/+8
|
* TIOCSWINSZ: set ws_xpixel and ws_ypixelDaniel Eklöf2019-06-16-2/+5
|
* vt: cell now tracks attributes (bold, italic, underline etc)Daniel Eklöf2019-06-16-8/+10
|
* wip: vt parsing: initial csi/osc dispatchingDaniel Eklöf2019-06-15-103/+59
|
* Track cell foreground and background colorsDaniel Eklöf2019-06-13-30/+62
|
* Initial handling of multi byte charactersDaniel Eklöf2019-06-13-11/+23
| | | | Use mblen() to calculate the byte count for each character.
* Set XDG toplevel titleDaniel Eklöf2019-06-13-1/+1
|
* Render cursorDaniel Eklöf2019-06-13-20/+66
|
* Use frame callback to rate-limit surface updatesDaniel Eklöf2019-06-13-2/+36
|
* initial grid implementationDaniel Eklöf2019-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 slaveDaniel Eklöf2019-06-13-7/+55
|
* main: handle window resizeDaniel Eklöf2019-06-12-14/+22
|
* initial commit: maps an XDG toplevel windowDaniel Eklöf2019-06-12-0/+286