| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | 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 |
| | | | ||||
| | * | input: enforce ‘numerical’ keypad mode when Num Lock override is enabled | Daniel Eklöf | 2020-11-11 | -4/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When num lock override has been enabled via “CSI?1035h” (the default), keypad is always considered to be in ‘numerical’ mode. This affects how keypad keys are translated to escape sequences when Num Lock is active. The keypad has four modes: * Num Lock off, numerical mode * Num Lock off, application mode * Num Lock on, numerical mode * Num Lock on, application mode The keymap is identical for numerical and application mode when Num Lock is off, meaning the keypad effectively has three different modes. In XTerm, numerical and application mode _can_ be the same, **if** the ‘numLock’ resource is set to true (the default). It is only when ‘numLock’ is false that the application mode is actually used. This patch changes foot to do the same. We don’t expose an option, but do implement “CSI ? 1035”. Closes #194 | |||
| | * | input: track num lock state | Daniel Eklöf | 2020-11-11 | -0/+6 |
| | | | ||||
| | * | csi: implement “CSI ? 1035” - toggle Num Lock override | Daniel Eklöf | 2020-11-11 | -0/+11 |
| | | | | | | | | | | | This adds a num_lock_modifier state to the terminal, and hooks up “CSI?1035h/l” to toggle it. | |||
| | * | input: use XKB_MOD_NAME_* macros instead of hard-coded strings | Daniel Eklöf | 2020-11-11 | -4/+4 |
| | | | ||||
| * | | pkgbuild: append ‘foot-terminfo’ dependency in package_foot-git() | Daniel Eklöf | 2020-11-12 | -1/+2 |
| | | | | | | | | | | | | | | | This ensures that: * Main dependencies are still checked before the package is built * Makepkg doesn’t complain about missing dependency foot-terminfo | |||
| * | | pkgbuild: make foot-terminfo a hard dependency for foot | Daniel Eklöf | 2020-11-11 | -2/+1 |
| | | | ||||
| * | | Merge branch 'preempt-render-scheduling-on-configure-events' | Daniel Eklöf | 2020-11-11 | -5/+16 |
| |\ \ | |/ |/| | | | Closes #190 | |||
| | * | wayland: preempt render scheduling in ‘configure’ events | Daniel Eklöf | 2020-11-10 | -5/+16 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||
| * | client: let getopt_long(3) print error messages | Daniel Eklöf | 2020-11-10 | -6/+1 |
| | | | | | Closes #191 | |||
| * | input: ignore keymap if we don’t recognize its format | Daniel Eklöf | 2020-11-09 | -9/+26 |
| | | ||||
| * | wayland: use wl_*_release() instead of wl_*_destroy() | Daniel Eklöf | 2020-11-09 | -7/+9 |
| | | | | | This lets the compositor free up internal state. | |||
| * | Merge branch 'jeromenerf-patch-1' | Daniel Eklöf | 2020-11-07 | -2/+3 |
| |\ | | | | | | | Closes #185 | |||
