aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
* selection: disable source listeners, since we don't currently use themDaniel Eklöf2019-07-11-0/+8
|
* selection: implement copy *to* primaryDaniel Eklöf2019-07-11-8/+91
|
* selection: add support for pasting *from* primaryDaniel Eklöf2019-07-11-6/+124
|
* selection: add selection_from_primary() API (stub for now)Daniel Eklöf2019-07-11-1/+11
|
* selection: cleanupDaniel Eklöf2019-07-11-4/+16
|
* selection: calculate required length for clipboard textDaniel Eklöf2019-07-11-3/+12
|
* selection: read until EOF when reading from clipboardDaniel Eklöf2019-07-11-6/+17
|
* selection: it's an error to call offset_accept() on non-drag-and-dropDaniel Eklöf2019-07-11-3/+0
|
* selection: handle partial writes and EINTR when writing to clipboardDaniel Eklöf2019-07-11-2/+16
|
* selection: add support for pasting from clipboardDaniel Eklöf2019-07-11-1/+48
|
* selection: initial copy-to-clipboard functionalityDaniel Eklöf2019-07-11-0/+289
|
* selection: selection_finalize() ignores invalid selectionsDaniel Eklöf2019-07-11-0/+3
|
* input: call selection_finalize() when BTN_LEFT is releasedDaniel Eklöf2019-07-11-0/+2
|
* selection: spell 'finalize' correctlyDaniel Eklöf2019-07-11-2/+2
|
* selection: invalidate *all* affected lines when updating selectionDaniel Eklöf2019-07-11-4/+14
|
* input: ignore mouse motion outside our windowDaniel Eklöf2019-07-11-0/+3
|
* selection: disable debug loggingDaniel Eklöf2019-07-11-1/+1
|
* csi: cancel selection when switching between 'normal' and 'alt' gridDaniel Eklöf2019-07-11-0/+3
|
* render: bug: don't render cursor when hide cursor is enabledDaniel Eklöf2019-07-11-1/+1
|
* selection: disable selection when client has enabled mouse trackingDaniel Eklöf2019-07-11-0/+18
|
* selection: add a selection APIDaniel Eklöf2019-07-11-30/+117
|
* selection: only left button can be used for selectionDaniel Eklöf2019-07-11-6/+14
|
* selection: selections can be made, and are renderedDaniel Eklöf2019-07-11-1/+57
| | | | | | | * 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
* grid: prefetch cells in grid_row()Daniel Eklöf2019-07-10-4/+5
|
* Merge branch 'cache-optimize'Daniel Eklöf2019-07-10-68/+78
|\
| * terminal: scrolling: prefetch cells of scrolled in linesDaniel Eklöf2019-07-10-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Since newly scrolled in lines will be erased, we want them in the cache. So, allocate and prefetch new lines, then repair non-scrolling regions (to give the prefetch time to actually fetch the data). Finally, erase the newly scrolled in lines. This also fixes a bug where the fixup for the non-scrolling regions could crash on an unallocated row (we were accessing rows that would be, but hadn't yet been, scrolled in).
| * terminal: scrolling: better debug log messagesDaniel Eklöf2019-07-10-1/+5
| |
| * grid: swap_row: drop requirement that row indices be positiveDaniel Eklöf2019-07-10-2/+3
| |
| * render: reduce scrollback line countDaniel Eklöf2019-07-10-1/+1
| | | | | | | | More than 1000 lines and we start exhibiting bad cache behavior
| * terminal: use floats instead of double for colorsDaniel Eklöf2019-07-10-13/+6
| | | | | | | | | | We don't need the full resolution a double gives us. Using floats reduces the size of cells greatly, which improves cache usage.
| * cell: we only need 4 bytes for the longest utf8 sequenceDaniel Eklöf2019-07-10-3/+3
| | | | | | | | | | | | 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.
| * terminal: remove 'blink' attribute from cell structDaniel Eklöf2019-07-10-31/+32
|/ | | | | This makes the other attribute bits fit in a single uint8_t, which makes each cell smaller which improves cache usage.
* scrollback: in debug, verify all rows in the view are initializedDaniel Eklöf2019-07-10-0/+9
|
* grid: repair grid_row_in_view(): use 'view', not 'offset'Daniel Eklöf2019-07-10-1/+1
|
* grid: don't pre-allocate the entire grid (with all scrollback lines)Daniel Eklöf2019-07-10-45/+68
| | | | | | | | | | 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.
* grid: don't implement grid_swap_row() in the header fileDaniel Eklöf2019-07-10-102/+14
|
* vt: implement \ED and \EEDaniel Eklöf2019-07-10-0/+9
| | | | | | | '\ED' is just like '\n'; move the cursor down to the next row, or if it's at the bottom, scroll up one row. '\EE' is just like '\n\r'
* vt: \EM now calls term_reverse_index() instead of always scrolling one lineDaniel Eklöf2019-07-10-5/+4
|
* vt: '\n' now calls term_linefeed()Daniel Eklöf2019-07-10-4/+1
|
* vt: escape '\E' properly when logging an ESC sequenceDaniel Eklöf2019-07-10-1/+1
|
* vt/csi: use vt_param_get()Daniel Eklöf2019-07-10-32/+22
|
* vt: add vt_param_get() - returns the specified parameter's valueDaniel Eklöf2019-07-10-0/+11
|
* terminal: add term_linefeed() and term_reverse_index()Daniel Eklöf2019-07-10-0/+21
| | | | | | | | linefeed moves cursor down one row (columns stays the same), or, if the cursor is at the last row, scrolls up one row. reverse_index does the opposite; it moves the cursor *up* one row, or, if the cursor is at the top row, scrolls *down* one row.
* terminal: only support a single intermediate/private characterDaniel Eklöf2019-07-10-21/+24
|
* csi: fix logging; 'CSI' was printed twiceDaniel Eklöf2019-07-10-12/+12
|
* Merge branch 'scrollback'Daniel Eklöf2019-07-10-23/+263
|\
| * scrollback: disable debug loggingDaniel Eklöf2019-07-10-1/+1
| |
| * scrollback: use term_damage_view()Daniel Eklöf2019-07-10-6/+2
| |
| * scrollback: don't allow more scrolling when already at the top or bottomDaniel Eklöf2019-07-10-6/+9
| |
| * 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
| |
| * terminal: add term_damage_view()Daniel Eklöf2019-07-10-0/+8
| | | | | | | | | | This ensures everything *visible* (i.e. maybe scrolled back content) is re-rendered.
| * scrollback: fix scrolling outside initialized lines in new terminalDaniel Eklöf2019-07-10-0/+10
| |
| * input: generate BTN_BACK/BTN_FORWARD mouse down events when scrollingDaniel Eklöf2019-07-10-2/+14
| |
| * main: hopefully fix logical error in delayed renderingDaniel Eklöf2019-07-10-1/+1
| | | | | | | | | | We want the timeout_ms to *not* be -1 (i.e. someone has requested delayed rendering), while we're *not* getting client output.
| * scrollback: fix off-by-one when grid size matches terminal/window sizeDaniel Eklöf2019-07-10-6/+6
| |
| * render: don't render cursor if it is not in viewDaniel Eklöf2019-07-10-18/+28
| |
| * scrollback: don't redraw if view doesn't changeDaniel Eklöf2019-07-10-0/+8
| |
| * scrollback: don't scroll past scrollback historyDaniel Eklöf2019-07-10-4/+31
| |
| * scrollback: initial support for mouse scrollingDaniel Eklöf2019-07-10-13/+41
| |
| * wip: initial scroll back supportDaniel Eklöf2019-07-09-8/+146
|/ | | | | | | | | | | | | | | | | | | | | | | 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...
* input: fix backspace escape sequencesDaniel Eklöf2019-07-09-3/+3
|
* input: split up keymapDaniel Eklöf2019-07-09-393/+575
| | | | | | This makes the top level table smaller, and faster to search through. Eventually, we could do something fancy, like b-search the top level table.
* input: implement keypad application modeDaniel Eklöf2019-07-09-112/+489
| | | | | This commit also replaces the previous (temporary) key map with a much more complete one.
* terminal: rename and redefine cursor keys mode and keypad keys modeDaniel Eklöf2019-07-09-10/+10
|
* vt: handle ESC correctly in OSC string stateDaniel Eklöf2019-07-09-0/+5
|
* input: add support for dead keys (composing)Daniel Eklöf2019-07-09-3/+32
|
* vt: handle UTF-8 sequences in OSC PUTDaniel Eklöf2019-07-09-2/+9
| | | | | | | | This is strictly speaking not correct, since we're not treating a lot of characters that should switch state as part of the OSC string. The correct way would be to have a specific OSC UTF8 state that parses UTF8 strings.
* 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
|