| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | 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 |
| | | ||||
| * | render: break out rendering functions to render.{c,h} | Daniel Eklöf | 2019-07-05 | -743/+706 |
| | | ||||
| * | osc: implement change window title and icon | Daniel Eklöf | 2019-07-05 | -10/+65 |
| | | ||||
| * | render: bump number of glyphs we can render in a single call | Daniel Eklöf | 2019-07-05 | -1/+1 |
| | | ||||
| * | main: it's not the terminal emulators job to set LINES and COLUMNS | Daniel Eklöf | 2019-07-05 | -7/+0 |
| | | ||||
| * | csi: manually erase alt screen when switching to it | Daniel Eklöf | 2019-07-05 | -1/+3 |
| | | ||||
| * | term_erase(): erased cells get the currently selected background color | Daniel Eklöf | 2019-07-05 | -2/+24 |
| | | ||||
| * | main: initialize colors in VT state | Daniel Eklöf | 2019-07-05 | -0/+4 |
| | | ||||
| * | render: force a full redraw when we cannot reuse last buffer | Daniel Eklöf | 2019-07-05 | -1/+5 |
| | | ||||
| * | resize: cursor reset was off-by-one when cursor was outside new size | Daniel Eklöf | 2019-07-04 | -2/+2 |
| | | ||||
| * | resize: re-align grid offset | Daniel Eklöf | 2019-07-04 | -0/+7 |
| | | ||||
| * | csi: implement CSI S and CSI T (scroll up/down) | Daniel Eklöf | 2019-07-04 | -0/+8 |
| | | ||||
| * | vt: improve logging of invalid and unimplemented sequences | Daniel Eklöf | 2019-07-04 | -38/+50 |
| | | ||||
| * | vt: implement save/restore cursor+attributes | Daniel Eklöf | 2019-07-04 | -0/+11 |
| | | ||||
| * | vt: handle graphical charset mode when printing a character | Daniel Eklöf | 2019-07-04 | -3/+20 |
| | | ||||
| * | vt: track charsets G0-G3 and support either ASCII or graphical mode | Daniel Eklöf | 2019-07-04 | -15/+12 |
| | | ||||
| * | main: handle EINTR in poll() | Daniel Eklöf | 2019-07-04 | -0/+3 |
| | | ||||
| * | csi: ignore 'blinking cursor' private mode | Daniel Eklöf | 2019-07-04 | -2/+2 |
| | | ||||
| * | csi: fix parsing of 256-color and 24-bit color SGRs | Daniel Eklöf | 2019-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 data | Daniel Eklöf | 2019-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 colors | Daniel Eklöf | 2019-07-04 | -2/+2 |
| | | ||||
| * | vt: bug fix: clear utf-8 state after printing a utf-8 character | Daniel Eklöf | 2019-07-04 | -0/+1 |
| | | ||||
| * | Merge branch 'fast-scroll' | Daniel Eklöf | 2019-07-03 | -250/+607 |
| |\ | ||||
| | * | csi: fix bug: cursor horizontal absolute (<ESC> Pn G) was off-by-one | Daniel Eklöf | 2019-07-03 | -6/+2 |
| | | | ||||
| | * | csi: cleanup | Daniel Eklöf | 2019-07-03 | -18/+3 |
| | | | ||||
| | * | csi: ?r and ?s are like ?h and ?l; they save/restore things | Daniel Eklöf | 2019-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öf | 2019-07-03 | -3/+4 |
| | | | | | | | | | | | Default is auto-margins enabled (scroll when cursor reaches right margin). | |||
| | * | vt: implement (untested!) insert mode | Daniel Eklöf | 2019-07-03 | -8/+19 |
| | | | | | | | | | \E4l is not horizontal index, but disable INSERT mode | |||
| | * | logging: disable debug logging by default | Daniel Eklöf | 2019-07-03 | -8/+8 |
| | | | ||||
| | * | vt: recognize ESC(0 - switch character set | Daniel Eklöf | 2019-07-03 | -0/+19 |
| | | | ||||
| | * | vt: always log unimplemented as warnings, not errors | Daniel Eklöf | 2019-07-03 | -2/+3 |
| | | | ||||
| | * | vt: fix logging of ESC intermediates and parameters | Daniel Eklöf | 2019-07-03 | -1/+1 |
| | | | ||||
| | * | csi: add unknown private escapes 's' and 'r', seen with ncmpcpp | Daniel Eklöf | 2019-07-03 | -0/+7 |
| | | | ||||
| | * | csi: recognize ?1005 and ?1015 private CSIs | Daniel Eklöf | 2019-07-03 | -0/+16 |
| | | | ||||
| | * | csi: fix cursor positioning | Daniel Eklöf | 2019-07-03 | -1/+1 |
| | | | ||||
| | * | csi: implement 'erase characters' (CSI X) | Daniel Eklöf | 2019-07-03 | -0/+11 |
| | | | ||||
| | * | main: mitigate screen flashes on slow client | Daniel Eklöf | 2019-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 unimplemented | Daniel Eklöf | 2019-07-03 | -0/+8 |
| | | | ||||
| | * | csi: add untested implementation of "horizontal index" | Daniel Eklöf | 2019-07-03 | -0/+11 |
| | | | ||||
