aboutsummaryrefslogtreecommitdiff
path: root/render.c (follow)
Commit message (Collapse)AuthorAgeLines
* render: bug: don't render cursor when hide cursor is enabledDaniel Eklöf2019-07-11-1/+1
|
* selection: selections can be made, and are renderedDaniel Eklöf2019-07-11-1/+27
| | | | | | | * Start selection on mouse button down * Update selection on motion * Button release cancels selection if there were no motion after start * Renderer detects cells inside the selection and inverts their colors
* render: reduce scrollback line countDaniel Eklöf2019-07-10-1/+1
| | | | More than 1000 lines and we start exhibiting bad cache behavior
* cell: we only need 4 bytes for the longest utf8 sequenceDaniel Eklöf2019-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.
* grid: don't pre-allocate the entire grid (with all scrollback lines)Daniel Eklöf2019-07-10-27/+20
| | | | | | | | | | The row array may now contain NULL pointers. This means the corresponding row hasn't yet been allocated and initialized. On a resize, we explicitly allocate the visible rows. Uninitialized rows are then allocated the first time they are referenced.
* render: damage the *view* too, when resizingDaniel Eklöf2019-07-10-1/+1
|
* render: reset 'normal' grid's view correctlyDaniel Eklöf2019-07-10-1/+1
|
* render: don't render cursor if it is not in viewDaniel Eklöf2019-07-10-18/+28
|
* wip: initial scroll back supportDaniel Eklöf2019-07-09-6/+28
| | | | | | | | | | | | | | | | | | | | | | | Can scroll up and down, and stops when the beginning/end of history is reached. However, it probably breaks when the entire scrollback buffer has been filled - we need to detect when the view has wrapped around to the current terminal offset. The detection of when we've reached the bottom of the history is also flawed, and only works when we overshoot the bottom with at least a page. Resizing the windows while in a view most likely doesn't work. The view will not detect a wrapped around scrollback buffer. I.e. if the user has scrolled back, and is stationary at a view, but there is still output being produced. Then eventually the scrollback buffer will wrap around. In this case, the correct thing to do is make the view start following the beginning of the history. Right now it doesn't, meaning once the scrollback buffer wraps around, you'll start seeing command output...
* render: store frame callback pointer in terminal structDaniel Eklöf2019-07-09-5/+6
| | | | This allows us to free it when exiting
* cleanupDaniel Eklöf2019-07-09-302/+1
|
* render: copy old contents to new grids when resizingDaniel Eklöf2019-07-09-67/+57
| | | | Eventually, we'll add text reflow here as well.
* render: hackermanDaniel Eklöf2019-07-08-1/+1
|
* rgba: drop alpha channel supportDaniel Eklöf2019-07-08-19/+13
|
* render: use CAIRO_OPERATER_SOURCE to draw glyphsDaniel Eklöf2019-07-08-2/+0
| | | | This is *much* faster.
* render: use doubles instead of intsDaniel Eklöf2019-07-08-4/+4
|
* render: use pointers to rgba foreground/background colorsDaniel Eklöf2019-07-08-11/+13
| | | | | This is faster, since we don't have to copy several large doubles when swapping the colors.
* wip: grid is now represented as a grid, not a linear arrayDaniel Eklöf2019-07-08-4/+209
| | | | | | | | | | | | 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.
* render: collect glyphs over *all* update damagesDaniel Eklöf2019-07-07-12/+12
|
* render: performance: don't stack allocate glyph sequenceDaniel Eklöf2019-07-06-1/+4
|
* render: reverse video only reverses the default background/foregroundDaniel Eklöf2019-07-05-8/+4
|
* csi: implement reverse videoDaniel Eklöf2019-07-05-6/+13
|
* render: fill area outside the cell grid with default bg colorDaniel Eklöf2019-07-05-2/+20
|
* render: load cursor theme from XCURSOR_THEME and XCURSOR_SIZEDaniel Eklöf2019-07-05-0/+29
|
* render: break out rendering functions to render.{c,h}Daniel Eklöf2019-07-05-0/+532