aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * doc: ctlseqs: remove 'CSI 21 t'Daniel Eklöf2025-01-18-3/+0
| |
| * osc: ignore 'OSC 176 ?' - report app IDDaniel Eklöf2025-01-18-0/+4
| | | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
| * csi: ignore 'CSI 21 t' - report window titleDaniel Eklöf2025-01-18-0/+4
| | | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
| * ci: "meson [options]" is deprecated (do "meson setup [options]" instead)Daniel Eklöf2025-01-18-9/+9
| |
| * changelog: utf8proc.h not foundDaniel Eklöf2025-01-18-0/+3
| |
| * meson: fix dependencies (utf8proc missing in lots of places)Daniel Eklöf2025-01-18-3/+7
| |
| * ci: sr.ht: try to bring up to date, and pull from codebergDaniel Eklöf2025-01-18-1/+2
| |
| * ci: sr.ht: disable x64 (rely on codeberg only)Daniel Eklöf2025-01-18-0/+0
| |
| * changelog: add missing issue refDaniel Eklöf2025-01-18-1/+1
| |
| * changelog: add new 'unreleased' sectionDaniel Eklöf2025-01-18-0/+11
| |
* | features: add +/-system-bell to version outputDaniel Eklöf2025-01-17-3/+15
| |
* | Add support for the new Wayland protocol xdg-system-bellDaniel Eklöf2025-01-17-11/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the release notes: system bell - allowing e.g. terminal emulators to hand off system bell alerts to the compositor for among other things accessibility purposes The new protocol is used when the new config option bell.system=yes (and the compositor implements the protocol, obviously). The system bell is rung independent of whether the foot window has keyboard focus or not (thus relying on compositor configuration to determine whether anything should be done or not in response to the bell). The new option is enabled by default.
* | forgejo: bugs: short explanation of what an IME isDaniel Eklöf2025-01-10-2/+2
| |
* | forgejo: bugs: config: uppercase description's first letterDaniel Eklöf2025-01-10-1/+1
| |
* | forgejo: bugs: add required field 'config'Daniel Eklöf2025-01-10-0/+7
| | | | | | | | Require all bug submitters to include their foot configs.
* | forgejo: bugs: add required field 'distro'Daniel Eklöf2025-01-10-0/+8
| |
* | term: cursor_refresh(): don't try to dirty the grid if we don't have oneDaniel Eklöf2025-01-09-0/+7
| | | | | | | | | | | | | | | | | | | | | | If the compositor sends a keyboard enter event before our window has been mapped, foot crashes; the enter event triggers a cursor refresh (hollow -> non-hollow block cursor), which crashes since we haven't yet allocated a grid. Fix by no-op:ing the refresh if the window hasn't been configured yet. Closes #1910
* | changelog: colors.flash-alpha=1.0Daniel Eklöf2025-01-09-0/+6
| |
* | Merge branch 'opaque-flash'Daniel Eklöf2025-01-09-28/+13
|\ \
| * | Revert "config: don't allow colors.flash-alpha to be 1.0"Alexander Orzechowski2025-01-09-26/+2
| | | | | | | | | | | | This reverts commit 56d2c3e990509d18de31e6009e0d0c6254f99b67.
| * | terminal: Refresh only overlay when flash expiresAlexander Orzechowski2025-01-09-1/+6
| | | | | | | | | | | | | | | | | | | | | If we call render_refresh, that will wait for a callback to the main surface. In the case of a flash, the main surface might not get callbacks if the compositor implements fancy culling optimizations like wlroots wlr_scene compositors such as sway version >=1.10.
| * | render: Expose render_overlayAlexander Orzechowski2025-01-09-1/+5
|/ / | | | | | | | | This function updates the overlay that foot uses. It will be used to update the overlay when the flash effect ends.
* | Merge branch 'ignore-title-and-app-id-report-queries'Daniel Eklöf2025-01-07-3/+15
|\ \ | | | | | | | | | Related to #1894
| * | changelog: 'CSI 21 t' and 'OSC 176 ?' disabledDaniel Eklöf2025-01-07-0/+7
| | |
| * | doc: ctlseqs: remove 'CSI 21 t'Daniel Eklöf2025-01-07-3/+0
| | |
| * | osc: ignore 'OSC 176 ?' - report app IDDaniel Eklöf2025-01-07-0/+4
| | | | | | | | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
| * | csi: ignore 'CSI 21 t' - report window titleDaniel Eklöf2025-01-07-0/+4
|/ / | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
* | ci: "meson [options]" is deprecated (do "meson setup [options]" instead)Daniel Eklöf2025-01-04-9/+9
| |
* | changelog: utf8proc.h not foundDaniel Eklöf2025-01-04-0/+3
| |
* | meson: fix dependencies (utf8proc missing in lots of places)Daniel Eklöf2025-01-04-3/+7
| |
* | ci: sr.ht: try to bring up to date, and pull from codebergDaniel Eklöf2025-01-04-1/+2
| |
* | ci: sr.ht: disable x64 (rely on codeberg only)Daniel Eklöf2025-01-04-0/+0
| |
* | changelog: add missing issue refDaniel Eklöf2025-01-03-1/+1
| |
* | changelog: add new 'unreleased' sectionDaniel Eklöf2025-01-03-0/+11
| |
* | Merge branch 'releases/1.20'Daniel Eklöf2025-01-03-10/+4
|\|
| * meson: bump version to 1.20.11.20.1Daniel Eklöf2025-01-03-1/+1
| |
| * changelog: prepare for 1.20.1Daniel Eklöf2025-01-03-9/+3
| |
| * Merge branch 'master' into releases/1.20Daniel Eklöf2025-01-03-15/+108
| |\ | |/ |/|
* | render: fix order we're checking custom codepointsDaniel Eklöf2025-01-03-11/+18
| | | | | | | | | | | | | | Fixes a crash when trying to print a "Legacy Computing" symbol (U+1FB00-U+1FB9B). Closes #1901
* | themes: add iterm theme from alacrittyevplus2025-01-02-0/+27
| |
* | osc: disable debug loggingDaniel Eklöf2025-01-02-1/+1
| |
* | notify: disable debug loggingDaniel Eklöf2025-01-02-1/+1
| |
* | config: don't allow colors.flash-alpha to be 1.0Daniel Eklöf2025-01-02-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A compositor will not send a frame callback for our main window if it is fully occluded (for example, by a fully opaque overlay...). This causes the overlay to stuck. For regular buffers, it _should_ be enough to *not* hint the compositor it's opaque. But at least some compositor special cases single-pixel buffers, and actually look at their pixel value. Thus, we have two options: implement frame callback handling for the overlay sub-surface, or ensure we don't use a fully opaque surface. Since no overlays are fully opaque by default, and the flash surface is the only one that can be configured to be opaque (colors.flash-alpha), and since adding frame callback handling adds a lot of boilerplate code... let's go with the simpler solution of
* | term: limit app-id to 2048 charactersDaniel Eklöf2025-01-02-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Unsure if the protocol imposes a limit (haven't found any documentation), or if the issue is in the libwayland implementation, or wlroots (triggers in at least sway+river). The issue is that setting a too long app-id causes the compositor (river at least) to peg the CPU at 100%, and stop sending e.g. frame callbacks to foot. Closes #1897
* | changelog: add missing issue refDaniel Eklöf2025-01-01-0/+2
| |
* | changelog: add new 'unreleased' sectionDaniel Eklöf2025-01-01-0/+11
| |
* | Merge branch 'releases/1.20'Daniel Eklöf2025-01-01-6/+10
|\|
| * meson: bump version to 1.20.01.20.0Daniel Eklöf2025-01-01-1/+1
| |
| * changelog: prepare for 1.20.0Daniel Eklöf2025-01-01-5/+9
|/
* kitty kbd: don't generate release events for plain Enter+Tab+BackspaceDaniel Eklöf2025-01-01-3/+18
| | | | | | | | | | | From the specification: The Enter, Tab and Backspace keys will not have release events unless Report all keys as escape codes is also set, so that the user can still type reset at a shell prompt when a program that sets this mode ends without resetting it. Closes #1892
* osc: add option to disable OSC-52, partially or fullyDaniel Eklöf2024-12-22-1/+99
| | | | Closes #1867
* selection: fix crash when tripple clicking in a region containing NUL charactersDaniel Eklöf2024-12-22-4/+5
| | | | | | | If a cell contains a NUL character, it was incorrectly treated as a quote, later triggering an assertion. Patch by Johannes Altmanninger
* misc: add missing include stdlib.h (for free())Daniel Eklöf2024-12-20-0/+1
| | | | Closes #1887
* term: set_app_id() + set_window_title(): only allow printable charactersDaniel Eklöf2024-12-17-6/+19
|
* box-drawings: implement octantsDaniel Eklöf2024-12-08-12/+467
|
* pgo: prefer full-headless-sway over full-headless-cageheather72832024-12-08-5/+2
|
* quit should be in key-bindingscy2024-12-08-1/+1
|
* Update rose-pine, add theme variantsDenis Zharikov2024-12-08-17/+81
|
* pgo: explicitly set LLVM_PROFILE_FILE envvarheather72832024-12-08-0/+1
| | | | | | | | | When building foot with pgo under gentoo's portage, LLVM tried to generate profile data files directly under system root, triggering sandbox violation and causing build to fail. Setting this envvar fixes the issue by explicitly specifying profiling data location. Reference: https://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation
* pgo: run sway with --unsupported-gpu flagheather72832024-12-08-1/+1
| | | | | | Sway refuses to run if it detects an nvidia GPU on the system, causing pgo build to fail. Adding --unsupported-gpu flag disables this behaviour.
* term: get_font_dpi(): remove invalid assertionDaniel Eklöf2024-11-24-2/+0
| | | | Closes #1874
* vt: don't call fcft_precompose() if font is NULLDaniel Eklöf2024-11-02-3/+5
| | | | | This fixes a crash when doing a partial PGO build (where we don't have any fonts available).
* char32: use utf8proc_charwidth() instead of wcwidth(), when availableDaniel Eklöf2024-11-02-0/+20
| | | | | | | | | | It appears to be slightly more up-to-date with recent Unicode versions. In particular, it handles the new "Symbols for Legacy Computing Supplement" block, introduced in Unicode 16. Closes #1865
* osc: 9: ignore ConEmu/Windows Terminal sequencesDaniel Eklöf2024-11-02-1/+19
| | | | | OSC-9 sequences starting with "<number>;" are now ignored, as they are ConEmu sequences, and not iTerm notifications.
* unicode: update data files to 16.0Daniel Eklöf2024-10-31-4/+10
| | | | Yup, there's no _actual_ changes 🤷
* changelog: osc-9/777 crash when body is emptyDaniel Eklöf2024-10-31-0/+7
|
* osc: notify: fix crash with no messageJack Wilsdon2024-10-31-2/+7
| | | | Closes #1866
* docs: document more default bindings in search scrollback mode.Mark Stosberg2024-10-25-2/+56
| | | | These were introduced by #1496 but not fully documented then.
* changelog: add new 'unreleased' sectionDaniel Eklöf2024-10-23-0/+11
|
* Merge branch 'releases/1.19'Daniel Eklöf2024-10-23-6/+9
|\
| * meson: bump version to 1.19.01.19.0releases/1.19Daniel Eklöf2024-10-23-1/+1
| |
| * changelog: prepare for 1.19.0Daniel Eklöf2024-10-23-5/+8
|/
* uri: skip query/fragment parsing when dealing with file:// URIsDaniel Eklöf2024-10-23-0/+19
| | | | | | | Also, ignore invalid query/fragments (i.e. if the fragment comes before the query). Closes #1840
* Revert "url-mode: don't strip the file:// prefix from localhost URIs"Daniel Eklöf2024-10-23-2/+31
| | | | This reverts commit 54722369d8ca0c6b90c6d874b0f712e133cd4925.
* config: add color.sixelN optionsDaniel Eklöf2024-10-23-38/+64
| | | | These options allows you to configure the default sixel color palette.
* render: remove unnecessary call to wl_surface_damage_buffer()Daniel Eklöf2024-10-06-2/+0
| | | | | The damage region(s) are translated to wl_surface_damage_buffer() calls after the entire frame has been rendered.
* render: sixels: update damage region when rendering sixelsDaniel Eklöf2024-10-05-2/+10
| | | | | | | | | | | | | | This fixes flickering when foot is forced to double-buffer (e.g when running under KDE, or smithay based compositors). Since the damage region isn't updated, the sixel images aren't included in the memcpy that is done to transfer the last frame's updated regions to the next frame. As a result, every other frame will have the sixels, while the others don't. Closes #1851
* changelog: #1715: "ghost" lines when selecting textDaniel Eklöf2024-09-21-0/+4
|
* render: do dirty/clean consistency check before rendering sixelsDaniel Eklöf2024-09-21-6/+6
| | | | | Since the sixels may render some of the cells, we want the check to happen before the sixels.
* selection: set row->dirty when clearing the cell->attrs.clean bitDaniel Eklöf2024-09-21-1/+4
| | | | Closes #1715
* render: double-buffer: optimization: skip clean rowsDaniel Eklöf2024-09-21-0/+5
| | | | | | | | | | | | When scanning the grid for all-dirty rows (that we can remove from the damage region we're about to memcpy from the old frame), check the row->dirty bit, and skip scanning the cells of that row altogether. We're only looking for rows where all cells are dirty - those rows can be removed from the region we copy from the old frame, since the entire row will be re-rendered anyway. If a row is clean, it *must* be copied from the old frame.
* render: (debug): assert row->dirty vs. cell->attrs.clean consistencyDaniel Eklöf2024-09-21-0/+24
|
* shm: fix compilation when FORCED_DOUBLE_BUFFERING is enabledDaniel Eklöf2024-09-21-2/+2
|
* render: xcursor_is_valid(): don't crash when there's no theme loadedDaniel Eklöf2024-09-21-0/+4
| | | | | | | | | | | | When trying to set a custom cursor shape, we first validate it. This is done by checking against known server-side names, and then trying to load the cursor from the client side cursor theme. But, if we're using server side names, there is no theme loaded, and foot crashed. Fix by checking if we have a theme loaded, and if not, fail the cursor shape name validation.
* render: add missing include, limits.hDaniel Eklöf2024-09-15-1/+2
|
* Merge branch 'toplevel-icon'Daniel Eklöf2024-09-13-25/+248
|\
| * changelog: remove escape sequences we've revertedDaniel Eklöf2024-09-13-4/+0
| |
| * csi: revert implementation of CSI 20 tDaniel Eklöf2024-09-13-10/+1
| |
| * osc: OSC-1 does not set the icon, it sets the icon _label_Daniel Eklöf2024-09-13-46/+8
| | | | | | | | | | | | | | | | | | | | In fact, there appears there *is* no escape sequence to set the icon. Keep most of the logic in place, but in practice, we'll always set the icon to the app-id. That is, at startup, we set it to the configured app-id (either from config, or the command line). OSC-176, which sets the app-id, also updates the icon (to the app-id).
| * main: include toplevel-icon support in --version outputDaniel Eklöf2024-09-13-8/+24
| |
| * pgo: add missing stub for render_refresh_icon()Daniel Eklöf2024-09-13-0/+1
| |
| * toplevel-icon: implement OSC-1, CSI 20/21/22/23 tDaniel Eklöf2024-09-13-26/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * The toplevel icon is now set to the app-id, unless "overridden" by OSC-1 or OSC-0. * Implemented OSC-1 * OSC-0 extended to also set the icon * Implemented CSI 20 t - report window icon * Implemented CSI 21 t - report window title * Implemented CSI 22 ; 1 t - push window icon * Implemented CS 23 ; 1 t - pop window icon * Extended CSI 22/23 ; 0 t to also push/pop the icon * Verify app-id set by OSC-176 is valid UTF-8 * Verify icon set by OSC-0/1 is valid UTF-8
| * changelog: xdg-toplevel-icon-v1Daniel Eklöf2024-09-13-0/+1
| |
| * toplevel-icon: set to app-id, instead of hardcoding to "foot"Daniel Eklöf2024-09-13-4/+29
| | | | | | | | And, special case "footclient", and map it to "foot".
| * wayland: set toplevel iconDaniel Eklöf2024-09-13-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the xdg-toplevel-icon-v1 protocol is available, and we have the corresponding manager global, set the toplevel icon to "foot". Note: we do *not* provide any pixel data. This is by design; we want to keep things simple. To be able to provide pixel data, we would have to either: * embed the raw pixel data in the foot binary * link against either libpng or/and e.g. nanosvg, locate, at run-time, the paths to our own icons, and load them at run-time. * link against either libpng or/and e.g. nanosvg, and, at run-time, do a full icon lookup. This would also require us to add a config option for which icon theme to use. Of the two, I would prefer the first option. But, let's skip this completely for now. By providing the icon as a name, the compositor will have to lookup the icon itself. Compositors supporting icons is likely to already support this. So what do we gain by implementing this protocol? Compositors no longer has to parse .desktop files and map our app-id to find the icon to use. There's one question remaining. With this patch, the icon name is hardcoded to "foot", just like our .desktop files. But, perhaps we should use the app-id instead? And if so, should we also change the icon when the app-id changes? My gut feeling is, yes, we should use the app-id instead, and yes, we should update the icon when the app-id is changed at run-time.
| * wayland: bind the xdg-toplevel-icon manager globalDaniel Eklöf2024-09-13-0/+23
| |
| * meson: detect wayland-protocols >= 1.37, and conditionally enable xdg-toplevel-icon-v1Daniel Eklöf2024-09-13-0/+9
|/
* xsnprintf: various improvements related to xvsnprintf() and xsnprintf()Craig Barnes2024-09-13-35/+54
| | | | | | | | | | | | | | | | | | | | | | Summary of changes: * Make xvsnprintf() static * restrict-qualify pointer arguments (as done by the libc equivalents) * Make comments and spec references more thorough * Remove pointless `n <= INT_MAX` assertion (see comment) * Use FATAL_ERROR() instead of xassert() (since the assertion is inside a shared util function but the caller is responsible for ensuring the condition holds true) * Change some callers to use size_t instead of int for the return value (negative returns are impossible and all subsequent uses are size_t) The updated comments and code were taken (and adapted) from: https://gitlab.com/craigbarnes/dte/-/blob/49260bb154bca0434462a41c061e512540ec2e49/src/util/xsnprintf.c#L6-50 This work was entirely authored by me and I hereby license this contribution under the MIT license (stated explicitly, so that there's no ambiguity w.r.t. the original license).
* readme: typo: foot-ctlseq -> foot-ctlseqsCraig Barnes2024-09-11-1/+1
|
* render: resize(): don't overflow the number of scrollback linesDaniel Eklöf2024-09-09-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The config system allows setting the scrollback lines to 2**32-1. However, the total number of grid lines is the scrollback lines plus the window size, and then rounded *up* to the nearest power of two. Furthermore, the number of rows is represented with a plain 'int' throughout the code base. The largest positive integer that fits in an int is 2**31-1. That however, is not a power of two. The largest positive integer, that also is a power of two, that fits in an int is 2**30, or 1073741824. Ideally, we'd just cast the line count to a 64-bit integer, and call __builtin_clzl{,l}() on it, and then take the smallest value of that, or 2**30. But, for some reason, __builtin_clzl(), and __builtin_clzll() appears to ignore bits above 32, despite they being typed to long and long long. Bug? Instead, ensure we never call __builtin_clz() on anything larger than 2**30. Closes #1828