aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * changelog: add entry for 1.5.4Daniel Eklöf2020-12-01-0/+7
| |
* | Merge branch 'modify-escape-key'Daniel Eklöf2020-12-01-1/+16
|\ \ | | | | | | | | | Closes #225
| * | csi: add new private mode that makes the Escape key emit "\E[27;1;27~"Craig Barnes2020-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öf2020-12-01-2/+8
|\ \ \ | | | | | | | | | | | | Closes #230
| * | | selection: do not try to paste un-handled mime typesDaniel Eklöf2020-11-30-2/+8
| | | | | | | | | | | | | | | | Closes #230
* | | | input: relax requirements for overriding keypad application modeDaniel Eklöf2020-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öf2020-11-30-6/+17
|\ \ \ \
| * | | | base64: only allow padding bytes at the end of a string when decodingCraig Barnes2020-11-30-6/+17
| | | | |
* | | | | Merge branch 'simplify-config-struct'Daniel Eklöf2020-11-30-46/+16
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | config: replace union in config struct with simple width/height membersCraig Barnes2020-11-30-46/+16
| |/ / /
* | | | selection: offer clipboard content in more mime typesDaniel Eklöf2020-11-30-0/+10
| | | |
* | | | input: improved debug logging of pressed keysDaniel Eklöf2020-11-30-10/+9
|/ / /
* | | Merge branch 'base64-optimize'Daniel Eklöf2020-11-29-32/+27
|\ \ \ | |/ / |/| |
| * | base64: optimize error checking in base64_decode()Craig Barnes2020-11-29-32/+27
|/ /
* | keymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiersDaniel Eklöf2020-11-28-0/+16
| |
* | doc: foot.1: add IRC channelDaniel Eklöf2020-11-27-0/+4
| |
* | readme: better link to freenodeDaniel Eklöf2020-11-27-1/+2
| |
* | readme: rename ‘IRC, social media’ -> ‘Contact’Daniel Eklöf2020-11-27-2/+2
| |
* | readme: irc: add channel and my usernameDaniel Eklöf2020-11-27-2/+12
| |
* | Merge branch 'split-cursor-blink-state'Daniel Eklöf2020-11-27-94/+52
|\ \ | | | | | | | | | Closes #218
| * | term: split cursor blink state into twoDaniel Eklöf2020-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 configDaniel Eklöf2020-11-26-56/+37
| | | | | | | | | | | | Use the config directly instead.
* | | main: tag fdm loop with likely() and unlikely()Daniel Eklöf2020-11-26-2/+2
| | |
* | | fdm: keep polling on EINTRDaniel Eklöf2020-11-26-4/+5
| | |
* | | doc: foot.5: minor highlighting fixesDaniel Eklöf2020-11-26-5/+6
| | |
* | | doc: foot.1: no need to say foot.ini twiceDaniel Eklöf2020-11-26-1/+1
|/ /
* | changelog: update contributor listDaniel Eklöf2020-11-25-0/+1
| |
* | Merge branch 'dont-reflow-alt-screen'Daniel Eklöf2020-11-25-20/+140
|\ \ | | | | | | | | | Closes #221
| * | grid: resize_without_reflow: don’t call min() on every loop iterationDaniel Eklöf2020-11-25-1/+1
| | |
| * | resize: don’t reflow text on alt screenDaniel Eklöf2020-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öf2020-11-25-4/+11
|\ \ | | | | | | | | | Closes #219
| * | wayland: Use wl_output_release with wl_output v3Kenny Levinsen2020-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öf2020-11-24-2/+50
|\ \ \
| * | | pkgbuild: add --sixel to generate-alt-random-writesDaniel Eklöf2020-11-24-1/+1
| | | |
| * | | install: add --sixel to suggested command line for generate-alt-random-writesDaniel Eklöf2020-11-24-0/+1
| | | |
| * | | scripts: generate-alt-random-writes: add --sixelDaniel Eklöf2020-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 structDaniel Eklöf2020-11-24-35/+34
| | | | | | | | | | | | To hopefully use the cache better.
* | | Merge branch 'increase-sixel-default-max-size'Daniel Eklöf2020-11-24-27/+21
|\ \ \ | |/ / |/| |
| * | sixel: change default max size to 10000x10000Daniel Eklöf2020-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 threadsDaniel Eklöf2020-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 pixelsDaniel Eklöf2020-11-23-4/+2
| |
* | foot/footclient: add short options to all command line optionsDaniel Eklöf2020-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/-WDaniel Eklöf2020-11-23-1/+1
| |
* | Merge branch 'footclient-w'Daniel Eklöf2020-11-23-13/+68
|\ \ | | | | | | | | | Closes #189.
| * | client: add new "--window-size-*" options to docs and CHANGELOG.mdCraig Barnes2020-11-22-0/+12
| | |
| * | client: add "--window-size-pixels" and "--window-size-chars" optionsCraig Barnes2020-11-22-13/+56
|/ /
* | Merge branch 'pgo'Daniel Eklöf2020-11-22-73/+536
|\ \ | | | | | | | | | Closes #107
| * | pkgbuild: revert accidental update of versionDaniel Eklöf2020-11-22-1/+1
| | |
| * | install: minor tweaks to PGO instructionsDaniel Eklöf2020-11-22-3/+5
| | |
| * | changelog: update link to install instructions for PGODaniel Eklöf2020-11-22-1/+1
| | |
| * | install: re-write release build instructionsDaniel Eklöf2020-11-22-42/+51
| | |
| * | install: re-write description of recommended flags, and add size comparisonDaniel Eklöf2020-11-22-10/+27
| | |
| * | pkgbuild: no need to run pgo input *that* many timesDaniel Eklöf2020-11-22-1/+1
| | |
| * | changelog: add note about PGO without WaylandDaniel Eklöf2020-11-22-0/+9
| | |
| * | install: no need to run input *that* many timesDaniel Eklöf2020-11-22-1/+1
| | |
| * | pgo: feed VT data through fdm_ptmx(), not vt_from_slave()Daniel Eklöf2020-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 referenceDaniel Eklöf2020-11-22-8/+4
| | |
| * | pgo: initialize (mouse) selectionDaniel Eklöf2020-11-22-0/+4
| | |
| * | pgo: initialize a dummy wayland backendDaniel Eklöf2020-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 charsDaniel Eklöf2020-11-22-1/+1
| | |
| * | install: add --attr-{bold,italic,underline} to generate-alt-random-writesDaniel Eklöf2020-11-22-1/+4
| | |
| * | pkgbuild: add --attr-{bold,italic,underline} to generate-alt-random-writesDaniel Eklöf2020-11-22-1/+1
| | |
| * | scripts: generate-alt-random-writes: add support for bold/italic/underlineDaniel Eklöf2020-11-22-0/+10
| | |
| * | scripts: generate-alt-random-writes: don’t always reset all attributesDaniel Eklöf2020-11-22-4/+5
| | |
| * | scripts: generate-alt-random-writes: mix \e[S with \nDaniel Eklöf2020-11-22-1/+5
| | |
| * | remove pre-generated input corpus for PGODaniel Eklöf2020-11-22-12/+44
| | |
| * | pgo: updated stimuli (256-indexed colors)Daniel Eklöf2020-11-22-262144/+1
| | |
| * | pkgbuild: add --colors-256 to generate-alt-random-writesDaniel Eklöf2020-11-22-1/+1
| | |
| * | install: add --colors-256 to generate-alt-random-writesDaniel Eklöf2020-11-22-1/+1
| | |
| * | scripts: generate-alt-random-writes: add support for emitting 256-indexed colorsDaniel Eklöf2020-11-22-0/+15
| | |
| * | scripts: generate-alt-random-writes: mix new/old-style RGB escapesDaniel Eklöf2020-11-22-1/+8
| | |
| * | scripts: generate-alt-random-writes: add command line arguments for cols/rowsDaniel Eklöf2020-11-22-0/+7
| | |
| * | pgo: pull in selection.c in pgolibDaniel Eklöf2020-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 filesDaniel Eklöf2020-11-22-14/+56
| | |
| * | install: small rewording and restructuring of PGO instructionsDaniel Eklöf2020-11-22-12/+10
| | |
| * | install: update PGO instructionsDaniel Eklöf2020-11-22-4/+43
| | |
| * | pgo: move pgo.c and pgo stimuli to pgo directoryDaniel Eklöf2020-11-22-1/+1
| | |
| * | scripts: generate-alt-random-writes: don’t re-use ‘count’ variableDaniel Eklöf2020-11-22-2/+2
| | |
| * | pgo: increase simulated terminal sizeDaniel Eklöf2020-11-22-4/+262147
| | |
| * | meson: link ‘pgo’ with -lm and -pthreadsDaniel Eklöf2020-11-22-1/+1
| | |
| * | meson: move log.{c,h} to ‘misc’Daniel Eklöf2020-11-22-1/+1
| | |
| * | meson: add ‘version.h’ to vtlibDaniel Eklöf2020-11-22-0/+1
| | |
| * | meson: vtlib: add missing ‘fcft’ dependecyDaniel Eklöf2020-11-22-1/+1
| | |
| * | meson: add missing ‘tllist’ dependency to vtlib, pgolib and pgoDaniel Eklöf2020-11-22-3/+3
| | |
| * | wip: pgo without WaylandDaniel Eklöf2020-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öf2020-11-22-1/+2
|\ \
| * | client: fix handling of "-m" command-line flagCraig Barnes2020-11-22-1/+2
|/ /
* | changelog: update contributorsDaniel Eklöf2020-11-21-0/+2
| |
* | Merge branch 'footclient-getopt-fix'Daniel Eklöf2020-11-21-1/+1
|\ \
| * | client: add missing options to getopt_long(3) optstring argumentCraig Barnes2020-11-21-1/+1
|/ /
* | client-protocol: codespell: stati -> staticDaniel Eklöf2020-11-21-1/+1
| |
* | server: avoid doing unaligned struct accessesDaniel Eklöf2020-11-21-28/+31
| |
* | client: we added argv lengths twiceDaniel Eklöf2020-11-21-1/+0
| |
* | client: avoid doing a signed vs. unsigned comparisonDaniel Eklöf2020-11-21-1/+1
| |
* | server: verify strings are NULL terminatedDaniel Eklöf2020-11-21-5/+14
| |
* | client/server: simplify setup packet handlingDaniel Eklöf2020-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öf2020-11-19-11/+87
|\ \
| * | terminal: use 96, not 75, for DPI when being DPI unawareDaniel Eklöf2020-11-19-4/+4
| | |
| * | config: add ‘dpi-aware’ option, defaulting to enabledDaniel Eklöf2020-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öf2020-11-19-1/+5
|\ \