aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
* changelog: prepare for 1.6.4Daniel Eklöf2021-02-12-3/+1
|
* selection: don’t strip formatting C0 control characters in bracketed paste modeDaniel Eklöf2021-02-12-0/+4
| | | | | | | | It’s ok to let the receiving end handle formatting C0 control characters in bracketed paste mode. In fact, we *must* let them through. Otherwise it is impossible to paste e.g. tabs into editors and similar applications.
* changelog: use standard signals for SIGCHLDDaniel Eklöf2021-02-12-0/+3
|
* changelog: selection-target=none|primary|clipboard|bothDaniel Eklöf2021-02-12-0/+8
|
* changelog: -Dterminfo changed from boolean to feature optionDaniel Eklöf2021-02-12-0/+2
|
* ime: Reset terminal's IME state on text_input.leaveTadeo Kondrak2021-02-12-0/+7
| | | | | | | | To reproduce issue: - Launch an IME from inside foot - Type in some preedit text - Use Ctrl-C to close the IME - IME text stays in terminal until focus is changed
* changelog: add section for 1.6.4Daniel Eklöf2021-02-12-0/+11
|
* changelog: prepare for 1.6.3Daniel Eklöf2021-01-29-3/+1
|
* Send text_input_rectangle requests for text-inputTadeo Kondrak2021-01-29-0/+3
|
* search: fix matching of multi-column charactersDaniel Eklöf2021-01-26-0/+1
| | | | | We were matching the sub-sequence SPACERs as if they were regular characters, which obviously failed.
* selection: strip non-formatting C0, BS, HT and DEL from pasted textDaniel Eklöf2021-01-26-0/+2
|
* ime: fix rendering of pre-edit cursor when positioned after the pre-edit stringDaniel Eklöf2021-01-26-0/+2
| | | | | | | | | | | | We failed to convert the byte-indices to cell indices, resulting in a box cursor covering the entire pre-edit string. Note that in addition to fixing the translation from byte index to cell index, the rendered had to be updated to dirty one extra cell from the original grid. Without this, we left trailing cursors behind us when the user deleted text from the pre-edit string.
* search: ad-hoc workaround for combining characters with positive x-offsetsDaniel Eklöf2021-01-26-0/+1
| | | | | | | | | | | | When rendering the search input box, do the same ad-hoc workaround for combining characters with a positive x-offset as we do when rendering normal grid cells. In this case, we don’t *know* when we’re dealing with combining characters. But we can detect zero-width characters. For these, check their glyph’s x-offset. If positive, adjust it like we do when rendering combining glyphs in the main grid, to ensure the glyph is positioned over the _previous_ character, not the next.
* changelog: high cpu usage while holding down e.g. arrow keys in search modeDaniel Eklöf2021-01-26-0/+2
|
* search: fix matching against composed charactersDaniel Eklöf2021-01-26-0/+1
|
* changelog: search input box no longer accepts non-printablesDaniel Eklöf2021-01-26-0/+1
|
* terminal: fix encoding of mouse buttons 6 and 7 in mouse eventsDaniel Eklöf2021-01-26-0/+1
| | | | | | | | | | | | | | | | | These two buttons were encoded using the *exact* same numbers as button 4 and 5 (scroll wheel up/down), making it impossible to distinguish them. The relevant section from XTerm’s control sequences documentation is: Some wheel mice can send additional button events, e.g., by tilting the scroll wheel left and right. Additional buttons are encoded like the wheel mice, o by adding 64 (for buttons 6 and 7), or o by adding 128 (for buttons 8 through 11).
* changelog: add bug ref to the ‘FreeBSD support’ entryDaniel Eklöf2021-01-23-1/+1
|
* changelog: freebsd supportDaniel Eklöf2021-01-23-0/+2
|
* input: don’t enable keyboard repeat timer when repeat rate is zeroDaniel Eklöf2021-01-21-0/+1
| | | | | | | | | | wayland-client-protocol.h: Negative values for either rate or delay are illegal. A rate of zero will disable any repeating (regardless of the value of delay). This fixes a division-by-zero crash.
* sixel: current geometry: don’t exceed current window dimensionsDaniel Eklöf2021-01-21-0/+2
| | | | | This is similar to what XTerm does, and fixes an issue with lsix, where the output did not wrap.
* changelog: add hyphen between ‘newline’ and ‘terminated’Daniel Eklöf2021-01-21-2/+3
|
* changelog: pasting non-newline terminated text/uri-list offersDaniel Eklöf2021-01-21-0/+2
|
* changelog: glyhps -> glyphsDaniel Eklöf2021-01-21-1/+1
|
* Add fish completionFollieHiyuki2021-01-21-0/+6
|
* render: draw combining characters on top of colored bitmap glyphs (emoji)Daniel Eklöf2021-01-21-0/+2
|
* Add myself to ContributorsPeter Colberg2021-01-21-0/+1
|
* Require trailing comment to be preceded by a space or tabPeter Colberg2021-01-21-0/+7
| | | | | | Fixes `word-delimiters` option to not ignore `#` and subsequent characters. Closes #270
* render: mark cell overflowed into as dirtyDaniel Eklöf2021-01-21-0/+3
| | | | | | | | | | | | | | | | When tweak.allow-overflowing-double-width-glyphs=yes, then certain glyphs are allowed to overflow into the neighbouring cell. However, if the cell “owning” the double-width glyph is erased (_only_ that cell), then the cell overflowed into is not redrawn, causing part of the double-width glyph to remain on screen. To avoid checking for these glyphs when printing to the terminal (i.e at parse time), simply mark both cells as dirty when we render the overflowing glyph. Yes, this means that the cells will always be re-rendered. We count on them only making up a small portion of the screen.
* changelog: update ‘contributors’Daniel Eklöf2021-01-21-0/+2
|
* ime: don’t call text-input functions when it isn’t availableDaniel Eklöf2021-01-21-0/+2
| | | | Closes #259
* terminal: shutdown (or --hold) when the client process terminatesDaniel Eklöf2021-01-21-0/+5
| | | | | | | | | Shutdown the terminal when the client process terminates, not when the ptmx file descriptor is closed. This fixes an issue where the terminal remains running after the client process has terminated, if it spawned child processes that inherited the ptmx file descriptor.
* changelog: add empty 1.6.3 sectionDaniel Eklöf2021-01-21-0/+11
|
* meson/pkgbuild: bump version to 1.6.21.6.2Daniel Eklöf2020-12-21-0/+8
|
* changelog: prepare for 1.6.11.6.1Daniel Eklöf2020-12-21-3/+0
|
* changelog: mention -Wno-profile-instr-unprofiledDaniel Eklöf2020-12-21-0/+2
|
* changelog: mention --seed in in generate-alt-random.puDaniel Eklöf2020-12-21-0/+5
|
* generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a containerDaniel Eklöf2020-12-21-0/+1
| | | | | | This _should_ only happen when we’re doing a partial PGO build, since then the script is run in the parent terminal. In this case, the user is expected to use --rows/--cols anyway.
* changelog: use -std=c11 instead of -std=c18Daniel Eklöf2020-12-21-0/+4
|
* changelog: update ‘contributors’Daniel Eklöf2020-12-20-0/+3
|
* changelog: remove trailing ‘5’Daniel Eklöf2020-12-20-1/+1
|
* render: fix rounding error when calculating background color with alphaDaniel Eklöf2020-12-20-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | We use pre-multiplied alpha color channels, but were having bad rounding errors due to the alpha divider being truncated to an integer. The algorithm for pre-multiplying a color channel is: alpha_divider = 0xffff / alpha pre_mult_color = color / alpha_divider In order to fix the rounding errors, we could turn ‘alpha_divider’ into a double. That however would introduce a performance penalty since now we’d need to do floating point math for each cell. The algorithm can be trivially converted to: pre_mult_color = color * alpha / 0xffff Since both color and alpa values are < 65536, the multiplication is “safe”; it will not overflow an uint32_t. Closes #249
* changelog: mention meson dependency fixDaniel Eklöf2020-12-20-0/+5
|
* changelog: add 1.6.1 sectionDaniel Eklöf2020-12-20-0/+11
|
* changelog: fix link to "1.6.0" headingCraig Barnes2020-12-20-1/+1
|
* changelog: prepare for 1.6.0Daniel Eklöf2020-12-18-6/+2
|
* changelog: move entry for dpi-aware up, to make it more visibleDaniel Eklöf2020-12-18-7/+7
|
* changelog: use code/monospace highlighting for foot.ini config optionsDaniel Eklöf2020-12-18-17/+17
|
* Merge branch 'dpi-aware-when-scaling-factor-is-one'Daniel Eklöf2020-12-18-4/+7
|\
| * fonts: size fonts using the scaling factor when output scaling is enabledDaniel Eklöf2020-12-17-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This extends the new ‘dpi-aware’ option with a new default value, ‘auto’. When set to ‘auto’, fonts are sized using monitors’ DPI when output scaling is disabled. When output scaling is enabled, fonts are instead sized using the scaling factor. The reasoning here is that a user that has enabled output scaling is obviously *not* relying on DPI scaling. Output scaling can also be a way to compensate for different viewing distances, in which case we do *not* want to break that by using DPI scaling. Users can still force DPI-only font sizing by setting ‘dpi-aware=yes’, or disable it completely by setting ‘dpi-aware=no’.
* | terminfo: add status line capabilities: hs, dsl, fsl and tslDaniel Eklöf2020-12-18-0/+3
|/ | | | | | | | | * hs - boolean, signals status line availability * tsl - to_status_line: begin an OSC 2 sequence (set window title) * fsl - from_status_line: OSC terminator * dsl - disable status line: \E]2;\E\\ - clears the window title Closes #242
* vt: don’t ignore extra private/intermediate charactersDaniel Eklöf2020-12-16-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take ‘\E(#0’ for example - this is *not* the same as ‘\E(0’. Up until now, foot has however treated them as the same escape, because the handler for ‘\E(0’ didn’t verify there weren’t any _other_ private characters present. Fix this by turning the ‘private’ array into a single 4-byte integer. This allows us to match *all* privates with a single comparison. Private characters are added to the LSB first, and MSB last. This means we can check for single privates in pretty much the same way as before: switch (term->vt.private) { case ‘?’: ... break; } Checking for two (or more) is much uglier, but foot only supports a *single* escape with two privates, and no escapes with three or more: switch (term->vt.private) { case 0x243f: /* ‘?$’ */ ... break; } The ‘clear’ action remains simple (and fast), with a single write operation. Collecting privates is potentially _slightly_ more complex than before; we now need mask and compare, instead of simply comparing, when checking how many privates we already have. We _could_ add a counter, which would make collecting privates easier, but this would add an additional write to the ‘clean’ action which is really bad since it’s in the hot path.
* csi: implement DECRQM (DEC modes), for realDaniel Eklöf2020-12-16-0/+2
| | | | | Previously, we always returned ‘2 - reset’, instead of the actual state of the requested mode.
* changelog: ECMA-4*8*Daniel Eklöf2020-12-16-1/+1
|
* changelog: group ‘bell’ entries togetherDaniel Eklöf2020-12-16-3/+3
|
* config_font_parse(): return fail/successDaniel Eklöf2020-12-15-0/+1
|
* csi: SGR 21 is “double underline”, not “disable bold” (according to ECMA-48)Daniel Eklöf2020-12-14-0/+3
|
* term: enabling application synchronized updates clear pending grid refreshDaniel Eklöf2020-12-14-0/+2
| | | | | | | | | | | This fixes issues with de-synchronized frames being rendered; we may have scheduled a redraw earlier, that hasn’t yet triggered (probably because we’re waiting for a frame callback), when we enable application synchronized updates. This means we risk rendering a partially updated state when the frame callback finally arrives, if the application hasn’t yet ended its synchronized update.
* csi: fix sub-parameter versions of 38/48 SGR escapesDaniel Eklöf2020-12-12-0/+6
| | | | | | | | | | | | | | | | | | | Well this is embarrassing; the sub-parameter versions of the 38/48 SGR escapes all required an extra ‘:2’ that wasn’t supposed to be there, causing all the other sub-parameters to be shifted one step to the right. That is, foot expected e.g. 38:2:2:r:g:b, or 38:2:5:idx when the correct sequences are 38:2:cs:r:g:b and 38:5:idx. I.e. I mixed up the color-space ID (cs) of 38:2 with *type* of color: RGB or indexed. In addition to fixing this, this patch also adds support for a “bastard” version of the sub-parameter based RGB escapes, where the color-space identifier has been left out: e.g. 38:2:r:g:b. This sequence is invalid, but applications tend to “forget” the color-space ID...
* input: report mouse drag events also when the pointer is outside the gridDaniel Eklöf2020-12-11-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As long as the mouse button was *pressed* while the pointer was inside the grid, we want to keep reporting motion events until the button is released. Even when the pointer moves outside the grid (but in this case, the reported coordinates are bounded by the grid size). This patch also tries to improve multi-button handling (i.e. multiple buttons pressed at the same time), and the events we report to the client for these, in the following ways: * Motion events now report the *initial* button. That is, if you start a drag operation with the LEFT button, then press RIGHT (before releasing LEFT), keep reporting LEFT in the motion events. * Mouse release events are reported for *any* button, as long as the pointer is *inside* the grid, *or*, the button released was the button used to start a drag operation. The last point is important; if we have reported a button press followed by motion events (i.e. a drag operation), we need to report the button release, *even* if the pointer is outside the grid. Note that the client may receive unbalanced button press/release events in the following ways if the user pressed one, and then a second button *inside* the grid, then releases the *first* button (possibly outside the grid), and finally releases the *second* button *outside* the grid. In this case, both buttons will report press events. The first button will report a release event since it is the initial button in the drag operation. However, we don’t track the fact that the second button is being pressed, and thus if it is released outside the grid, it wont generate a release event.
* csi: ‘CSI s’ and ‘CSI u’ now saves/restores attributes and charsetsDaniel Eklöf2020-12-11-0/+2
|
* config: add ‘notify’ to possible values for ‘bell’ in foot.iniDaniel Eklöf2020-12-10-0/+3
| | | | | When `bell=notify`, foot will trigger a desktop notification when it receives a BEL in an unfocused window.
* osc: implement urxvt’s “OSC 777;notify”Daniel Eklöf2020-12-09-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC 777 is URxvt’s generic escape to send commands to its perl extensions. The first parameter is the name of the extension, followed by its arguments. OSC 777;notify is a, if not well established, at least a fairly well known escape sequence to request a (desktop) notification. The syntax is: \e]777;notify;<title>;<body>\e\\ Neither title nor body is escaped in any way, meaning they should not contain a ‘;’. Foot will split title from body at the *first* ‘;’. Any remaining ‘;’ characters are treated as part of ‘body’. Instead of adding built-in support for the freedesktop notification specification (which would require us to link against at least dbus), add a new config option to foot.ini: ‘notify’. This option specifies the command to execute when a notification is received. ‘${title}’ and ‘${body}’ can be used anywhere, in any combination, and as many times as you want, in any of the command arguments. The default value is ‘notify-send -a foot -i foot ${title} ${body}’
* Merge branch 'remove-deprecated-things'Daniel Eklöf2020-12-09-0/+7
|\
| * config: remove support for scrollback-up and scrollback-downDaniel Eklöf2020-12-08-0/+1
| |
| * config: remove support for default.geometryDaniel Eklöf2020-12-08-0/+1
| |
| * config: remove support for default.scrollbackDaniel Eklöf2020-12-08-0/+1
| |
| * config: remove support for loading configuration from footrcDaniel Eklöf2020-12-08-0/+4
| |
* | changelog: don’t repeat ‘IME’Daniel Eklöf2020-12-08-1/+1
| |
* | changelog: add missing space in escape sequenceDaniel Eklöf2020-12-08-1/+1
| |
* | changelog: consistently use ‘CSI ? X h/l’ instead of `\E[?Xh/l`Daniel Eklöf2020-12-08-5/+5
| |
* | changelog: DECSET 737769 - enable/disable IMEDaniel Eklöf2020-12-07-0/+3
| |
* | changelog: ime: add link to INSTALL.mdDaniel Eklöf2020-12-07-1/+3
| |
* | changelog: IME supportDaniel Eklöf2020-12-07-0/+1
|/
* changelog: DECSET 27127 - modifies Esc to send \E[27127~ instead of \EDaniel Eklöf2020-12-07-0/+3
|
* config: ignore “self” when detecting key binding collisionsDaniel Eklöf2020-12-05-0/+5
| | | | | | | | | | | | | | | | | | | | | | | 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öf2020-12-05-4/+0
| | | | This crash doesn’t not exist in any release versions.
* Merge branch 'releases/1.5'Daniel Eklöf2020-12-01-13/+29
|\
| * keymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiersDaniel Eklöf2020-12-01-0/+1
| |
| * changelog: update contributorsDaniel Eklöf2020-12-01-0/+5
| |
| * sixel: fix crash when an explicit sixel size had a height less than 6 pixelsDaniel Eklöf2020-12-01-0/+1
| |
| * client: fix handling of "-m" command-line flagCraig Barnes2020-12-01-0/+1
| |
| * keymap: fix alt+return combosDaniel Eklöf2020-12-01-0/+1
| | | | | | | | | | | | | | | | 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_TabDaniel Eklöf2020-12-01-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * config: enable allow-overflowing-double-width-glyphs by defaultDaniel Eklöf2020-12-01-0/+4
| |
| * changelog: fix link to readme#keypadDaniel Eklöf2020-12-01-2/+3
| |
| * readme/doc:foot.1: document the (new) keypad behaviorDaniel Eklöf2020-12-01-0/+7
| |
| * wayland: preempt render scheduling in ‘configure’ eventsDaniel Eklöf2020-12-01-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.4Daniel Eklöf2020-12-01-0/+7
| |
* | selection: do not try to paste un-handled mime typesDaniel Eklöf2020-11-30-0/+2
| | | | | | | | Closes #230
* | keymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiersDaniel Eklöf2020-11-28-0/+1
| |
* | term: split cursor blink state into twoDaniel Eklöf2020-11-26-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two different escape sequences that can be used to set the cursor blink state: ‘CSI ? 12 h/l’ and ‘CSI Ps SP q’. Up until now, they both modified the same internal state in foot. This meant you could enable a blinking cursor with e.g. ‘CSI ? 12 h’ and then disable it with ‘CSI 2 SP q’. Since the ‘CSI ? 12’ escapes are used in the civis/cnorm/cvvis terminfo entries, applications often ended up disabling the blink state on exit (typically be emitting ‘cnorm’), requiring users to manually re-enable blinking. By splitting the internal state into two separate states, we can improve the situation. The cursor will blink if at least one of the two have been enabled. The setting in foot.ini sets the default state of the ‘CSI Ps SP q’ escape. This means if the user has enabled blinking in the configuration, the cursor will blink regardless of civis/cnorm/cvvis. Which probably is what the user wants. If the user has NOT enabled blinking, civis/cnorm/cvvis act as intended: cvvis blink, civis and cnorm do not. If an application overrides the cursor blink/style with ‘CSI Ps SP q’, that will override the user’s setting in foot.ini. But most likely that too is intended (for example, the user may have configured the application to use a different cursor style). And, a well written application will emit the ‘Se’ terminfo sequence on exit, which in foot is defined to ‘CSI SP q’, which will reset both the style and blink state to the user configured style/state. Closes #218
* | changelog: update contributor listDaniel Eklöf2020-11-25-0/+1
| |
* | resize: don’t reflow text on alt screenDaniel Eklöf2020-11-25-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alt screen applications normally reflow/readjust themselves on a window resize. When we do it too, the result is graphical glitches/flashes since our re-flowed text is rendered in one frame, and the application re-flowed text soon thereafter. We can’t avoid rendering some kind of re-flowed frame, since we don’t know when, or even if, the application will update itself. To avoid glitches, we need to render, as closely as possible, what the application itself will render shortly. This is actually pretty simple; we just need to copy the visible content over from the old grid to the new grid. We don’t bother with text re-flow, but simply truncate long lines. To simplify things, we simply cancel any active selection (since often times, it will be corrupted anyway when the application redraws itself). Since we’re not reflowing text, there’s no need to translate e.g. the cursor position - we just keep the current position (but bounded to the new dimensions). Fun thing: ‘less’ gets corrupted if we don’t leave the cursor at the (new) bottom row. To handle this, we check if the cursor (before resize) is at the bottom row, and if so, we move it to the new bottom row. Closes #221
* | sixel: change default max size to 10000x10000Daniel Eklöf2020-11-23-0/+2
| | | | | | | | | | It used to be the size of the window. This caused images to be cropped when the application emitting them didn’t change the max size.
* | sixel: fix crash when an explicit sixel size had a height less than 6 pixelsDaniel Eklöf2020-11-23-0/+1
| |
* | foot/footclient: add short options to all command line optionsDaniel Eklöf2020-11-23-0/+2
| | | | | | | | | | | | | | | | | | | | | | e81388336750a20a2da98a57e9726c8ba1b481e3 added “missing” short command line options to footclient. Except they weren’t missing; they were intentionally missing short options and only supported long options. This commit makes the new/missing short options “official”, by adding documentation, zsh completions and including them in usage().
* | changelog: add issue ref to footclient -w/-WDaniel Eklöf2020-11-23-1/+1
| |
* | client: add new "--window-size-*" options to docs and CHANGELOG.mdCraig Barnes2020-11-22-0/+2
| |
* | changelog: update link to install instructions for PGODaniel Eklöf2020-11-22-1/+1
| |