| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | 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 | |
| | | | |||||
| * | | readme: rename ‘IRC, social media’ -> ‘Contact’ | Daniel Eklöf | 2020-11-27 | -2/+2 | |
| | | | |||||
| * | | readme: irc: add channel and my username | Daniel Eklöf | 2020-11-27 | -2/+12 | |
| | | | |||||
| * | | Merge branch 'split-cursor-blink-state' | Daniel Eklöf | 2020-11-27 | -94/+52 | |
| |\ \ | | | | | | | | | | Closes #218 | ||||
| | * | | term: split cursor blink state into two | Daniel Eklöf | 2020-11-26 | -38/+15 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| | * | | term: remove read-only properties copied from the config | Daniel Eklöf | 2020-11-26 | -56/+37 | |
| | | | | | | | | | | | | | Use the config directly instead. | ||||
| * | | | main: tag fdm loop with likely() and unlikely() | Daniel Eklöf | 2020-11-26 | -2/+2 | |
| | | | | |||||
| * | | | fdm: keep polling on EINTR | Daniel Eklöf | 2020-11-26 | -4/+5 | |
| | | | | |||||
| * | | | doc: foot.5: minor highlighting fixes | Daniel Eklöf | 2020-11-26 | -5/+6 | |
| | | | | |||||
| * | | | doc: foot.1: no need to say foot.ini twice | Daniel Eklöf | 2020-11-26 | -1/+1 | |
| |/ / | |||||
| * | | changelog: update contributor list | Daniel Eklöf | 2020-11-25 | -0/+1 | |
| | | | |||||
| * | | Merge branch 'dont-reflow-alt-screen' | Daniel Eklöf | 2020-11-25 | -20/+140 | |
| |\ \ | | | | | | | | | | Closes #221 | ||||
| | * | | grid: resize_without_reflow: don’t call min() on every loop iteration | Daniel Eklöf | 2020-11-25 | -1/+1 | |
| | | | | |||||
| | * | | resize: don’t reflow text on alt screen | Daniel Eklöf | 2020-11-25 | -20/+140 | |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | | Merge branch 'wl_output' | Daniel Eklöf | 2020-11-25 | -4/+11 | |
| |\ \ | | | | | | | | | | Closes #219 | ||||
| | * | | wayland: Use wl_output_release with wl_output v3 | Kenny Levinsen | 2020-11-24 | -4/+11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wl_output_release, the use of which was recently introduced, is not available until wl_output interface version 3. However, only wl_output version 2 was bound. This lead to protocol errors when a display was disconnected, causing foot to terminate. Instead, only use wl_output_release if wl_output version 3 is provided and bound. Otherwise, just use wl_output_destroy. Closes: https://codeberg.org/dnkl/foot/issues/219 | ||||
| * | | | Merge branch 'sixel-pgo' | Daniel Eklöf | 2020-11-24 | -2/+50 | |
| |\ \ \ | |||||
| | * | | | pkgbuild: add --sixel to generate-alt-random-writes | Daniel Eklöf | 2020-11-24 | -1/+1 | |
| | | | | | |||||
| | * | | | install: add --sixel to suggested command line for generate-alt-random-writes | Daniel Eklöf | 2020-11-24 | -0/+1 | |
| | | | | | |||||
| | * | | | scripts: generate-alt-random-writes: add --sixel | Daniel Eklöf | 2020-11-24 | -1/+48 | |
| |/ / / | | | | | | | | | | | | | When --sixel is specified, we generate random sixel images in the ‘normal’ screen, after exiting the alt screen. | ||||
| * | | | term: place frequently accessed members first in term struct | Daniel Eklöf | 2020-11-24 | -35/+34 | |
| | | | | | | | | | | | | | To hopefully use the cache better. | ||||
| * | | | Merge branch 'increase-sixel-default-max-size' | Daniel Eklöf | 2020-11-24 | -27/+21 | |
| |\ \ \ | |/ / |/| | | |||||
| | * | | sixel: change default max size to 10000x10000 | Daniel Eklöf | 2020-11-23 | -27/+21 | |
| |/ / | | | | | | | | | 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. | ||||
| * | | render: don’t call term_arm_blink_timer() from multiple threads | Daniel Eklöf | 2020-11-23 | -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-11-23 | -4/+2 | |
| | | | |||||
| * | | foot/footclient: add short options to all command line options | Daniel Eklöf | 2020-11-23 | -22/+24 | |
| | | | | | | | | | | | | | | | | | | | | | | | 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/-W | Daniel Eklöf | 2020-11-23 | -1/+1 | |
| | | | |||||
| * | | Merge branch 'footclient-w' | Daniel Eklöf | 2020-11-23 | -13/+68 | |
| |\ \ | | | | | | | | | | Closes #189. | ||||
| | * | | client: add new "--window-size-*" options to docs and CHANGELOG.md | Craig Barnes | 2020-11-22 | -0/+12 | |
| | | | | |||||
| | * | | client: add "--window-size-pixels" and "--window-size-chars" options | Craig Barnes | 2020-11-22 | -13/+56 | |
| |/ / | |||||
| * | | Merge branch 'pgo' | Daniel Eklöf | 2020-11-22 | -73/+536 | |
| |\ \ | | | | | | | | | | Closes #107 | ||||
| | * | | pkgbuild: revert accidental update of version | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | install: minor tweaks to PGO instructions | Daniel Eklöf | 2020-11-22 | -3/+5 | |
| | | | | |||||
| | * | | changelog: update link to install instructions for PGO | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | install: re-write release build instructions | Daniel Eklöf | 2020-11-22 | -42/+51 | |
| | | | | |||||
| | * | | install: re-write description of recommended flags, and add size comparison | Daniel Eklöf | 2020-11-22 | -10/+27 | |
| | | | | |||||
| | * | | pkgbuild: no need to run pgo input *that* many times | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | changelog: add note about PGO without Wayland | Daniel Eklöf | 2020-11-22 | -0/+9 | |
| | | | | |||||
| | * | | install: no need to run input *that* many times | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | pgo: feed VT data through fdm_ptmx(), not vt_from_slave() | Daniel Eklöf | 2020-11-22 | -7/+64 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fdm_ptmx(), the FDM callback handler for ptmx data, is just as much in the hot path as vt_from_slave(). It is also slightly more complicated than a read() followed by a call to vt_from_slave(). As a result, some benchmarks performed significantly worse in a partial PGO build than in a full PGO build, since fdm_ptmx() wasn’t PGO:d. To be able to feed data through fdm_ptmx(), we need to set up the delayed rendering timer FDs, configure the timeout values, and provide a readable FD it can read the VT data from. The latter is done with a memory FD. This ensures *all* VT data is loaded into memory before we feed it to the parser. | ||||
| | * | | render: no need to call attrs_to_font(), we already have a font reference | Daniel Eklöf | 2020-11-22 | -8/+4 | |
| | | | | |||||
| | * | | pgo: initialize (mouse) selection | Daniel Eklöf | 2020-11-22 | -0/+4 | |
| | | | | |||||
| | * | | pgo: initialize a dummy wayland backend | Daniel Eklöf | 2020-11-22 | -0/+11 | |
| | | | | | | | | | | | | | | | | | | | * Empty seat list * Empty monitor list * Add dummy terminal instance to terminal list | ||||
| | * | | scripts: generate-alt-random-writes: add unicode and multi-column chars | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | install: add --attr-{bold,italic,underline} to generate-alt-random-writes | Daniel Eklöf | 2020-11-22 | -1/+4 | |
| | | | | |||||
| | * | | pkgbuild: add --attr-{bold,italic,underline} to generate-alt-random-writes | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | scripts: generate-alt-random-writes: add support for bold/italic/underline | Daniel Eklöf | 2020-11-22 | -0/+10 | |
| | | | | |||||
| | * | | scripts: generate-alt-random-writes: don’t always reset all attributes | Daniel Eklöf | 2020-11-22 | -4/+5 | |
| | | | | |||||
| | * | | scripts: generate-alt-random-writes: mix \e[S with \n | Daniel Eklöf | 2020-11-22 | -1/+5 | |
| | | | | |||||
| | * | | remove pre-generated input corpus for PGO | Daniel Eklöf | 2020-11-22 | -12/+44 | |
| | | | | |||||
| | * | | pgo: updated stimuli (256-indexed colors) | Daniel Eklöf | 2020-11-22 | -262144/+1 | |
| | | | | |||||
| | * | | pkgbuild: add --colors-256 to generate-alt-random-writes | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | install: add --colors-256 to generate-alt-random-writes | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | scripts: generate-alt-random-writes: add support for emitting 256-indexed colors | Daniel Eklöf | 2020-11-22 | -0/+15 | |
| | | | | |||||
| | * | | scripts: generate-alt-random-writes: mix new/old-style RGB escapes | Daniel Eklöf | 2020-11-22 | -1/+8 | |
| | | | | |||||
| | * | | scripts: generate-alt-random-writes: add command line arguments for cols/rows | Daniel Eklöf | 2020-11-22 | -0/+7 | |
| | | | | |||||
| | * | | pgo: pull in selection.c in pgolib | Daniel Eklöf | 2020-11-22 | -65/+6 | |
| | | | | | | | | | | | | | | | | Some of the selection functions are in the hot path, so this makes a huge difference! | ||||
| | * | | pgo: support for specifying multiple stimuli files | Daniel Eklöf | 2020-11-22 | -14/+56 | |
| | | | | |||||
| | * | | install: small rewording and restructuring of PGO instructions | Daniel Eklöf | 2020-11-22 | -12/+10 | |
| | | | | |||||
| | * | | install: update PGO instructions | Daniel Eklöf | 2020-11-22 | -4/+43 | |
| | | | | |||||
| | * | | pgo: move pgo.c and pgo stimuli to pgo directory | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | scripts: generate-alt-random-writes: don’t re-use ‘count’ variable | Daniel Eklöf | 2020-11-22 | -2/+2 | |
| | | | | |||||
| | * | | pgo: increase simulated terminal size | Daniel Eklöf | 2020-11-22 | -4/+262147 | |
| | | | | |||||
| | * | | meson: link ‘pgo’ with -lm and -pthreads | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | meson: move log.{c,h} to ‘misc’ | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | meson: add ‘version.h’ to vtlib | Daniel Eklöf | 2020-11-22 | -0/+1 | |
| | | | | |||||
| | * | | meson: vtlib: add missing ‘fcft’ dependecy | Daniel Eklöf | 2020-11-22 | -1/+1 | |
| | | | | |||||
| | * | | meson: add missing ‘tllist’ dependency to vtlib, pgolib and pgo | Daniel Eklöf | 2020-11-22 | -3/+3 | |
| | | | | |||||
| | * | | wip: pgo without Wayland | Daniel Eklöf | 2020-11-22 | -13/+271 | |
| |/ / | | | | | | | | | | | | | | | | | * Split up source files into several static libraries: misc + vtlib * Add a new executable, pgo, that links to vtlib * pgo is kind of like a mock test: - provides stub implementations of functions not present in vtlib - sets up a dummy terminal instance - calls vt_from_slave() with static (pre-generated) content | ||||
| * | | Merge branch 'footclient-m-flag' | Daniel Eklöf | 2020-11-22 | -1/+2 | |
| |\ \ | |||||
| | * | | client: fix handling of "-m" command-line flag | Craig Barnes | 2020-11-22 | -1/+2 | |
| |/ / | |||||
| * | | changelog: update contributors | Daniel Eklöf | 2020-11-21 | -0/+2 | |
| | | | |||||
| * | | Merge branch 'footclient-getopt-fix' | Daniel Eklöf | 2020-11-21 | -1/+1 | |
| |\ \ | |||||
| | * | | client: add missing options to getopt_long(3) optstring argument | Craig Barnes | 2020-11-21 | -1/+1 | |
| |/ / | |||||
| * | | client-protocol: codespell: stati -> static | Daniel Eklöf | 2020-11-21 | -1/+1 | |
| | | | |||||
| * | | server: avoid doing unaligned struct accesses | Daniel Eklöf | 2020-11-21 | -28/+31 | |
| | | | |||||
| * | | client: we added argv lengths twice | Daniel Eklöf | 2020-11-21 | -1/+0 | |
| | | | |||||
| * | | client: avoid doing a signed vs. unsigned comparison | Daniel Eklöf | 2020-11-21 | -1/+1 | |
| | | | |||||
| * | | server: verify strings are NULL terminated | Daniel Eklöf | 2020-11-21 | -5/+14 | |
| | | | |||||
| * | | client/server: simplify setup packet handling | Daniel Eklöf | 2020-11-21 | -169/+118 | |
| | | | | | | | | | | | | | Instead of writing (and logging errors for) every parameter, one at a time, send all fixed size data in a single struct, followed by all the variable length data. | ||||
| * | | Merge branch 'dpi-unaware' | Daniel Eklöf | 2020-11-19 | -11/+87 | |
| |\ \ | |||||
| | * | | terminal: use 96, not 75, for DPI when being DPI unaware | Daniel Eklöf | 2020-11-19 | -4/+4 | |
| | | | | |||||
| | * | | config: add ‘dpi-aware’ option, defaulting to enabled | Daniel Eklöf | 2020-11-19 | -11/+87 | |
| |/ / | | | | | | | | | | | | | | | | | | | When disabled, foot no longers uses outputs’ DPI to scale the font. Instead, it uses the outputs’ scaling factor. That is, instead of appending “:dpi=123” to the fontconfig string, modify the “:pixelsize” or “:size” attribute. Closes #206 | ||||
| * | | Merge branch 'require-space-to-overflow-double-width-glyph' | Daniel Eklöf | 2020-11-19 | -1/+5 | |
| |\ \ | |||||
