| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | meson/pkgbuild: bump to 1.4.21.4.2 | Daniel Eklöf | 2020-07-23 | -2/+2 |
| | | ||||
| * | changelog: prepare for 1.4.2 | Daniel Eklöf | 2020-07-23 | -8/+3 |
| | | ||||
| * | Merge branch 'master' into releases/1.4 | Daniel Eklöf | 2020-07-23 | -8/+31 |
| |\ | ||||
| | * | sixel: remove sixel-to-be-splitted *before* splitting it | Daniel Eklöf | 2020-07-23 | -4/+10 |
| | | | | | | | | | | | This fixes an assertion in debug builds, due to the pre-splitted and splitted sixels overlapping. | |||
| | * | sixel: overwrite: use target sixel's height, not cell height | Daniel Eklöf | 2020-07-23 | -2/+6 |
| | | | | | | | | | | | | | | | When copying the image data for the left and right parts of the splitted images, use the sixel's height, not the cell height. This fixes a crash when the sixel didn't cover the entire cell height. | |||
| | * | render: bump maximum window title length from 100 to 2048 (bytes) | Daniel Eklöf | 2020-07-22 | -2/+6 |
| | | | | | | | | | Apparently, the max is ~8K, but lets stay on the safe side. | |||
| | * | changelog: add new 'unreleased' section | Daniel Eklöf | 2020-07-22 | -0/+9 |
| | | | ||||
| | * | Merge branch 'releases/1.4' | Daniel Eklöf | 2020-07-22 | -8/+8 |
| | |\ | |/ |/| | ||||
| * | | meson/pkgbuild: bump version to 1.4.11.4.1 | Daniel Eklöf | 2020-07-22 | -2/+2 |
| | | | ||||
| * | | changelog: prepare or 1.4.1 | Daniel Eklöf | 2020-07-22 | -6/+6 |
| | | | ||||
| * | | Merge branch 'master' into releases/1.4 | Daniel Eklöf | 2020-07-22 | -6/+18 |
| |\| | ||||
| | * | input: pipe: avoid goto's where variables may be uninitialized | Daniel Eklöf | 2020-07-22 | -6/+9 |
| | | | ||||
| | * | changelog: add a new 'unreleased' section | Daniel Eklöf | 2020-07-22 | -0/+9 |
| | | | ||||
| | * | Merge branch 'releases/1.4' | Daniel Eklöf | 2020-07-22 | -11/+6 |
| | |\ | |/ |/| | ||||
| * | | meson/pkgbuild: bump version to 1.4.0, require fcft 2.2.21.4.0 | Daniel Eklöf | 2020-07-22 | -4/+4 |
| | | | ||||
| * | | changelog: prepare for 1.4.0 | Daniel Eklöf | 2020-07-22 | -7/+2 |
| |/ | ||||
| * | search: re-enable search-commit action | Daniel Eklöf | 2020-07-22 | -7/+5 |
| | | | | | | This was disabled while implementing multi-seat support, and I forgot to fix and re-enable before that feature was merged. | |||
| * | readme: 'special thanks' -> 'credits' | Daniel Eklöf | 2020-07-20 | -3/+3 |
| | | ||||
| * | Merge branch 'pipe-grid-to-external-tool' | Daniel Eklöf | 2020-07-17 | -302/+732 |
| |\ | | | | | | | Closes https://codeberg.org/dnkl/foot/issues/29 | |||
| | * | Merge branch 'master' into pipe-grid-to-external-tool | Daniel Eklöf | 2020-07-16 | -20/+51 |
| | |\ | |/ |/| | ||||
| * | | wayland: don't assume data-device globals are added before seats | Daniel Eklöf | 2020-07-16 | -18/+51 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we're handling the initial set of globals, the data-device and primary-selection-device objects may, or may not be registered before the seat(s). We need to handle both cases. When adding a seat, instantiate the data-device and primary-selection-device **if available**. When adding the device objects, instantiate them on **all** currently available seats. | |||
| * | | term: remove unused struct definition 'rgb' | Daniel Eklöf | 2020-07-16 | -2/+0 |
| | | | ||||
| | * | extract: finish: allocate buffer before writing the terminator | Daniel Eklöf | 2020-07-16 | -18/+19 |
| | | | | | | | | | | | When all cells were empty, we'll have written 0 bytes to the buffer and hence it will still be un-allocated (i.e. NULL). | |||
| | * | Merge branch 'master' into pipe-grid-to-external-tool | Daniel Eklöf | 2020-07-16 | -19/+46 |
| | |\ | |/ |/| | ||||
| * | | term: line-wrap: don't move cursor outside the grid | Daniel Eklöf | 2020-07-16 | -4/+7 |
| | | | | | | | | | | | | | | | | | Remove assertion that row be less than the scrolling region end. The cursor may in fact be *inside* the margin. Inside the margin, content never scrolls, but we must make sure we don't move the cursor outside the grid. | |||
| * | | sixel: verify list order: fix assertion when two sixels are on the same row | Daniel Eklöf | 2020-07-16 | -2/+22 |
| | | | | | | | | | | | Two sixel may in fact exist on the same row, assuming their columns don't overlap. | |||
| * | | csi: never call term_print() with width <= 0 | Daniel Eklöf | 2020-07-16 | -2/+4 |
| | | | ||||
| * | | vt: never call term_print() with a width <= 0 | Daniel Eklöf | 2020-07-16 | -3/+3 |
| | | | ||||
| * | | vt: ignore 0x7f (DEL) in ground state | Daniel Eklöf | 2020-07-16 | -1/+4 |
| | | | | | | | | | | | | | | | This ensures *all* bytes mapped to action_print() have wcwidth == 1. DEL has wcwidth == -1, and would thus have been ignored by term_print() anwyway. | |||
| * | | vt: utf8: handle multi-column spacer values correctly when combining | Daniel Eklöf | 2020-07-16 | -6/+3 |
| | | | ||||
| * | | Merge pull request 'limit font size to non-negative values' | Daniel Eklöf | 2020-07-15 | -1/+3 |
| |\ \ | | | | | | | | | | Closes https://codeberg.org/dnkl/foot/issues/38 | |||
| | * | | added font-size limitting to changelog | Max Hollmann | 2020-07-15 | -0/+2 |
| | | | | ||||
| | * | | limit font size to non-negative values | Max Hollmann | 2020-07-15 | -1/+1 |
| |/ / | ||||
| | * | changelog: use bemenu instead of fuzzel in pipe-visible example | Daniel Eklöf | 2020-07-15 | -1/+1 |
| | | | ||||
| | * | input: pipe-{visible,scrollback}: redirect stdout/stderr to /dev/null | Daniel Eklöf | 2020-07-15 | -1/+13 |
| | | | ||||
| | * | footrc: add pipe-visible and pipe-scrollback | Daniel Eklöf | 2020-07-15 | -0/+2 |
| | | | ||||
| | * | doc: foot.5: change pipe-visible example to use bemenu instead of fuzzel | Daniel Eklöf | 2020-07-15 | -1/+1 |
| | | | ||||
| | * | changelog: minor | Daniel Eklöf | 2020-07-15 | -1/+1 |
| | | | ||||
| | * | changelog: document pipe-visible and pipe-scrollback bindings | Daniel Eklöf | 2020-07-15 | -0/+4 |
| | | | ||||
| | * | doc: foot.5: document pipe-visible and pipe-scrollback | Daniel Eklöf | 2020-07-15 | -0/+17 |
| | | | ||||
| | * | config: oopsie, need to use strndup() on the pipe command | Daniel Eklöf | 2020-07-15 | -1/+1 |
| | | | | | | | | | Since it isn't NULL-terminated. | |||
| | * | config: change syntax for pipe-command in key binding | Daniel Eklöf | 2020-07-15 | -7/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pipe command can contain almost all printable characters. In particular, we can expect it to contain '='. Having the pipe command as part of the key breaks the key/value splitting. Change it so that it is instead an optional initial part of the value, enclosed in '[]'. I.e. instead of pipe-visible:cmd=binding we now need to write pipe-visible=[cmd] binding | |||
| | * | input: comments | Daniel Eklöf | 2020-07-15 | -1/+3 |
| | | | ||||
| | * | conf: bindings: allow several mappings for the same action | Daniel Eklöf | 2020-07-15 | -87/+166 |
| | | | | | | | | | | | If the bindings has different pipe command associated with them, treat them as different actions. | |||
| | * | input: wip: initial support for piping scrollback/view to external tools | Daniel Eklöf | 2020-07-15 | -8/+133 |
| | | | ||||
| | * | spawn: add optional stdin/stdout/stderr redirection FDs | Daniel Eklöf | 2020-07-15 | -5/+11 |
| | | | | | | | | | | | If not -1, spawn() will redirect the child's stdin/stdout/stderr to these FDs. | |||
| | * | config: add support for appending a 'spawn' argument to key bindings | Daniel Eklöf | 2020-07-15 | -3/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | A key binding may now have an optional ':<cmd>' string appended to the key. This is intended to be used like so: pipe-scrollback:sh -c "cat > file"=Print TODO: we still only allow one *action*. Meaning you still cannot specify multiple pipe-scrollback bindings, for example. | |||
| | * | input: parse_key_binding: free key-codes list if 'bindings' is NULL | Daniel Eklöf | 2020-07-15 | -1/+3 |
| | | | ||||
| | * | term: break out fork+exec functionality to a separate file | Daniel Eklöf | 2020-07-15 | -53/+82 |
| | | | ||||
| | * | term: add term_scrollback_to_text() and term_view_to_text() | Daniel Eklöf | 2020-07-15 | -2/+62 |
| | | | | | | | | | | | These functions extract the current view, or the entire scrollback as an UTF-8 encoded byte buffer. | |||
| | * | extract: extract_one() sets a fail flag that extract_finish() reads | Daniel Eklöf | 2020-07-15 | -7/+19 |
| | | | | | | | | | | | | | This allows us to safely call extract_finish() when extract_one() failed, and we'll get the expected result; false, indicating extract_finish() failed. | |||
| | * | selection: provide a const-wrapper for extract_one() | Daniel Eklöf | 2020-07-15 | -1/+9 |
| | | | | | | | | | | | extract_one() takes const pointers, while the callback argument to foreach() expects non-const. | |||
| | * | extract: extract_one: make arguments const | Daniel Eklöf | 2020-07-15 | -4/+7 |
| | | | ||||
| | * | selection: refactor: break out text extraction to a separate file | Daniel Eklöf | 2020-07-15 | -170/+203 |
| | | | ||||
| | * | conf: add definitions for pipe-{scrollback,view} bindings | Daniel Eklöf | 2020-07-15 | -0/+9 |
| |/ | ||||
| * | Revert "wiki: testing" | Daniel Eklöf | 2020-07-15 | -1/+0 |
| | | | | | This reverts commit b2dec8db164645cebb82a114564ce231518e6494. | |||
| * | wiki: testing | Daniel Eklöf | 2020-07-15 | -0/+1 |
| | | ||||
| * | selection: don't skip SPACER cells in the generic foreach() | Daniel Eklöf | 2020-07-15 | -4/+3 |
| | | | | | | | | | As that breaks e.g. selection marking (SPACER cells didn't get inverted when rendered). Instead, skip them in extract_one() only. I.e. when copying text from the grid. | |||
| * | selection: row->dirty is a boolean | Daniel Eklöf | 2020-07-15 | -2/+3 |
| | | ||||
| * | term: don't re-render last cursor cell if cursor was hidden | Daniel Eklöf | 2020-07-15 | -1/+3 |
| | | ||||
| * | Merge branch 'multi-column-special-spacer-value' | Daniel Eklöf | 2020-07-15 | -55/+69 |
| |\ | ||||
| | * | term: print: don't pad with spacers if auto-margin is disabled | Daniel Eklöf | 2020-07-15 | -1/+1 |
| | | | ||||
| | * | grid: reflow: use macro print_spacer() to insert multi-column character spacers | Daniel Eklöf | 2020-07-14 | -8/+11 |
| | | | ||||
| | * | term: copy current VT attributes to multi-column spacer cells | Daniel Eklöf | 2020-07-14 | -9/+14 |
| | | | | | | | | | | | And refactor: break out spacer-writing code to a function, since we do exactly the same thing in two places. | |||
| | * | selection: no need to try to detect multi-column chars at the end of the line | Daniel Eklöf | 2020-07-14 | -16/+1 |
| | | | | | | | | | | | This is handled by the generic foreach() functions, which now simply skips spacer cells. | |||
| | * | grid: reflow: handle multi column character spacers | Daniel Eklöf | 2020-07-14 | -2/+22 |
| | | | | | | | | | | | | | | | | | | | Ignore *old* cells containing spacers. Pad new grid with spacers if a multi-column character doesn't fit at the end of a line. Insert spacers after a multi-column character. | |||
| | * | term: print: linewrap + insert *before* inserting SPACERS | Daniel Eklöf | 2020-07-14 | -3/+4 |
| | | | | | | | | | Otherwise we end up overwriting the character in the last column | |||
| | * | term: print: write special value CELL_MULT_COL_SPACER to extra cells | Daniel Eklöf | 2020-07-14 | -17/+16 |
| | | | | | | | | | | | | | When printing a multi-column character, write CELL_MULT_COL_SPACER instead of '0' to both padding cells (when character doesn't fit at the end of the line), and to the cells following the actual character. | |||
| | * | term: rename COMB_CHARS_LO,HI -> CELL_COMB_CHARS_LO,HI | Daniel Eklöf | 2020-07-14 | -13/+14 |
| |/ | ||||
| * | selection: recognize empty padding cells in a forced linewrap | Daniel Eklöf | 2020-07-14 | -9/+45 |
| | | | | | | | | | | | | | | | When printing a multi-column character at the end of the line, and it doesn't fit, we currently insert a forced line-wrap. This means the last character(s) on the previous line will be empty, followed by a multi-column character in the first cell on the next line. Without special code to handle this, the selection text extraction code will insert a hard newline, since this is normally the correct thing to do. Add a TODO, to consider writing a special place holder value to these padding cells. | |||
| * | selection: foreach: don't call callback for trailing multi-character cells | Daniel Eklöf | 2020-07-14 | -1/+6 |
| | | ||||
| * | changelog: 'not' -> 'now' | Daniel Eklöf | 2020-07-14 | -1/+1 |
| | | ||||
| * | grid: reflow: always emit *all* cells of a multi-column character | Daniel Eklöf | 2020-07-14 | -1/+7 |
| | | ||||
| * | term: remove assert, as we're already checking for this in the loop condition | Daniel Eklöf | 2020-07-14 | -1/+0 |
| | | ||||
| * | term: print: manually increment cursor column | Daniel Eklöf | 2020-07-14 | -3/+4 |
| | | | | | | We know we're within bounds, and thus we don't need the extra overhead of term_cursor_right(). | |||
| * | grid: reflow: use width=1 for invalid characters | Daniel Eklöf | 2020-07-14 | -1/+1 |
| | | ||||
| * | term: line-wrap: need to update grid->cur_row when we did *not* scroll | Daniel Eklöf | 2020-07-14 | -0/+1 |
| | | ||||
| * | changelog: prefix all C0 names with 'C0::' | Daniel Eklöf | 2020-07-14 | -3/+3 |
| | | ||||
| * | term: print: also require width > 1 when checking if we need to force-wrap or not | Daniel Eklöf | 2020-07-14 | -1/+3 |
| | | | | | | | While this might seem like it would slow down things, it should in fact help the compiler optimize: the "normal" code path, that prints regular ASCII characters, always call term_print() with width == 1. | |||
| * | term: line-wrap: manually set cursor row+col | Daniel Eklöf | 2020-07-14 | -3/+7 |
| | | | | | | line-wrap is in the hot path, and term_cursor_down/left adds additional checks that we don't need. | |||
| * | grid: reflow: force line-wrap if a multi-column character does not fit on current line | Daniel Eklöf | 2020-07-14 | -14/+1 |
| | | ||||
| * | term: print: force line-wrap if a multi-column character does not fit on current line | Daniel Eklöf | 2020-07-14 | -0/+9 |
| | | ||||
| * | csi: DECAWM: clear LCF | Daniel Eklöf | 2020-07-14 | -0/+5 |
| | | ||||
| * | csi: IND+RI now clears LCF | Daniel Eklöf | 2020-07-14 | -0/+3 |
| | | ||||
| * | term: print: manually increment cursor column for multi-column chars | Daniel Eklöf | 2020-07-14 | -2/+2 |
| | | | | | | There's nothing wrong with using term_cursor_right(), but it is unnecessary since we already check for the end-of-line. | |||
| * | term: insert: move assert() after checking whether insert mode is enabled or not | Daniel Eklöf | 2020-07-14 | -2/+2 |
| | | ||||
| * | term: linefeed: explicitly clear LCF | Daniel Eklöf | 2020-07-14 | -2/+6 |
| | | | | | | | LF should always clear LCF. Previously, it was done implicitly in term_cursor_down(). I.e it was cleared as long as the cursor wasn't at the bottom of the scrolling region | |||
| * | vt: change HT (horizontal tab) to *not* clear LCF | Daniel Eklöf | 2020-07-14 | -0/+8 |
| | | | | | | | According to the specification, HT **should** clear LCF. However, nearly all emulators do not. In particular, XTerm doesn't. So we follow suite. | |||
| * | term: line-wrap: use term_cursor_{down,left} | Daniel Eklöf | 2020-07-14 | -4/+4 |
| | | ||||
| * | term: rename term_formfeed() -> term_carriage_return() | Daniel Eklöf | 2020-07-14 | -5/+9 |
| | | ||||
| * | vt: implement C0::FF - processed in the same way as C0::LF | Daniel Eklöf | 2020-07-14 | -0/+3 |
| | | ||||
| * | vt: process C0::VT the same way we process C0::LF | Daniel Eklöf | 2020-07-14 | -6/+5 |
| | | | | | | | | | Previously, C0::VT was implemented as a simple 'cursor down'. I.e. it would behave as LF **until** it reached the bottom of the screen, where instead of scrolling, it became a no-op. See https://vt100.net/docs/vt102-ug/chapter5.html | |||
| * | vt: sort C0's in the switch statement, and use escaped character possible | Daniel Eklöf | 2020-07-14 | -16/+16 |
| | | ||||
| * | input: keyboard: keymap: close(fd) on early-return when failing to mmap | Daniel Eklöf | 2020-07-14 | -0/+1 |
| | | ||||
| * | input: keyboard: keymap: use xkb_keymap_new_from_buffer() | Daniel Eklöf | 2020-07-14 | -2/+4 |
| | | ||||
| * | input: keyboard: detect failure to mmap keymap | Daniel Eklöf | 2020-07-14 | -0/+17 |
| | | ||||
| * | Merge branch 'merge-wl-surface-damage' | Daniel Eklöf | 2020-07-14 | -77/+100 |
| |\ | | | | | | | Closes #35 | |||
| | * | changelog: mention fix for 'too many wl_surface_damage_buffer()' calls | Daniel Eklöf | 2020-07-13 | -0/+2 |
| | | | ||||
| | * | wayland: configure: do a regular resize instead of a force resize | Daniel Eklöf | 2020-07-13 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The commit log says that was needed to get tiling in GNOME working. However, I don't know *which* extension that was. Force resizing in a configure event means we'll trash a perfectly valid buffer on e.g. 'activated' state changes. So, let's revert this for now, and if this breaks GNOME, let's try to find another solution. If worse comes to worse, we can detect if we're running under GNOME and do a force-resize then, but not on sane compositors. | |||
| | * | term: set_fonts: describe why we force resize | Daniel Eklöf | 2020-07-13 | -0/+1 |
| | | | ||||
