| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | 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 |
| |\ | ||||
| | * | render: allow-overflow: require a space in the next cell | Daniel Eklöf | 2020-11-19 | -1/+5 |
| |/ | | | | | | | | When checking if we should allow a single-width character double-width glyph to overflow into the next cell, require the next cell to either be empty, or contain a space. Closes #203 | |||
| * | keymap: fix alt+return combos | Daniel Eklöf | 2020-11-19 | -11/+12 |
| | | | | | | | | | 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_Tab | Daniel Eklöf | 2020-11-19 | -7/+5 |
| | | | | | | | | | | | | | | | 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 | |||
| * | Merge branch 'dim-and-brighten-via-hsl' | Daniel Eklöf | 2020-11-17 | -27/+30 |
| |\ | ||||
| | * | render: dim/brighten: multiply/divide instead of add/subtract | Daniel Eklöf | 2020-11-15 | -2/+2 |
| | | | ||||
| | * | render: dim and brighten colors by adjusting luminance | Daniel Eklöf | 2020-11-15 | -27/+30 |
| |/ | | | | | To do this, we need to convert our RGB to HSL, adjust luminance, and then convert back to RGB. | |||
| * | hsl: add our own implementations of rgb-to-hsl and hsl-to-rgb | Daniel Eklöf | 2020-11-15 | -136/+124 |
| | | | | | | | | | | | | | | | | | | | | | | | | * New function: rgb_to_hsl() * New function: hsl_to_rgb() * Replace XTerm’s hls_to_rgb() with our own, hsl_to_rgb(). * Ensure hue/lum/sat values are within range before calling hsl_to_rgb() Note that sixels’ use the following primary hues: * blue: 0° * red: 120 * green: 240° While “standard” HSL uses: * red: 0° * green: 120° * blue: 240° Thus, we need to adjust the sixel’s hue value before calling hsl_to_rgb(). | |||
| * | render: remove debug output | Daniel Eklöf | 2020-11-15 | -1/+0 |
| | | ||||
| * | Merge branch 'bold-is-bright' | Daniel Eklöf | 2020-11-14 | -0/+23 |
| |\ | | | | | | | Closes #199 | |||
| | * | changelog: bold-text-in-bright | Daniel Eklöf | 2020-11-14 | -0/+3 |
| | | | ||||
| | * | render: brighten color of bold text if default.bold-text-in-bright=yes | Daniel Eklöf | 2020-11-14 | -0/+10 |
| | | | | | | | | | Closes #199 | |||
| | * | doc: foot.ini: document default.bold-text-in-bright | Daniel Eklöf | 2020-11-14 | -0/+4 |
| | | | ||||
| | * | config: add default.bold-text-in-bright option | Daniel Eklöf | 2020-11-14 | -0/+6 |
| | | | ||||
| * | | install: simplify sentence | Daniel Eklöf | 2020-11-14 | -1/+1 |
| | | | ||||
| * | | pkgbuild: remove -fno-plt | Daniel Eklöf | 2020-11-14 | -2/+1 |
| | | | ||||
| * | | install: remove -fno-plt from recommended CFLAGS | Daniel Eklöf | 2020-11-14 | -2/+2 |
| |/ | | | | It appears to _worsen_ the performance... | |||
| * | changelog: move pipe-* actions from ‘fixed’ to ‘added’ | Daniel Eklöf | 2020-11-13 | -4/+4 |
| | | ||||
| * | readme: don’t uppercase titles | Daniel Eklöf | 2020-11-13 | -2/+2 |
| | | ||||
| * | config: enable allow-overflowing-double-width-glyphs by default | Daniel Eklöf | 2020-11-13 | -5/+9 |
| | | ||||
| * | render: improve sixel rendering performance | Daniel Eklöf | 2020-11-13 | -45/+145 |
| | | | | | | | | | | | | | | | | | | | Up until now, we’ve always re-rendered the entire image (the part of it that is visible at least), *every* time we render a frame. This is not really needed. In many cases, the cells covered by the image hasn’t been touched. Rewrite the sixel rendering code to only render the part of the sixel image that covers dirty cells. This is done on a per-row basis. I.e. Each *row* of the image that covers at least one dirty cell is re-rendered. For this to work, we now also dirty all cells covered by the image when we emit the image. Finally, for this to work, the sixels need to be rendered *before* we do the normal grid render pass (since that will clear all dirty bits). | |||
| * | changelog: fix link to readme#keypad | Daniel Eklöf | 2020-11-12 | -2/+3 |
| | | ||||
| * | Merge branch 'keypad-numlock-override' | Daniel Eklöf | 2020-11-12 | -9/+72 |
| |\ | | | | | | | Closes #194 | |||
| | * | readme/doc:foot.1: document the (new) keypad behavior | Daniel Eklöf | 2020-11-11 | -1/+40 |
| | | | ||||
