aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
* Merge branch 'no-more-linear'Daniel Eklöf2019-07-09-647/+440
|\
| * render: store frame callback pointer in terminal structDaniel Eklöf2019-07-09-7/+11
| | | | | | | | This allows us to free it when exiting
| * cleanupDaniel Eklöf2019-07-09-589/+14
| |
| * 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
| |
| * main: verify compositor has WL_SHM_FORMAT_ARGB8888Daniel Eklöf2019-07-08-1/+9
| |
| * rgba: drop alpha channel supportDaniel Eklöf2019-07-08-53/+43
| |
| * 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-79/+455
|/ | | | | | | | | | | | 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.
* cell: packing the cell struct seems to help performanceDaniel Eklöf2019-07-07-4/+16
|
* render: collect glyphs over *all* update damagesDaniel Eklöf2019-07-07-12/+12
|
* grid: add a fast path to grid_memmove()Daniel Eklöf2019-07-07-0/+13
| | | | | Recognize the case where both the destination and source can be fully accessed, and to a plain memmove() in this case.
* grid: grid_memset() -> grid_memclear()Daniel Eklöf2019-07-07-8/+7
|
* csi: scroll region is not allowed past available rowsDaniel Eklöf2019-07-07-1/+1
|
* performance improvementsDaniel Eklöf2019-07-07-130/+162
| | | | | | | | | * action() returns void - this gets rid of checks in vt_from_slave() * split up ACTION_PRINT into ACTION_PRINT (ASCII) and ACTION_UTF8_PRINT ACTION_PRINT is on the hot path, and we want it streamlined. * Remove run-time checkout for unimplemented state transitions, as we shouldn't have any of those left. * Don't re-load current VT state on each iteration in vt_from_slave()
* render: performance: don't stack allocate glyph sequenceDaniel Eklöf2019-07-06-1/+4
|
* vt: add branch hinting to PRINT actionDaniel Eklöf2019-07-06-3/+6
|
* render: reverse video only reverses the default background/foregroundDaniel Eklöf2019-07-05-8/+4
|
* csi: implement reverse videoDaniel Eklöf2019-07-05-8/+18
|
* csi: implement URXVT style mouse event reportingDaniel Eklöf2019-07-05-12/+13
|
* osc: recognize, but ignore, OSC 104 and OSC 105Daniel Eklöf2019-07-05-0/+4
|
* osc: fix param calculation with more than one digitDaniel Eklöf2019-07-05-0/+1
|
* csi: SGR mouse tracking *is* implementedDaniel Eklöf2019-07-05-1/+0
|
* render: fill area outside the cell grid with default bg colorDaniel Eklöf2019-07-05-2/+20
|
* term: implement MOUSE_SGR mouse event reporting styleDaniel Eklöf2019-07-05-5/+26
| | | | | This style is enabled with the \e[?1006h sequence, and changes how mouse events (button presses, releases and motion events).
* input: bug: row is calculated from the cell *height*, not widthDaniel Eklöf2019-07-05-3/+3
|
* vt: add support for mouse motion reportsDaniel Eklöf2019-07-05-68/+134
|
* vt: add support for \E[?1000h - report mouse button eventsDaniel Eklöf2019-07-05-24/+183
|
* input: mouse eventsDaniel Eklöf2019-07-05-6/+103
|
* render: load cursor theme from XCURSOR_THEME and XCURSOR_SIZEDaniel Eklöf2019-07-05-0/+79
|
* render: break out rendering functions to render.{c,h}Daniel Eklöf2019-07-05-743/+706
|
* osc: implement change window title and iconDaniel Eklöf2019-07-05-10/+65
|
* render: bump number of glyphs we can render in a single callDaniel Eklöf2019-07-05-1/+1
|
* main: it's not the terminal emulators job to set LINES and COLUMNSDaniel Eklöf2019-07-05-7/+0
|
* csi: manually erase alt screen when switching to itDaniel Eklöf2019-07-05-1/+3
|
* term_erase(): erased cells get the currently selected background colorDaniel Eklöf2019-07-05-2/+24
|
* main: initialize colors in VT stateDaniel Eklöf2019-07-05-0/+4
|
* render: force a full redraw when we cannot reuse last bufferDaniel Eklöf2019-07-05-1/+5
|
* resize: cursor reset was off-by-one when cursor was outside new sizeDaniel Eklöf2019-07-04-2/+2
|
* resize: re-align grid offsetDaniel Eklöf2019-07-04-0/+7
|
* csi: implement CSI S and CSI T (scroll up/down)Daniel Eklöf2019-07-04-0/+8
|
* vt: improve logging of invalid and unimplemented sequencesDaniel Eklöf2019-07-04-38/+50
|
* vt: implement save/restore cursor+attributesDaniel Eklöf2019-07-04-0/+11
|
* vt: handle graphical charset mode when printing a characterDaniel Eklöf2019-07-04-3/+20
|
* vt: track charsets G0-G3 and support either ASCII or graphical modeDaniel Eklöf2019-07-04-15/+12
|
* main: handle EINTR in poll()Daniel Eklöf2019-07-04-0/+3
|
* csi: ignore 'blinking cursor' private modeDaniel Eklöf2019-07-04-2/+2
|
* csi: fix parsing of 256-color and 24-bit color SGRsDaniel Eklöf2019-07-04-4/+4
| | | | | | | | | There may be more SGR sequences after the 256-color/24-bit sequence. Thus, check that we have *enough* parameters to parse the 256-color/24-bit SGR. It doesn't have to be *exactly* the required number of parameters though. Fixes issues with sequences like: \e[38;2;1;48;2;1m
* flash mitigation: add a small delay before rendering after receiving client dataDaniel Eklöf2019-07-04-13/+52
| | | | | | Simply re-trying to read client data is not enough in many cases. Re-work the flash mitigation to instead incur a small delay before rendering.
* main: more zenburn:ish default foreground and background colorsDaniel Eklöf2019-07-04-2/+2
|
* vt: bug fix: clear utf-8 state after printing a utf-8 characterDaniel Eklöf2019-07-04-0/+1
|
* Merge branch 'fast-scroll'Daniel Eklöf2019-07-03-250/+607
|\
| * csi: fix bug: cursor horizontal absolute (<ESC> Pn G) was off-by-oneDaniel Eklöf2019-07-03-6/+2
| |
| * csi: cleanupDaniel Eklöf2019-07-03-18/+3
| |
| * csi: ?r and ?s are like ?h and ?l; they save/restore thingsDaniel Eklöf2019-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öf2019-07-03-3/+4
| | | | | | | | | | Default is auto-margins enabled (scroll when cursor reaches right margin).
| * vt: implement (untested!) insert modeDaniel Eklöf2019-07-03-8/+19
| | | | | | | | \E4l is not horizontal index, but disable INSERT mode
| * logging: disable debug logging by defaultDaniel Eklöf2019-07-03-8/+8
| |
| * vt: recognize ESC(0 - switch character setDaniel Eklöf2019-07-03-0/+19
| |
| * vt: always log unimplemented as warnings, not errorsDaniel Eklöf2019-07-03-2/+3
| |
| * vt: fix logging of ESC intermediates and parametersDaniel Eklöf2019-07-03-1/+1
| |
| * csi: add unknown private escapes 's' and 'r', seen with ncmpcppDaniel Eklöf2019-07-03-0/+7
| |
| * csi: recognize ?1005 and ?1015 private CSIsDaniel Eklöf2019-07-03-0/+16
| |
| * csi: fix cursor positioningDaniel Eklöf2019-07-03-1/+1
| |
| * csi: implement 'erase characters' (CSI X)Daniel Eklöf2019-07-03-0/+11
| |
| * 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: recognize 'smam', but log unimplementedDaniel Eklöf2019-07-03-0/+8
| |
| * csi: add untested implementation of "horizontal index"Daniel Eklöf2019-07-03-0/+11
| |
| * csi: scroll region changes are now logged as debug again, rather than infoDaniel Eklöf2019-07-03-3/+3
| |
| * scrolling: initial implementation of scrolling region when reverse scrollingDaniel Eklöf2019-07-03-2/+38
| |
| * scrolling: make sure we don't clear too much memoryDaniel Eklöf2019-07-03-1/+3
| |
| * scrolling: hopefully fix bad damage update of items outside scrolling regionDaniel Eklöf2019-07-03-4/+4
| |
| * csi: implement 'civis' (show/hide cursor)Daniel Eklöf2019-07-03-3/+5
| |
| * scrolling: initial reverse scrolling support - no scroll regionsDaniel Eklöf2019-07-03-49/+45
| |
| * render: fix last-cursor comparisonDaniel Eklöf2019-07-03-1/+1
| |
| * main: add --font/-f command line optionDaniel Eklöf2019-07-03-3/+32
| |
| * term: optimize damage list after scrollDaniel Eklöf2019-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öf2019-07-03-5/+0
| |
| * 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.
| * csi: re-set cursor when switching between alt and normal screenDaniel Eklöf2019-07-02-0/+4
| | | | | | | | This forces a refresh of the "current line" pointer.
| * csi: repair DCH (delete character)Daniel Eklöf2019-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 lineDaniel Eklöf2019-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 necessaryDaniel Eklöf2019-07-02-3/+3
| |
| * term: simplify horizontal cursor movementDaniel Eklöf2019-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 redrawDaniel Eklöf2019-07-02-0/+8
| |
| * 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
| |
| * term: 'end' variable is only used in assert()Daniel Eklöf2019-07-01-1/+1
| |
| * vt: no need to clear temporary utf8 buffer after printing itDaniel Eklöf2019-07-01-1/+0
| |
| * render: always render cursorDaniel Eklöf2019-07-01-19/+27
| |
| * csi: clear all existing alt damage when switch alt <--> normalDaniel Eklöf2019-07-01-0/+6
| |
| * csi: erase alt screen when enabling itDaniel Eklöf2019-07-01-1/+1
| |
| * scrolling: implement partial scrollingDaniel Eklöf2019-07-01-23/+45
| |
| * render: use actual grid size when re-allocating grid bufferDaniel Eklöf2019-07-01-2/+2
| |