| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| * | main: fallback for strikeout positioning seems to work | Daniel Eklöf | 2019-07-16 | -2/+0 | |
| | | |||||
| * | render: implement strikeout | Daniel Eklöf | 2019-07-16 | -4/+45 | |
| | | |||||
| * | render: implement 'underline' | Daniel Eklöf | 2019-07-16 | -33/+85 | |
| | | |||||
| * | render: implement 'dim' | Daniel Eklöf | 2019-07-16 | -49/+27 | |
| | | |||||
| * | csi: move 'dim' attribute from 'vt' to cell attributes | Daniel Eklöf | 2019-07-16 | -4/+3 | |
| | | |||||
| * | csi: add back 'blink' attribute | Daniel Eklöf | 2019-07-16 | -3/+3 | |
| | | |||||
| * | terminal: foreground/background in cell attributes are now uint32_t | Daniel Eklöf | 2019-07-16 | -62/+123 | |
| | | | | | This reduces the cell size, and thus improves the cache behavour | ||||
| * | csi: implement \E[21m (disable bold) | Daniel Eklöf | 2019-07-16 | -0/+1 | |
| | | |||||
| * | conf: initial support for configuration file | Daniel Eklöf | 2019-07-16 | -7/+200 | |
| | | | | | | | | * Look for configuration file in (in this order): - XDG_CONFIG_HOME/footrc - ~/.config/footrc * Currently supports setting the font | ||||
| * | main: default font is 'monospace' | Daniel Eklöf | 2019-07-16 | -1/+1 | |
| | | |||||
| * | csi: implement FocusIn/Out events | Daniel Eklöf | 2019-07-16 | -0/+29 | |
| | | |||||
| * | csi: recognize, but mostly ignore, cursor style configuration | Daniel Eklöf | 2019-07-16 | -0/+32 | |
| | | |||||
| * | csi: add missing 'break' | Daniel Eklöf | 2019-07-16 | -0/+1 | |
| | | |||||
| * | osc: recognize, but ignore, 112 (reset text cursor color) | Daniel Eklöf | 2019-07-16 | -0/+1 | |
| | | |||||
| * | add PKGBUILD (for arch) | Daniel Eklöf | 2019-07-15 | -0/+28 | |
| | | |||||
| * | meson: install foot.desktop | Daniel Eklöf | 2019-07-15 | -0/+2 | |
| | | |||||
| * | Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere | Daniel Eklöf | 2019-07-15 | -13/+16 | |
| | | |||||
| * | vt: add vt_to_slave() | Daniel Eklöf | 2019-07-15 | -0/+22 | |
| | | |||||
| * | Add .desktop file | Daniel Eklöf | 2019-07-15 | -0/+18 | |
| | | |||||
| * | csi: remove debug logging | Daniel Eklöf | 2019-07-15 | -6/+0 | |
| | | |||||
| * | csi: erase alt screen before activating it | Daniel Eklöf | 2019-07-15 | -2/+4 | |
| | | |||||
| * | csi: 'X': then 'end' parameter in term_erase() is *inclusive* | Daniel Eklöf | 2019-07-15 | -1/+1 | |
| | | |||||
| * | vt: there are NULL entries in the alternate charset | Daniel Eklöf | 2019-07-15 | -1/+3 | |
| | | |||||
| * | vt: \EB and \E0 have an optional "private", not param (which are CSI only) | Daniel Eklöf | 2019-07-15 | -2/+4 | |
| | | |||||
| * | main: set TERM=xterm-direct | Daniel Eklöf | 2019-07-15 | -0/+1 | |
| | | |||||
| * | csi: implement ':'-separated 24-bit color values | Daniel Eklöf | 2019-07-15 | -6/+70 | |
| | | |||||
| * | vt: handle ':'-separated sub parameters correctly | Daniel Eklöf | 2019-07-15 | -16/+12 | |
| | | |||||
| * | vt: implement SI/SO (shift in, shift out) | Daniel Eklöf | 2019-07-15 | -0/+10 | |
| | | | | | This enables switching between the G0 and G1 charsets. | ||||
| * | rename project to 'foot' | Daniel Eklöf | 2019-07-11 | -4/+4 | |
| | | |||||
| * | scrollback: limit maximum number of lines one can scrollback at once | Daniel Eklöf | 2019-07-11 | -5/+2 | |
| | | |||||
| * | scrollback: fix assertions in debug builds; need to wrap row number | Daniel Eklöf | 2019-07-11 | -2/+2 | |
| | | |||||
| * | input: cancel selection on any mouse *except* BTN_LEFT | Daniel Eklöf | 2019-07-11 | -1/+1 | |
| | | |||||
| * | 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. | ||||
