aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
* changelog: prepare for 1.18.0Daniel Eklöf2024-08-02-4/+10
|
* changelog: more template parameters we've added to desktop-notificationsDaniel Eklöf2024-08-02-2/+3
|
* osc: kitty notifications: cleanup and update to latest version of specDaniel Eklöf2024-08-02-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't store a list of unfinished notifications. Use a single one. If the notification ID of the 'current' notification doesn't match the previous, unfinished one, the 'current' notification replaces the previous one, instead of updating it. * Update xstrjoin() to take an optional delimiter (for example ','), and use that when joining categories and 'alive IDs'. * Rename ${action-arg} to ${action-argument} * Update handling of the 'n' parameter (symbolic icon name); the spec allows it to be used multiple times, and the terminal is supposed to pick the first one it can resolve. Foot can't resolve icons at all, neither can 'notify-send' or 'fyi' (which is what foot typically executes to display a notification); it's the notification daemon that resolves icons. The spec _could_ be interpreted to mean the terminal should lookup .desktop files, and use the value of the 'Icon' key from the first matching .desktop files. But foot doesn't read .desktop files, and I don't intend to implement XDG directory scanning and parsing of .desktop files just to figure out which icon to use. Instead, use a simple heuristics; use the *shortest* symbolic names. The idea is pretty simple: plain icon names are typically shorter than .desktop file IDs.
* osc: kitty notifications: implement the 'close' requestDaniel Eklöf2024-07-25-0/+3
| | | | | | | | | | | | | | | | Add a new config option, desktop-notifications.close, defining what to execute to close a notification. It has a single template parameter, ${id}, that is expanded to the external notification ID foot may have picked up from the notification helper. notify-send does not support closing notifications, and it appears impossible to pass an *unsigned* integer as argument to gdbus. Hence no default value for the new 'close' option. Example: printf '\e]99;i=123;this is a notification\e\\' printf '\e]99;i=123:p=close;\e\\'
* notify: split up the ${action} template parameterDaniel Eklöf2024-07-23-2/+2
| | | | | | | | | Split it up into two, ${action-name} and ${action-label}. Dunstify, for example, has a different syntax compared to notify-send: notify-send: default=foobar dunstify: default,foobar
* notify: don't focus/report on notification dismissalDaniel Eklöf2024-07-23-1/+1
| | | | | | | | | | | | | | | | Only do it when the notification was activated. Here, activated means the 'click to activate' notification action was triggered. How do we tie everything together? First, we add a new template parameter, ${action}. It's intended to be used with e.g. notify-send's --action option. When the action is triggered, notify-send prints its name on stdout, on a separate line. Look for this in stdout. Only if we've seen it do we focus/report the notification.
* changelog: new desktop-notifications config sectionDaniel Eklöf2024-07-23-0/+11
|
* osc/notify: add support for OSC-99, kitty desktop notificationsDaniel Eklöf2024-07-23-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds limited support for OSC-99, kitty desktop notifications[^1]. We support everything defined by the "protocol", except: * 'a': action to perform on notification activation. Since we don't trigger the notification ourselves (over D-Bus), we don't know a) which ID the notification got, or b) when it is clicked. * ... and that's it. Everything else is supported To be explicit, we *do* support: * Chunked notifications (d=0|1), allowing the application to append data to a notification in chunks, before it's finally displayed. * Plain UTF-8, or base64-encoded UTF-8 payload (e=0|1). * Notification identifier (i=xyz). * Payload type (p=title|body). * When to honor the notification (o=always|unfocused|invisible), with the following quirks: - we don't know when the window is invisible, thus it's treated as 'unfocused'. - the foot option 'notify-focus-inhibit' overrides 'always' * Urgency (u=0|1|2) [^1]: https://sw.kovidgoyal.net/kitty/desktop-notifications/
* input: allow mouse selections to start inside the marginsDaniel Eklöf2024-07-19-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this, margins were special cased: * The mouse cursor was always a pointer, and never an I-beam (thus signaling selections cannot be made). * The internal mouse coords where set to -1 when the cursor was inside the margins, causing: - text selections from being made - mouse events being passed to mouse grabbing applications In particular, even with a one-pixel margin, making selections was unnecessarily hard in e.g. fullscreen mode, where you'd expect to be able to throw the cursor into the corner of the screen and then start a selection. With this patch, the cursor is treated as if it was in the first/last column/row, when inside the margin(s). An unintended side-effect of this, initially, was that auto-scrolling selections where way too easy to trigger, since part of its logic is checking if the cursor is inside the margins. That problem has been reduced by two things: * auto-scrolling does not occur unless a selection has been started. That is, just holding down the mouse in the margins and moving up/down doesn't cause scrolling. You have to first select at least one cell in the visible viewport. * A selection isn't fully started (i.e. a cell is actually selected) unless the cursor is inside the actual grid, and *not* in the margins. What does the last point mean? We now allow a selection to be _started_ when clicking in the margin. What this means internally is we set a start coordinate for a selection, but *not* and end coordinate. At this point, we don't have an actual selection. Nothing is selected, and no cells are highlighted, graphically. This happens when we set an end coordinate. Without the last bullet point, that would happen as soon as the cursor was _moved_, even if still inside the margins. Now, we require the cursor to leave the margins and touch an actual cell before we set an end coordinate. Closes #1702
* csi: in-band window resize notifications, private mode 2048Daniel Eklöf2024-07-19-0/+3
| | | | | | | | | | | | | This implements https://gist.github.com/rockorager/e695fb2924d36b2bcf1fff4a3704bd83, in-band window resize notifications. When user enables private mode 2048 (in-band resize notifications), *always* send current size, even if the mode is already active. This ensures applications can rely on getting a reply from the terminal.
* log: respect the NO_COLOR environment variableDaniel Eklöf2024-07-18-0/+3
| | | | | | http://no-color.org/ Closes #1771
* themes: catppuccin: replace with updated flavorsabs3nt2024-07-18-1/+3
| | | | Pulled from https://github.com/catppuccin/foot
* input: don't map wheel events to BTN_{BACK,FORWARD}Daniel Eklöf2024-07-13-0/+12
| | | | | | | | | | | | | | | | | | | | BTN_BACK and BTN_FORWARD are separate buttons. The scroll wheel don't have any button mappings in libinput/wayland, so make up our own defines. This allows us to map them in mouse bindings. Also expose BTN_WHEEL_{LEFT,RIGHT}. These were already defined, and used, internally, to handle wheel tilt events. With this, they can also be used in mouse bindings. Finally, fix encoding used for BTN_{BACK,FORWARD} when sending mouse button events to the client application. Before this, they were mapped to buttons 4/5. But, button 4/5 are for the scroll wheel, and as mentioned above, BTN_{BACK,FORWARD} are not the same as scroll wheel "buttons". Closes #1763
* changelog: remove entry for change that hasn't yet been mergedDaniel Eklöf2024-07-13-2/+0
|
* render: hollow-cursor: use correct cursor colorDaniel Eklöf2024-07-13-0/+3
|
* render: cursor: use default fg/bg if cell fg/bg are the sameDaniel Eklöf2024-07-13-0/+6
| | | | | | | When deciding which colors to use for the cursor, and the cursor text and background colors are the same, use the default fg/bg instead. Closes #1761
* changelog: XTPUSHCOLORS, XTPOPCOLORS and XTREPORTCOLORSDaniel Eklöf2024-07-03-0/+4
|
* csi: implement SGR 21, double underlinesDaniel Eklöf2024-07-03-0/+1
|
* render: cursor color: remove assertion that both cursor fg/bg be setDaniel Eklöf2024-07-01-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Before this patch, we asserted both the cursor foreground, and background colors had been set. This is true in most cases; the config system enforces it. It is however possible to set only the cursor background color, while leaving the foreground (text) color unset: * Use a foot config that does *not* configure the cursor colors. This means foot will invert the default fg/bg colors when rendering the cursor. * Override the cursor color using an OSC-12 sequence. OSC-12 only sets the background color of the cursor, and there is no other OSC sequence to set the cursor's text color. To handle this, remove the assertion, and simply split the logic for the cursor backgound and foreground colors: * Use the configured background color if set (either through config or OSC-12), otherwise use the default foreground color. * Use the configured foreground color if set (through config), otherwise use the default background color.
* changelog: styled + colored underlinesDaniel Eklöf2024-06-26-1/+2
|
* vt: only apply VS-15/16 to valid sequencesDaniel Eklöf2024-06-25-0/+2
| | | | | | | | | | At compile time, build a lookup table from the Unicode data file 'emoji-variation-sequences.txt'. At run-time, when we detect a VS-15/16 sequence, do a lookup in this table, and enforce the variation selector iff the sequence is valid. Closes #1742
* vt: don't ignore VS-15 (text presentation)Daniel Eklöf2024-06-25-0/+2
| | | | | When we encounter either VS-15 or VS-16, set the grapheme width to 1 or 2 explicitly.
* shm: discard shm buffers with mis-matching alpha-settingDaniel Eklöf2024-06-24-0/+2
|
* input: don't reset the XKB compose state in keymap()Daniel Eklöf2024-06-22-0/+3
| | | | | | | | | | | | | When the compositor sends a new keymap, don't reset the XKB compose state. This is done by initializing the XKB context, along with the compose state, when binding the seat, instead of in keymap(). Then, in keymap(), simply stop destroying the old xkb state. Only destroy, and re-create the keymap state. Closes #1744
* input: implement wl_pointer::axis_value120()Daniel Eklöf2024-06-18-0/+2
| | | | | | | | | | | | | | | | | | | This implements high resolution mouse wheel scroll events. A "normal" scroll step corresponds to the value 120. Anything less than that is a partial scroll step. This event replaces axis_discrete(), when we bind wl_seat v8 (which we now do, when available). We calculate the number of degrees that is required to scroll a single line, based off of the scrollback.multiplier value. Each high-res event accumulates, until we have at least the number of degress required to scroll one, or more lines. The remaining degrees are kept, and added to in the next scroll event. Closes #1738
* osc: 52: treat OSC-52 replies as paste data (after all, they are)Daniel Eklöf2024-06-09-0/+3
| | | | | | | | | | | | | | | | | This fixes an issue where other data (such as replies to other requests) being interleaved with the OSC-52 reply. The patch piggy backs on the already existing mechanism for handling regular pastes, where other data is queued up until the paste is done. There's one corner case that won't work; if the user *just* did a normal paste (i.e. at virtually the same time the application requested OSC-52 data), the OSC-52 request will return an empty reply. Likewise, if there are multiple OSC-52 requests at the same time, only the first will return data. Closes #1734
* changelog: wp-single-pixel-buffer-v1Daniel Eklöf2024-05-22-0/+3
|
* url-mode: disable IME mode while URL-mode is activeDaniel Eklöf2024-05-21-0/+2
| | | | | | | This prevents the IME from stealing "our" key-presses, and thus preventing the user from opening URLs. Closes #1718, hopefully.
* unicode-mode: move state from seat to termDaniel Eklöf2024-05-21-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue where entering unicode-mode in one foot client, also enabled unicode-mode on other foot clients. Both visually (although glitchy), and in effect. The reason the state was originally in the seat objects, was to fully support multi-seat. That is, one seat/keyboard entering unicode-mode should not affect other seats/keyboards. The issue with this is that seat objects are Wayland global. Thus, in server mode, all seat objects are shared between the foot clients. There is a similarity with IME, which also keeps state in the seat. There's one big difference, however, and that is IME has Wayland native enter/leave events, that the compositor emits when windows are focused/unfocused. These events allow us to reset IME state. For our own Unicode mode, there is nothing similar. This patch moves the Unicode state from seats, to the terminal struct. This does mean that if one seat/keyboard enters Unicode mode, then *all* seats/keyboards will affect the unicode state. This potential downside is outweighed by the fact that different foot clients no longer affect each other. Closes #1717
* config: add cursor.blink-rate optionDaniel Eklöf2024-05-20-0/+7
| | | | | | The default is 500ms, which corresponds to the old, hardcoded default. Closes #1707
* dcs: xtgettcap: always reply with tigetstr(3) formatted "strings"Daniel Eklöf2024-04-27-0/+15
| | | | | | | | | | | That is, instead of sometimes replying with a "source" encoded string (where e.g. '\E' are returned just like that, and not as an actual ESC), always unescape all string values. This also includes \n \r \t \b \f \s, \^ \\ \ \:, as well as ^x-styled escapes. Closes #1701
* dcs: XTGETTCAP: handle empty requestDaniel Eklöf2024-04-20-0/+3
| | | | | | | If the XTGETTCAP request is empty (no capabilities in it), reply with an empty error reply. Closes #1694
* term: default to DPI 96, if the monitor's DPI is 0Daniel Eklöf2024-04-20-0/+6
| | | | | This can happen in virtualized environments, or when running a nested Wayland session.
* changelog: add new 'unreleased' sectionDaniel Eklöf2024-04-17-0/+11
|
* changelog: prepare for 1.17.2Daniel Eklöf2024-04-17-9/+3
|
* term: stash last known DPI, and use after a unmapped/mapped sequenceDaniel Eklöf2024-04-17-0/+3
| | | | | | | | | | | | | | | | | | A compositor may unmap, and then remap the window, for example when the window is minimized, or if the user switches workspace. With DPI aware rendering, we *need* to know on which output we're mapped, in order to use the correct DPI. This means the first frame we render, before being mapped, always guesses the DPI. In an unmap/map sequence, guessing the wrong DPI means the window will flicker. Fix by stashing the last used DPI value, and use that instead of guessing. This means the *only* time we _actually_ guess the DPI, is the very first frame, when starting up foot.
* sixel: don't allow pan/pad changes after sixel data has been emittedDaniel Eklöf2024-04-15-0/+3
| | | | | | | | | | | | | | | | | Changing pan/pad changes the sixel's aspect ratio. While I don't know for certain what a real VT340 would do, I suspect it would change the aspect ratio of all subsequent sixels, but not those already emitted. The way we implement sixels in foot, makes this behavior hard to implement. We currently don't resize the image properly if the aspect ratio is changed, but not the RA area. We have code that assumes all sixel lines have the same aspect ratio, etc. Since no "normal" applications change the aspect ratio in the middle of a sixel, simply disallow it, and print a warning. This also fixes a crash, when writing sixels after having modified the aspect ratio.
* sixel: also set 'alloc_height', when short-cutting a resize operationDaniel Eklöf2024-04-15-0/+3
| | | | | | | | | | In some cases, a sixel may be resized vertically, while still having a zero-width. In this case, the resize operations are short-cutted, and no actual allocations are done. However, we forgot to set 'alloc_height' when doing so. As a result, the trimming code (when the sixel is "done"), trimmed away the entire sixel.
* term: don't print outside grid when printing multi-column charactersDaniel Eklöf2024-04-15-0/+3
| | | | | | | | | | When auto-wrap is disabled, a multi-column character may be printed on a line that doesn't fit the entire character. That is, the "spacers" we print, as place holders in the columns after the first one, may reach outside the grid. We did (try to) check for this, but the check was off by one. Meaning, we could, in some cases, print outside the grid.
* osc: reject notifications with invalid UTF-8 stringsDaniel Eklöf2024-04-15-0/+4
|
* changelog: add a new 'unreleased' sectionDaniel Eklöf2024-04-11-0/+11
|
* changelog: prepare for 1.17.1Daniel Eklöf2024-04-11-6/+8
|
* config: add new key-binding 'quit', unbound by defaultDaniel Eklöf2024-04-11-0/+2
| | | | Closes #1475
* config: add cursor.unfocused-styleDaniel Eklöf2024-04-10-0/+7
| | | | | | | | | | | | | | | This option controls how we render the cursor when the terminal window is unfocused. Possible values are: * hollow: the default, and how we rendered the cursor before this patch. * unchanged: render the cursor exactly the same way as when the window is focused. * none: do not render any cursor at all Closes #1582
* dcs: DECRQSS: fix off-by-one when checking for space in the DCS bufferDaniel Eklöf2024-04-10-0/+2
|
* term: send SIGHUP before SIGTERM when shutting downDaniel Eklöf2024-04-05-0/+3
| | | | | | | | If we're the ones initiating shutdown, start by sending SIGHUP. Only if the client application does not terminate, send SIGTERM (and if it still refuses to terminate, send SIGKILL). Also reduce the timeout between the signals from 60s to 30s.
* term: don't shutdown terminal when PTY is closed, unless --pty was usedDaniel Eklöf2024-04-05-0/+5
| | | | | | | | | | | | | | | | | Unless --pty has been used, we do *not* want to shutdown the terminal when the PTY is closed by the client application; we want to wait for the client application to actually terminate. This was the behavior before the --pty patch. This was changed in the --pty patch, since then, we don't *have* a client application. That is, foot has not forked+exec:ed anything. The only way to trigger a shutdown (from the client side) is to close the PTY. This patch restores the old behavior, when --pty is *not* used. Closes #1666
* log: fix syslog not respecting the configured log levelDaniel Eklöf2024-04-05-0/+4
|
* changelog: add new 'unreleased' sectionDaniel Eklöf2024-04-02-0/+11
|
* changelog: prepare for 1.17.0Daniel Eklöf2024-04-02-5/+20
|
* changelog: move DECRQM for private mode 67 from "added" to "changed"Daniel Eklöf2024-04-01-2/+2
|
* terminfo: tighten up the rv/xr regular expressionsDaniel Eklöf2024-03-29-0/+2
|
* terminfo: add 'nel' capabilityDaniel Eklöf2024-03-29-0/+1
|
* terminfo: add fe/fd (focus enable/disable)Daniel Eklöf2024-03-29-0/+5
| | | | | | These are new capabilities, recently added to ncurses. Applications are supposed to use these, instead of XM (to enable focus events). So, remove "CSI ? 1004h" from XM.
* sixel: trim trailing, fully transparent sixel rowsDaniel Eklöf2024-03-18-0/+2
| | | | See https://github.com/hpjansson/chafa/issues/192
* sixel: place cursor on the last character row touched by the sixelDaniel Eklöf2024-03-18-0/+4
| | | | | | | | | | | | | | | | After emitting a sixel, place the cursor on the character row touched by the last sixel. The last sixel _may_ not be a multiple of 6 pixels, *if* the sixel had an explicit width/height set via raster attributes. This is an intended deviation from the DEC cursor placement algorithm, where the cursor is placed on the character row touched by the last sixel's *upper* pixel. The adjusted algorithm implemented here makes it much easier for applications to handle text-after-sixels, since they can now simply assume a single text newline is required to move the cursor to a character row not touched by the sixel.
* csi: indicate "permanently reset" for DECRQM queries of mode 67 (DECBKM)Craig Barnes2024-03-16-1/+3
| | | | | This allows dynamic querying for the equivalent of terminfo's "kbs" capability.
* sixel: initialize the color table to colors used by the VT340Daniel Eklöf2024-03-15-0/+4
|
* Add support for opening an existing PTYAlyssa Ross2024-03-14-0/+3
| | | | | | | | | | | | | | | | | Virtual machine monitor programs (e.g. QEMU, Cloud Hypervisor) expose guest consoles as PTYs. With this patch, foot can access these guest consoles. Usually, the program used for accessing these PTYs is screen, but screen is barely developed, doesn't support resizing, and has a bunch of other unrelated stuff going on. It would be nice to have a terminal emulator that properly supported opening an existing PTY. The VMM controls the master end of the PTY, so to the other end (in this case foot), it just behaves like any application running in a directly-opened PTY, and all that's needed is to change foot's code to support opening an existing PTY rather than creating one. Co-authored-by: tanto <tanto@ccc.ac>
* csi: the CSI-t family of queries now report unscaled pixel valuesDaniel Eklöf2024-03-14-0/+3
| | | | | | | | | | | Before this patch, we reported scaled pixel values. This was rather useless, since applications have no way of getting the scaling factor, to "scale up" e.g. images. Furthermore, the most common use of these queries are probably to calculate the dimensions to use when emitting sixels. Closes #1643
* changelog: rectangular functions: add bug refDaniel Eklöf2024-03-07-1/+2
|
* changeloge: move DECERA to the 'unreleased' sectionDaniel Eklöf2024-03-07-4/+3
|
* foot.info: add non-standard capability ‘Rect’ (used by tmux)Daniel Eklöf2024-03-07-0/+1
| | | | This tells tmux it can use DECFRA to erase rectangular regions.
* changelog: rectangular edit functionsDaniel Eklöf2024-03-07-0/+3
|
* sixel: fix row height calculation in resize_vertically()Daniel Eklöf2024-03-06-0/+2
| | | | | | | | | In resize_vertically(), we assumed a sixel is 6 pixels tall. This is mostly true, but not for non-1:1 sixels. Or, to be more precise, not for sixels where 'pan' != 1. This caused us to allocate too little backing memory, resulting in a crash when we later tried to write to the image.
* kitty kbd: switch from GTK to XKB mode for 'consumed' modifiersDaniel Eklöf2024-03-02-0/+7
| | | | | | | | | | | This fixes an issue where some key combinations resulted in different output (e.g. escape code vs. plain text) depending on the state of e.g. the NumLock key. One such example is Shift+space. Another example is Shift+BackSpace. This patch also removes the hardcoded CapsLock filter, when determining whether a key combo produces text or not, and instead uses the locked modifiers as reported by XKB.
* cursor-shape: improve xcursor fallback support, and prefer CSS namesDaniel Eklöf2024-03-01-0/+1
| | | | | | | | | | | | | | Before this patch, we used legacy X11 xcursor names, and didn't really have any fallback handling in place (we only tried to fallback to "xterm", regardless of which cursor shape we were trying to load). This patch changes two things: 1. Improved fallback support. cursor_shape_to_string() now returns a list of strings. This allows us to have per-shape fallbacks, and any number of fallbacks. 2. We prefer CSS xcursor names over legacy X11 names.
* render: don't try to set a NULL xcursor imageDaniel Eklöf2024-02-29-0/+2
| | | | | | | | | | | | | | | | | | | render_xcursor_update() is called when we've loaded a new xcursor image, and needs to display it. The reason it's not pushed to the compositor immediately is to ensure we don't flood the Wayland socket with xcursor updates. Normally, it's only called when we *succeed* to load a new xcursor image. I.e. if we try to load a non-existing xcursor image, we never schedule an update. However, we _can_ still end up in render_xcursor_update() without a valid xcursor image. For example, we have loaded a valid xcursor image, and scheduled an update. But before the update runs, the user moves the cursor, and we try to load a new xcursor image. If it fails, we crash when the previously scheduled update finally runs. Closes #1624
* changelog: kitty modifier no longer clears selection + viewportDaniel Eklöf2024-02-23-0/+2
|
* shm: use XRGB surfaces when we know we wont be using transparencyDaniel Eklöf2024-02-21-0/+2
|
* vt: VS16 - variation selector 16 (emoji representation) should only affect emojisDaniel Eklöf2024-02-15-0/+2
|
* config: map Control+wheel to font increase/decreaseDaniel Eklöf2024-02-15-0/+3
| | | | | | This is in addition to the already existing keyboard shortcuts. Also add missing default keyboard/mouse bindings to readme + foot(1).
* term: erase-scrollback: handle non-existing scrollback historyDaniel Eklöf2024-02-15-0/+5
| | | | | | | | | | | | If scrollback.lines == 0, and the window size (number of rows) is a power of two, all rows are always visible. I.e. there is no scrollback history. This threw off the scrollback erase logic, causing visible rows to be erased, and set to NULL. This triggered a crash when trying to update the view. Closes #1610
* render: always center grid when fullscreened or maximizedDaniel Eklöf2024-02-15-0/+2
|
* csi: support DECRQM queries for ECMA-48 (SM/RM) modesCraig Barnes2024-02-11-0/+1
| | | | | This is in addition to the existing support for DECRQM queries of DEC private modes.
* changelog: OSC-176 - set app-idDaniel Eklöf2024-02-06-0/+2
|
* term: ignore attempts to set a title that contains an invalid UTF-8 sequenceDaniel Eklöf2024-02-06-0/+3
| | | | | | | | | | Setting the title ultimately leads to a call to xdg_toplevel::set_title(). It is a protocol violation to try to set a title that contains an invalid UTF-8 sequence: The string must be encoded in UTF-8. Closes #1552
* changelog: smm+rmmDaniel Eklöf2024-02-06-0/+4
|
* Don't use fancy Unicode quotes, stick to ASCIIDaniel Eklöf2024-02-06-49/+49
|
* changelog: pipe-command-outputDaniel Eklöf2024-02-06-0/+1
|
* changelog: custom modifiers in key bindingsDaniel Eklöf2024-02-06-0/+4
|
* feature: add resize-by-cells option to constrain window sizes...Andrew J. Hesford2024-02-05-0/+4
| | | | | ...to multiples of the cell size, and preserve grid size when changing fonts or display scales in floating windows.
* input: kitty: update to latest version of the specDaniel Eklöf2024-01-24-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting with kitty 0.32.0, the modifier bits during modifier key events behave differently, compared to before. Or, rather, they have now been spec:ed; before, behavior was different on e.g. MacOS, and Linux. The new behavior is this: On key press, the modifier bits in the kitty key event *includes* the pressed modifier key. On key release, the modifier bits in the kitty key event does *not* include the released modifier key. In other words, The modifier bits reflects the state *after* the key event. This is the exact opposite of what foot did before this patch. The patch is really pretty small: in order to include the key in the modifier set, we simulate a key press to update the XKB state, using xkb_state_uppate_key(). For key pressed, we simulate an XKB_KEY_DOWN event, and for key releases we simulate an XKB_KEY_UP event. Then we re-retrieve the modifers, both the full set, and the consumed set. Closes #1561
* slave: don't skip setting environment variables when using a custom environmentDaniel Eklöf2024-01-11-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When launching footclient with -E,--client-environment the environment variables that should be set by foot, wasn't. Those variables are: * TERM * COLORTERM * PWD * SHELL and all variables defined by the user in the [environment] section in foot.ini. In the same way, we did not *unset* TERM_PROGRAM and TERM_PROGRAM_VERSION. This patch fixes it by "cloning" the custom environment, making it mutable, and then adding/removing the variables above from it. Instead of calling setenv()/unsetenv() directly, we add the wrapper functions add_to_env() and del_from_env(). When *not* using a custom environment, they simply call setenv()/unsetenv(). When we *are* using a custom environment, add_to_env() first loops all existing variables, looking for a match. If a match is found, it's updated with the new value. If it's not found, a new entry is added. del_from_env() loops all entries, and removes it when a match is found. If no match is found, nothing is done. The mutable environment is allocated on the heap, but never free:d. We don't need to free it, since it's only allocated after forking, in the child process. Closes #1568
* config: fix cloning of env_vars tllistDaniel Eklöf2024-01-10-0/+2
| | | | | | | | | When cloning a config struct, the env_vars tllist wasn't correctly copied. We did correctly iterate and duplicate all old entries, but we did *not* reset the list in the cloned struct before doing so. This meant the list contained entries shared with the original list, causing double free:s in --server mode.
* wayland: surface_scale_explicit_width_height(): dont assert width/height are valid for scale, take 2Daniel Eklöf2024-01-09-0/+4
| | | | | | | | | | | | | | | | | | | | | | | 764248bb0d846f65c20931024c1f4adca57aae29 modified wayl_surface_scale_explicit_width_height() to not assert the surface size is valid for the given scaling factor. This, since that function is only used when scaling a mouse pointer surface. However, that commit only updated the code path run when fractional scaling is available (i.e. when the compositor implements the fractional-scale-v1 protocol). The legacy code path, that does integer scaling, was still asserting the surface width/height were divisible with the scaling factor. For the same reasons this isn't true with fractional scaling available, it's not true with integer scaling. Fix by skipping the assertions. This patch also converts the assertions to more verbose BUG() calls, that prints more information on the numbers involved. Closes #1573
* slave: chdir to / after spawning the client applicationDaniel Eklöf2024-01-03-0/+5
| | | | | | | | | | | With this patch, the terminal process now changes PWD to / after spawning the client application. This ensures the terminal process itself does not "lock" a directory. For example, we may keep a mount point from being unmounted. Closes #1528
* changelog: formattingDaniel Eklöf2024-01-03-1/+3
|
* support numpad in unicode modeSivecano2024-01-03-0/+3
|
* changelog: double close config file descriptorDaniel Eklöf2023-10-27-0/+4
|
* config: improve validation of color values, default alpha to 0xffDaniel Eklöf2023-10-26-0/+12
| | | | | | | | | | | | Reject color values that aren't in either RGB, or ARGB format. That is, color values that aren't hexadecimal numbers with either 6 or 8 digits. Also, if a color value is allowed to have an alpha component, and the user left it out, default to 0xff (opaque) rather than 0x00 (fully transparent). Closes #1526
* changelog: add new 'unreleased' sectionDaniel Eklöf2023-10-17-0/+12
|
* changelog: prepare for 1.16.2Daniel Eklöf2023-10-17-10/+3
|
* render: sixel: regression: wrong cell color behind opaque sixelsDaniel Eklöf2023-10-13-0/+7
| | | | | | | | | | | | | | An opaque sixel that isn't a multiple of the cell size will have some cells partially visible (either the entire last row, the entire last column, or both). These must be rendered before blitting the sixel. f5f2f5a954ee6cf3532a6aba023860ada183d486 introduced a regression, where all such cells were rendered as if the cursor was there, giving them the wrong appearance. Closes #1520
* changelog: add new 'unreleased' sectionDaniel Eklöf2023-10-12-0/+10
|
* changelog: prepare for 1.16.1Daniel Eklöf2023-10-12-10/+3
|
* render: fix surface damage when rendering sixels.Daniel Eklöf2023-10-12-0/+3
| | | | | | | | | | Pass a damage region to render_row()/render_cell() when rendering partially visible cells underneath a sixel. This ensures the affected regions are later reported as 'damaged' to the Wayland compositor. Closes #1515
* shm: memfd_create: fallback to not using MFD_NOEXEC_SEALDaniel Eklöf2023-10-12-0/+5
| | | | | | | | | | | | | | | | MFD_NOEXEC_SEAL was introduced in linux 6.3. Kernels before that will *reject* memfd_create() calls that set it. This caused foot to exit (i.e. not start at all), when compiled on linux >= 6.3, but run on linux < 6.3. We _do_ want to use MFD_NOEXEC_SEAL, since a) our memory mapped really shouldn't be executable, and b) to silence a warning on linux >= 6.3. To handle all cases, first try *with* MFD_NOEXEC_SEAL. If that fails with EINVAL, retry *without* it. Closes #1514
* changelog: fix link to issue 1077Daniel Eklöf2023-10-11-1/+1
|
* changelog: add new 'unreleased' sectionDaniel Eklöf2023-10-11-0/+11
|