| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Merge branch 'remove-deprecated-things' | Daniel Eklöf | 2020-12-09 | -116/+11 |
| |\ | ||||
| | * | config: remove support for scrollback-up and scrollback-down | Daniel Eklöf | 2020-12-08 | -51/+3 |
| | | | ||||
| | * | config: remove support for default.geometry | Daniel Eklöf | 2020-12-08 | -16/+2 |
| | | | ||||
| | * | config: remove support for default.scrollback | Daniel Eklöf | 2020-12-08 | -22/+1 |
| | | | ||||
| | * | config: remove support for loading configuration from footrc | Daniel Eklöf | 2020-12-08 | -26/+4 |
| | | | ||||
| | * | completions: zsh: foot: fix default path of foot.ini | Daniel Eklöf | 2020-12-08 | -1/+1 |
| | | | ||||
| * | | changelog: don’t repeat ‘IME’ | Daniel Eklöf | 2020-12-08 | -1/+1 |
| | | | ||||
| * | | changelog: add missing space in escape sequence | Daniel Eklöf | 2020-12-08 | -1/+1 |
| | | | ||||
| * | | changelog: consistently use ‘CSI ? X h/l’ instead of `\E[?Xh/l` | Daniel Eklöf | 2020-12-08 | -5/+5 |
| | | | ||||
| * | | Merge branch 'input-method-editor' | Daniel Eklöf | 2020-12-08 | -83/+1085 |
| |\ \ | |/ |/| | | | Closes #134 | |||
| | * | install: simplify sentence | Daniel Eklöf | 2020-12-08 | -1/+1 |
| | | | ||||
| | * | render: ime: ensure cursor is visible | Daniel Eklöf | 2020-12-08 | -13/+41 |
| | | | ||||
| | * | changelog: DECSET 737769 - enable/disable IME | Daniel Eklöf | 2020-12-07 | -0/+3 |
| | | | ||||
| | * | render: search: render IME pre-edit text correctly, hopefully | Daniel Eklöf | 2020-12-07 | -61/+116 |
| | | | ||||
| | * | ime: don’t underline characters inside the cursor-box | Daniel Eklöf | 2020-12-07 | -117/+123 |
| | | | ||||
| | * | search: reset IME state when entering/exiting search mode | Daniel Eklöf | 2020-12-07 | -0/+12 |
| | | | ||||
| | * | render: ime: adjust cursor cell index when adjusting glyph offset | Daniel Eklöf | 2020-12-07 | -1/+4 |
| | | | ||||
| | * | render: ime: wip: pre-edit | Daniel Eklöf | 2020-12-07 | -22/+75 |
| | | | ||||
| | * | ime: call render_refresh_search() instead of render_refresh() | Daniel Eklöf | 2020-12-07 | -2/+8 |
| | | | | | | | | | When scrollback search is active | |||
| | * | ime: store wchar version of pre-edit string in terminal struct | Daniel Eklöf | 2020-12-07 | -4/+8 |
| | | | ||||
| | * | render: search: don’t access term->search.buf[] directly | Daniel Eklöf | 2020-12-07 | -8/+11 |
| | | | ||||
| | * | render: codespell: cound -> count | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | render: search: glyph_offset is in *cells*, cursor position in *characters* | Daniel Eklöf | 2020-12-07 | -18/+70 |
| | | | | | | | | | | | | | When calculating the offset into the search string, from where to start rendering, take into account that the cursor position is in *characters*, and the glyph-offset is in *cells*. | |||
| | * | render: search: wcsnlen() -> wcswidth() | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | render: search: handle multi-column characters | Daniel Eklöf | 2020-12-07 | -2/+3 |
| | | | ||||
| | * | render: search: render colorized glyphs (emojis) correctly | Daniel Eklöf | 2020-12-07 | -5/+13 |
| | | | ||||
| | * | ime: commit text using search_add_chars() while in scrollback search mode | Daniel Eklöf | 2020-12-07 | -7/+8 |
| | | | ||||
| | * | search: new function: search_add_chars() | Daniel Eklöf | 2020-12-07 | -4/+5 |
| | | | | | | | | | | | This function inserts a string into the search buffer, at the current insertion point (i.e. where the cursor is). | |||
| | * | ime: don’t commit to the slave while scrollback searching | Daniel Eklöf | 2020-12-07 | -5/+9 |
| | | | ||||
| | * | render: ime: don’t render pre-edit string in grid while searching | Daniel Eklöf | 2020-12-07 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | While doing a scrollback search, the pre-edit string should be rendered in the search box, not in the grid. Note that we don’t yet support IME in scrollback search mode. This patch simply prevents the pre-edit text being rendered in the grid, in the “background”, while searching. | |||
| | * | install: highlight option default value in options list | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | install: highlight option name in options list | Daniel Eklöf | 2020-12-07 | -3/+3 |
| | | | ||||
| | * | changelog: ime: add link to INSTALL.md | Daniel Eklöf | 2020-12-07 | -1/+3 |
| | | | ||||
| | * | install: add ‘options’ section, describing compile-time options | Daniel Eklöf | 2020-12-07 | -0/+10 |
| | | | ||||
| | * | changelog: IME support | Daniel Eklöf | 2020-12-07 | -0/+1 |
| | | | ||||
| | * | csi: add DECSET 737769 - enables/disables IME input | Daniel Eklöf | 2020-12-07 | -0/+10 |
| | | | | | | | | | 73 77 69 = I M E | |||
| | * | codespell: currenly -> currently, second instance | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | codespell: currenly -> currently | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | features: include compile-time enable/disable state of features when printing version | Daniel Eklöf | 2020-12-07 | -3/+37 |
| | | | ||||
| | * | render: ime: draw a ‘bar’ cursor when the pre-edit cursor’s begin == end | Daniel Eklöf | 2020-12-07 | -6/+14 |
| | | | ||||
| | * | shm: fix badly indented function return type | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | ime: add functions to enable/disable IME, simplify code that enables IME | Daniel Eklöf | 2020-12-07 | -47/+121 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We may want to be able to enable/disable IME run-time, even though we have received an ‘enter’ IME event. This enables us to do that. Also add functions to enable/disable IME on a per-terminal instance basis. A terminal may have multiple seats focusing it, and enabling/disabling IME in a terminal instance enables/disables IME on all those seats. Finally, the code to enable IME is simplified; the *only* surface that can ever receive ‘enter’ IME events is the main grid. All other surfaces are sub-surfaces, without their own keyboard focus. | |||
| | * | ime: expand cursor cell-end across multi-cell characters | Daniel Eklöf | 2020-12-07 | -0/+7 |
| | | | | | | | | | | | This fixes an issue where the cursor ended in the middle of e.g double width characters. | |||
| | * | ime: don’t adjust cursor’s cell-end if it’s equal to the cell-begin | Daniel Eklöf | 2020-12-07 | -6/+12 |
| | | | ||||
| | * | ime: set cursor end correctly when it ends *after* the pre-edit string | Daniel Eklöf | 2020-12-07 | -0/+3 |
| | | | ||||
| | * | ime: use correct index when calculating number of *cells* to advance | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | render: ime: don’t render cursor if cursor begin == end | Daniel Eklöf | 2020-12-07 | -3/+4 |
| | | | ||||
| | * | render: ime: calculate on-screen cursor position ourselves | Daniel Eklöf | 2020-12-07 | -3/+12 |
| | | | | | | | | | | | | | | | | | The position calculated by render_grid() may be -1,-1 if the cursor is currently hidden. This fixes a crash when trying to input IME while the cursor is hidden. | |||
| | * | ime: calculate wchar widths once | Daniel Eklöf | 2020-12-07 | -3/+8 |
| | | | ||||
| | * | render: ignore IME preedit state when deciding which cursor style to render | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | | ||||
| | * | ime: make IME compile-time optional | Daniel Eklöf | 2020-12-07 | -29/+103 |
| | | | ||||
| | * | ime: render pre-edit text | Daniel Eklöf | 2020-12-07 | -52/+356 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done by allocating cells for the pre-edit text when receiving the text-input::done() call, and populating them by converting the utf-8 formatted pre-edit text to wchars. We also convert the pre-edit cursor position to cell positions (it can cover multiple cells). When rendering, we simply render the pre-edit cells on-top off the regular grid. While doing so, we also mark the underlying, “real”, cells as dirty, to ensure they are re-rendered when the pre-edit text is modified or removed. | |||
| | * | ime: wip: commit all changes in ‘done()’ | Daniel Eklöf | 2020-12-07 | -6/+64 |
| | | | ||||
| | * | ime: feed committed string to client application | Daniel Eklöf | 2020-12-07 | -0/+4 |
| | | | ||||
| | * | ime: disable text-input on surface leave | Daniel Eklöf | 2020-12-07 | -2/+4 |
| | | | ||||
| | * | ime: wip: add text-input object to seat | Daniel Eklöf | 2020-12-07 | -0/+147 |
| |/ | ||||
| * | changelog: DECSET 27127 - modifies Esc to send \E[27127~ instead of \E | Daniel Eklöf | 2020-12-07 | -0/+3 |
| | | ||||
| * | Merge branch 'allow-key-collision-if-action-is-the-same' | Daniel Eklöf | 2020-12-07 | -4/+17 |
| |\ | | | | | | | Closes #233 | |||
| | * | config: ignore “self” when detecting key binding collisions | Daniel Eklöf | 2020-12-05 | -4/+17 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | Previously, foot would not accept the following: [key-bindings] minimize=Escape minimize=Escape Now it does. I.e. key combos in the action being updated are ignored when detecting collisions. The example above is contrived; a real world example could be to remove certain combos from an action with multiple combos; perhaps to free up a combo for another action. Example: [search-bindings] cancel=Escape This would previously cause an error since `cancel=Control+g Escape` by default. Closes #233 | |||
| * | changelog: remove ‘crash when pasting non-textual clipboard content’ | Daniel Eklöf | 2020-12-05 | -4/+0 |
| | | | | | This crash doesn’t not exist in any release versions. | |||
| * | fdm: do *not* keep polling on EINTR | Daniel Eklöf | 2020-12-04 | -5/+4 |
| | | | | | | | This fixes an issue where foot --server did not exit on SIGINT. This happened because we never returned out from fdm_poll(), and thus we never saw ‘aborted’ being set. | |||
| * | Merge branch 'releases/1.5' | Daniel Eklöf | 2020-12-01 | -15/+31 |
| |\ | ||||
| | * | meson/pkgbuild: bump version to 1.5.41.5.4releases/1.5 | Daniel Eklöf | 2020-12-01 | -2/+2 |
| | | | ||||
| | * | input: relax requirements for overriding keypad application mode | Daniel Eklöf | 2020-12-01 | -9/+1 |
| | | | | | | | | | | | | | Don’t require NumLock to be locked. Foot has no idea _which_ modifier the user has mapped NumLock to, meaning we really cannot require it to be locked. | |||
| | * | keymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiers | Daniel Eklöf | 2020-12-01 | -0/+16 |
| | | | ||||
| | * | doc: foot.5: minor highlighting fixes | Daniel Eklöf | 2020-12-01 | -5/+6 |
| | | | ||||
| | * | doc: foot.1: no need to say foot.ini twice | Daniel Eklöf | 2020-12-01 | -1/+1 |
| | | | ||||
| | * | changelog: update contributors | Daniel Eklöf | 2020-12-01 | -0/+5 |
| | | | ||||
| | * | render: don’t call term_arm_blink_timer() from multiple threads | Daniel Eklöf | 2020-12-01 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We call term_arm_blink_timer() from render_cell(), which runs in multiple threads. This caused multiple blink timer FDs to be created and registered with the FDM, later causing read failures after one of those FDs had been closed again. This rarely happened under normal circumstances, but was easy to trigger when the whole screen was full of blinking text. As a small optimization, we don’t bother taking the lock if the timer FD already is valid. This is safe, because: 1) If the timer FD isn’t valid, we take the lock and then call term_arm_blink_timer(), which again checks if the FD is already valid. 2) The blink timer FD cannot be closed while we’re rendering cells. It is only disabled in the FDM callback, which cannot execute while we’re rendering. | |||
| | * | sixel: fix crash when an explicit sixel size had a height less than 6 pixels | Daniel Eklöf | 2020-12-01 | -4/+2 |
| | | | ||||
| | * | client: fix handling of "-m" command-line flag | Craig Barnes | 2020-12-01 | -1/+2 |
| | | | ||||
| | * | render: allow-overflow: require a space in the next cell | Daniel Eklöf | 2020-12-01 | -1/+5 |
| | | | | | | | | | | | | | | | | | When checking if we should allow a single-width character double-width glyph to overflow into the next cell, require the next cell to either be empty, or contain a space. Closes #203 | |||
| | * | keymap: fix alt+return combos | Daniel Eklöf | 2020-12-01 | -11/+12 |
| | | | | | | | | | | | | | | | | | All alt+return combos mapped to the same escape sequence as alt+return itself. With this patch, alt+<mod(s)>+return map to a standard ‘CSI 27;x;13~’ sequence. | |||
| | * | keymap: use same lookup table for Tab and ISO_Left_Tab | Daniel Eklöf | 2020-12-01 | -7/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With XKB, Shift+Tab maps to XKB_KEY_ISO_Left_Tab, not XKB_Key_Tab. Previously, we had two different lookup tables for the two. The tab table was correctly populated, while the ISO-left tab wasn’t. As a result, all Shift+Tab combos (except Shift+Tab itself) was wrong, and resulted in the same escape sequence as Shift+Tab. Fix by using the same table for both tab and ISO-left tab. Closes #210 | |||
| | * | readme: don’t uppercase titles | Daniel Eklöf | 2020-12-01 | -2/+2 |
| | | | ||||
| | * | config: enable allow-overflowing-double-width-glyphs by default | Daniel Eklöf | 2020-12-01 | -5/+9 |
| | | | ||||
| | * | changelog: fix link to readme#keypad | Daniel Eklöf | 2020-12-01 | -2/+3 |
| | | | ||||
| | * | readme/doc:foot.1: document the (new) keypad behavior | Daniel Eklöf | 2020-12-01 | -1/+44 |
| | | | ||||
| | * | input: enforce ‘numerical’ keypad mode when Num Lock override is enabled | Daniel Eklöf | 2020-12-01 | -4/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When num lock override has been enabled via “CSI?1035h” (the default), keypad is always considered to be in ‘numerical’ mode. This affects how keypad keys are translated to escape sequences when Num Lock is active. The keypad has four modes: * Num Lock off, numerical mode * Num Lock off, application mode * Num Lock on, numerical mode * Num Lock on, application mode The keymap is identical for numerical and application mode when Num Lock is off, meaning the keypad effectively has three different modes. In XTerm, numerical and application mode _can_ be the same, **if** the ‘numLock’ resource is set to true (the default). It is only when ‘numLock’ is false that the application mode is actually used. This patch changes foot to do the same. We don’t expose an option, but do implement “CSI ? 1035”. Closes #194 | |||
| | * | input: track num lock state | Daniel Eklöf | 2020-12-01 | -0/+6 |
| | | | ||||
| | * | csi: implement “CSI ? 1035” - toggle Num Lock override | Daniel Eklöf | 2020-12-01 | -0/+12 |
| | | | | | | | | | | | This adds a num_lock_modifier state to the terminal, and hooks up “CSI?1035h/l” to toggle it. | |||
| | * | input: use XKB_MOD_NAME_* macros instead of hard-coded strings | Daniel Eklöf | 2020-12-01 | -4/+4 |
| | | | ||||
| | * | wayland: preempt render scheduling in ‘configure’ events | Daniel Eklöf | 2020-12-01 | -5/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A configure event must be “committed”. In case of resizing, that means rendering a new frame and committing that surface. render_resize() will resize the grid and *schedule* a render refresh. However, if one is already pending, the refresh will take a very (relatively) long time - until the next frame callback is received. This poses a problem when the window is hidden, since in this case, the frame callback *never* comes. This in turn means we fail to commit a new surface in response to the ‘configure’ event. And that means the compositor needs to wait for a transaction timeout before continuing. The end effect is very slow and jerky window resizing when a hidden foot window is being resized. This can happen in tiled compositors, like Sway, where a window can be tabbed (and thus invisible), but still resized when its container is resized. Closes #190 | |||
| | * | changelog: add entry for 1.5.4 | Daniel Eklöf | 2020-12-01 | -0/+7 |
| | | | ||||
| * | | Merge branch 'modify-escape-key' | Daniel Eklöf | 2020-12-01 | -1/+16 |
| |\ \ | | | | | | | | | | Closes #225 | |||
| | * | | csi: add new private mode that makes the Escape key emit "\E[27;1;27~" | Craig Barnes | 2020-11-29 | -1/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mode can be set by client programs with the DECSET, DECRST, XTSAVE and XTRESTORE sequences by using 27127 as the parameter. The sequence "\E[27;1;27~" is encoded in the same way as is done by xterm's "modifyOtherKeys" mode. Even though xterm itself never emits such a sequence for the Escape key, many programs already have support for parsing this style of key sequence. | |||
| * | | | Merge branch 'clipboard-ignore-unhandled-mime-types' | Daniel Eklöf | 2020-12-01 | -2/+8 |
| |\ \ \ | | | | | | | | | | | | | Closes #230 | |||
| | * | | | selection: do not try to paste un-handled mime types | Daniel Eklöf | 2020-11-30 | -2/+8 |
| | | | | | | | | | | | | | | | | | Closes #230 | |||
| * | | | | input: relax requirements for overriding keypad application mode | Daniel Eklöf | 2020-12-01 | -9/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Don’t require NumLock to be locked. Foot has no idea _which_ modifier the user has mapped NumLock to, meaning we really cannot require it to be locked. | |||
| * | | | | Merge branch 'base64-padding-fix' | Daniel Eklöf | 2020-11-30 | -6/+17 |
| |\ \ \ \ | ||||
| | * | | | | base64: only allow padding bytes at the end of a string when decoding | Craig Barnes | 2020-11-30 | -6/+17 |
| | | | | | | ||||
| * | | | | | Merge branch 'simplify-config-struct' | Daniel Eklöf | 2020-11-30 | -46/+16 |
| |\ \ \ \ \ | |_|/ / / |/| | | | | ||||
| | * | | | | config: replace union in config struct with simple width/height members | Craig Barnes | 2020-11-30 | -46/+16 |
| | |/ / / | ||||
| * | | | | selection: offer clipboard content in more mime types | Daniel Eklöf | 2020-11-30 | -0/+10 |
| | | | | | ||||
| * | | | | input: improved debug logging of pressed keys | Daniel Eklöf | 2020-11-30 | -10/+9 |
| |/ / / | ||||
| * | | | Merge branch 'base64-optimize' | Daniel Eklöf | 2020-11-29 | -32/+27 |
| |\ \ \ | |/ / |/| | | ||||
| | * | | base64: optimize error checking in base64_decode() | Craig Barnes | 2020-11-29 | -32/+27 |
| |/ / | ||||
| * | | keymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiers | Daniel Eklöf | 2020-11-28 | -0/+16 |
| | | | ||||
| * | | doc: foot.1: add IRC channel | Daniel Eklöf | 2020-11-27 | -0/+4 |
| | | | ||||
| * | | readme: better link to freenode | Daniel Eklöf | 2020-11-27 | -1/+2 |
| | | | ||||
