aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
* main: fallback for strikeout positioning seems to workDaniel Eklöf2019-07-16-2/+0
|
* render: implement strikeoutDaniel Eklöf2019-07-16-4/+45
|
* render: implement 'underline'Daniel Eklöf2019-07-16-33/+85
|
* render: implement 'dim'Daniel Eklöf2019-07-16-49/+27
|
* csi: move 'dim' attribute from 'vt' to cell attributesDaniel Eklöf2019-07-16-4/+3
|
* csi: add back 'blink' attributeDaniel Eklöf2019-07-16-3/+3
|
* terminal: foreground/background in cell attributes are now uint32_tDaniel Eklöf2019-07-16-62/+123
| | | | This reduces the cell size, and thus improves the cache behavour
* csi: implement \E[21m (disable bold)Daniel Eklöf2019-07-16-0/+1
|
* conf: initial support for configuration fileDaniel Eklöf2019-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öf2019-07-16-1/+1
|
* csi: implement FocusIn/Out eventsDaniel Eklöf2019-07-16-0/+29
|
* csi: recognize, but mostly ignore, cursor style configurationDaniel Eklöf2019-07-16-0/+32
|
* csi: add missing 'break'Daniel Eklöf2019-07-16-0/+1
|
* osc: recognize, but ignore, 112 (reset text cursor color)Daniel Eklöf2019-07-16-0/+1
|
* add PKGBUILD (for arch)Daniel Eklöf2019-07-15-0/+28
|
* meson: install foot.desktopDaniel Eklöf2019-07-15-0/+2
|
* Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhereDaniel Eklöf2019-07-15-13/+16
|
* vt: add vt_to_slave()Daniel Eklöf2019-07-15-0/+22
|
* Add .desktop fileDaniel Eklöf2019-07-15-0/+18
|
* csi: remove debug loggingDaniel Eklöf2019-07-15-6/+0
|
* csi: erase alt screen before activating itDaniel Eklöf2019-07-15-2/+4
|
* csi: 'X': then 'end' parameter in term_erase() is *inclusive*Daniel Eklöf2019-07-15-1/+1
|
* vt: there are NULL entries in the alternate charsetDaniel Eklöf2019-07-15-1/+3
|
* vt: \EB and \E0 have an optional "private", not param (which are CSI only)Daniel Eklöf2019-07-15-2/+4
|
* main: set TERM=xterm-directDaniel Eklöf2019-07-15-0/+1
|
* csi: implement ':'-separated 24-bit color valuesDaniel Eklöf2019-07-15-6/+70
|
* vt: handle ':'-separated sub parameters correctlyDaniel Eklöf2019-07-15-16/+12
|
* vt: implement SI/SO (shift in, shift out)Daniel Eklöf2019-07-15-0/+10
| | | | This enables switching between the G0 and G1 charsets.
* rename project to 'foot'Daniel Eklöf2019-07-11-4/+4
|
* scrollback: limit maximum number of lines one can scrollback at onceDaniel Eklöf2019-07-11-5/+2
|
* scrollback: fix assertions in debug builds; need to wrap row numberDaniel Eklöf2019-07-11-2/+2
|
* input: cancel selection on any mouse *except* BTN_LEFTDaniel Eklöf2019-07-11-1/+1
|
* 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.