| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| * | selection: disable source listeners, since we don't currently use them | Daniel Eklöf | 2019-07-11 | -0/+8 | |
| | | |||||
| * | selection: implement copy *to* primary | Daniel Eklöf | 2019-07-11 | -8/+91 | |
| | | |||||
| * | selection: add support for pasting *from* primary | Daniel Eklöf | 2019-07-11 | -6/+124 | |
| | | |||||
| * | selection: add selection_from_primary() API (stub for now) | Daniel Eklöf | 2019-07-11 | -1/+11 | |
| | | |||||
| * | selection: cleanup | Daniel Eklöf | 2019-07-11 | -4/+16 | |
| | | |||||
| * | selection: calculate required length for clipboard text | Daniel Eklöf | 2019-07-11 | -3/+12 | |
| | | |||||
| * | selection: read until EOF when reading from clipboard | Daniel Eklöf | 2019-07-11 | -6/+17 | |
| | | |||||
| * | selection: it's an error to call offset_accept() on non-drag-and-drop | Daniel Eklöf | 2019-07-11 | -3/+0 | |
| | | |||||
| * | selection: handle partial writes and EINTR when writing to clipboard | Daniel Eklöf | 2019-07-11 | -2/+16 | |
| | | |||||
| * | selection: add support for pasting from clipboard | Daniel Eklöf | 2019-07-11 | -1/+48 | |
| | | |||||
| * | selection: initial copy-to-clipboard functionality | Daniel Eklöf | 2019-07-11 | -0/+289 | |
| | | |||||
| * | selection: selection_finalize() ignores invalid selections | Daniel Eklöf | 2019-07-11 | -0/+3 | |
| | | |||||
| * | input: call selection_finalize() when BTN_LEFT is released | Daniel Eklöf | 2019-07-11 | -0/+2 | |
| | | |||||
| * | selection: spell 'finalize' correctly | Daniel Eklöf | 2019-07-11 | -2/+2 | |
| | | |||||
| * | selection: invalidate *all* affected lines when updating selection | Daniel Eklöf | 2019-07-11 | -4/+14 | |
| | | |||||
| * | input: ignore mouse motion outside our window | Daniel Eklöf | 2019-07-11 | -0/+3 | |
| | | |||||
| * | selection: disable debug logging | Daniel Eklöf | 2019-07-11 | -1/+1 | |
| | | |||||
| * | csi: cancel selection when switching between 'normal' and 'alt' grid | Daniel Eklöf | 2019-07-11 | -0/+3 | |
| | | |||||
| * | render: bug: don't render cursor when hide cursor is enabled | Daniel Eklöf | 2019-07-11 | -1/+1 | |
| | | |||||
| * | selection: disable selection when client has enabled mouse tracking | Daniel Eklöf | 2019-07-11 | -0/+18 | |
| | | |||||
| * | selection: add a selection API | Daniel Eklöf | 2019-07-11 | -30/+117 | |
| | | |||||
| * | selection: only left button can be used for selection | Daniel Eklöf | 2019-07-11 | -6/+14 | |
| | | |||||
| * | selection: selections can be made, and are rendered | Daniel Eklöf | 2019-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öf | 2019-07-10 | -4/+5 | |
| | | |||||
| * | Merge branch 'cache-optimize' | Daniel Eklöf | 2019-07-10 | -68/+78 | |
| |\ | |||||
| | * | terminal: scrolling: prefetch cells of scrolled in lines | Daniel Eklöf | 2019-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 messages | Daniel Eklöf | 2019-07-10 | -1/+5 | |
| | | | |||||
| | * | grid: swap_row: drop requirement that row indices be positive | Daniel Eklöf | 2019-07-10 | -2/+3 | |
| | | | |||||
| | * | render: reduce scrollback line count | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | | | | | | | | More than 1000 lines and we start exhibiting bad cache behavior | ||||
| | * | terminal: use floats instead of double for colors | Daniel Eklöf | 2019-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 sequence | Daniel Eklöf | 2019-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 struct | Daniel Eklöf | 2019-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 initialized | Daniel Eklöf | 2019-07-10 | -0/+9 | |
| | | |||||
| * | grid: repair grid_row_in_view(): use 'view', not 'offset' | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | |||||
| * | grid: don't pre-allocate the entire grid (with all scrollback lines) | Daniel Eklöf | 2019-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 file | Daniel Eklöf | 2019-07-10 | -102/+14 | |
| | | |||||
| * | vt: implement \ED and \EE | Daniel Eklöf | 2019-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 line | Daniel Eklöf | 2019-07-10 | -5/+4 | |
| | | |||||
| * | vt: '\n' now calls term_linefeed() | Daniel Eklöf | 2019-07-10 | -4/+1 | |
| | | |||||
| * | vt: escape '\E' properly when logging an ESC sequence | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | |||||
| * | vt/csi: use vt_param_get() | Daniel Eklöf | 2019-07-10 | -32/+22 | |
| | | |||||
| * | vt: add vt_param_get() - returns the specified parameter's value | Daniel Eklöf | 2019-07-10 | -0/+11 | |
| | | |||||
| * | terminal: add term_linefeed() and term_reverse_index() | Daniel Eklöf | 2019-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 character | Daniel Eklöf | 2019-07-10 | -21/+24 | |
| | | |||||
| * | csi: fix logging; 'CSI' was printed twice | Daniel Eklöf | 2019-07-10 | -12/+12 | |
| | | |||||
| * | Merge branch 'scrollback' | Daniel Eklöf | 2019-07-10 | -23/+263 | |
| |\ | |||||
| | * | scrollback: disable debug logging | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | | |||||
| | * | scrollback: use term_damage_view() | Daniel Eklöf | 2019-07-10 | -6/+2 | |
| | | | |||||
| | * | scrollback: don't allow more scrolling when already at the top or bottom | Daniel Eklöf | 2019-07-10 | -6/+9 | |
| | | | |||||
| | * | render: damage the *view* too, when resizing | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | | |||||
| | * | render: reset 'normal' grid's view correctly | Daniel Eklöf | 2019-07-10 | -1/+1 | |
| | | | |||||
| | * | terminal: add term_damage_view() | Daniel Eklöf | 2019-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 terminal | Daniel Eklöf | 2019-07-10 | -0/+10 | |
| | | | |||||
| | * | input: generate BTN_BACK/BTN_FORWARD mouse down events when scrolling | Daniel Eklöf | 2019-07-10 | -2/+14 | |
| | | | |||||
| | * | main: hopefully fix logical error in delayed rendering | Daniel Eklöf | 2019-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 size | Daniel Eklöf | 2019-07-10 | -6/+6 | |
| | | | |||||
| | * | render: don't render cursor if it is not in view | Daniel Eklöf | 2019-07-10 | -18/+28 | |
| | | | |||||
| | * | scrollback: don't redraw if view doesn't change | Daniel Eklöf | 2019-07-10 | -0/+8 | |
| | | | |||||
| | * | scrollback: don't scroll past scrollback history | Daniel Eklöf | 2019-07-10 | -4/+31 | |
| | | | |||||
| | * | scrollback: initial support for mouse scrolling | Daniel Eklöf | 2019-07-10 | -13/+41 | |
| | | | |||||
| | * | wip: initial scroll back support | Daniel Eklöf | 2019-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 sequences | Daniel Eklöf | 2019-07-09 | -3/+3 | |
| | | |||||
| * | input: split up keymap | Daniel Eklöf | 2019-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 mode | Daniel Eklöf | 2019-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 mode | Daniel Eklöf | 2019-07-09 | -10/+10 | |
| | | |||||
| * | vt: handle ESC correctly in OSC string state | Daniel Eklöf | 2019-07-09 | -0/+5 | |
| | | |||||
| * | input: add support for dead keys (composing) | Daniel Eklöf | 2019-07-09 | -3/+32 | |
| | | |||||
| * | vt: handle UTF-8 sequences in OSC PUT | Daniel Eklöf | 2019-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öf | 2019-07-09 | -647/+440 | |
| |\ | |||||
| | * | render: store frame callback pointer in terminal struct | Daniel Eklöf | 2019-07-09 | -7/+11 | |
| | | | | | | | | | This allows us to free it when exiting | ||||
| | * | cleanup | Daniel Eklöf | 2019-07-09 | -589/+14 | |
| | | | |||||
| | * | render: copy old contents to new grids when resizing | Daniel Eklöf | 2019-07-09 | -67/+57 | |
| | | | | | | | | | Eventually, we'll add text reflow here as well. | ||||
| | * | render: hackerman | Daniel Eklöf | 2019-07-08 | -1/+1 | |
| | | | |||||
| | * | main: verify compositor has WL_SHM_FORMAT_ARGB8888 | Daniel Eklöf | 2019-07-08 | -1/+9 | |
| | | | |||||
| | * | rgba: drop alpha channel support | Daniel Eklöf | 2019-07-08 | -53/+43 | |
| | | | |||||
| | * | render: use CAIRO_OPERATER_SOURCE to draw glyphs | Daniel Eklöf | 2019-07-08 | -2/+0 | |
| | | | | | | | | | This is *much* faster. | ||||
| | * | render: use doubles instead of ints | Daniel Eklöf | 2019-07-08 | -4/+4 | |
| | | | |||||
| | * | render: use pointers to rgba foreground/background colors | Daniel Eklöf | 2019-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 array | Daniel Eklöf | 2019-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 performance | Daniel Eklöf | 2019-07-07 | -4/+16 | |
| | | |||||
| * | render: collect glyphs over *all* update damages | Daniel Eklöf | 2019-07-07 | -12/+12 | |
| | | |||||
| * | grid: add a fast path to grid_memmove() | Daniel Eklöf | 2019-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öf | 2019-07-07 | -8/+7 | |
| | | |||||
| * | csi: scroll region is not allowed past available rows | Daniel Eklöf | 2019-07-07 | -1/+1 | |
| | | |||||
| * | performance improvements | Daniel Eklöf | 2019-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 sequence | Daniel Eklöf | 2019-07-06 | -1/+4 | |
| | | |||||
| * | vt: add branch hinting to PRINT action | Daniel Eklöf | 2019-07-06 | -3/+6 | |
| | | |||||
| * | render: reverse video only reverses the default background/foreground | Daniel Eklöf | 2019-07-05 | -8/+4 | |
| | | |||||
| * | csi: implement reverse video | Daniel Eklöf | 2019-07-05 | -8/+18 | |
| | | |||||
| * | csi: implement URXVT style mouse event reporting | Daniel Eklöf | 2019-07-05 | -12/+13 | |
| | | |||||
| * | osc: recognize, but ignore, OSC 104 and OSC 105 | Daniel Eklöf | 2019-07-05 | -0/+4 | |
| | | |||||
| * | osc: fix param calculation with more than one digit | Daniel Eklöf | 2019-07-05 | -0/+1 | |
| | | |||||
| * | csi: SGR mouse tracking *is* implemented | Daniel Eklöf | 2019-07-05 | -1/+0 | |
| | | |||||
| * | render: fill area outside the cell grid with default bg color | Daniel Eklöf | 2019-07-05 | -2/+20 | |
| | | |||||
| * | term: implement MOUSE_SGR mouse event reporting style | Daniel Eklöf | 2019-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 width | Daniel Eklöf | 2019-07-05 | -3/+3 | |
| | | |||||
| * | vt: add support for mouse motion reports | Daniel Eklöf | 2019-07-05 | -68/+134 | |
| | | |||||
| * | vt: add support for \E[?1000h - report mouse button events | Daniel Eklöf | 2019-07-05 | -24/+183 | |
| | | |||||
| * | input: mouse events | Daniel Eklöf | 2019-07-05 | -6/+103 | |
| | | |||||
| * | render: load cursor theme from XCURSOR_THEME and XCURSOR_SIZE | Daniel Eklöf | 2019-07-05 | -0/+79 | |
| | | |||||
