aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
* changelog: change -> changesDaniel Eklöf2020-04-28-1/+1
|
* term: load primary fonts in parallelDaniel Eklöf2020-04-28-8/+38
| | | | | | | | Use four threads to load the four primary font variants - normal, bold, italic and bold italic. This speeds up initial startup, and reloading of fonts on a DPI change.
* wayland: monitor unplug: call surface_leave() to handle terminal unmappingDaniel Eklöf2020-04-28-14/+7
|
* wayland: handle outputs disappearingDaniel Eklöf2020-04-27-11/+51
| | | | | | | | | That is, deal with monitors being unplugged. At least on Sway 1.4, surfaces are not unmapped before the output is removed. Thus, in addition to free:ing the monitor resources, we also need to update all terminals that are mapped on this output - remove the output from their "mapped on" list.
* wayland: group handle_global() together with handle_global_removed()Daniel Eklöf2020-04-27-131/+131
|
* Merge branch 'unicode-combining'Daniel Eklöf2020-04-27-22/+68
|\
| * vt: lazily reset utf8 in action_utf8_*_entryDaniel Eklöf2020-04-27-4/+3
| | | | | | | | | | | | | | | | action_clear() is in the super hot code path. Avoid resetting utf8 state there, as utf8 input is relatively uncommon. Instead, reset it when we explicitly enter any of the utf8 collecting states, as this is exactly the point where we need it.
| * vt: action_utf8_print: idx is cleared in action_clear()Daniel Eklöf2020-04-27-3/+0
| |
| * vt: utf8-*-entry: idx is cleared in action_clear()Daniel Eklöf2020-04-27-3/+3
| |
| * term: remove unneeded utf8.left memberDaniel Eklöf2020-04-27-16/+0
| |
| * readme: link to utf8proc was cut offDaniel Eklöf2020-04-27-1/+1
| |
| * readme: add link to utf8procDaniel Eklöf2020-04-27-1/+2
| |
| * readme: add utf8proc to the list of dependenciesDaniel Eklöf2020-04-27-0/+1
| |
| * utf8: add support for unicode combining charactersDaniel Eklöf2020-04-27-3/+67
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature lets foot combine e.g. "a\u0301" to "á". We first check if the current character (that we're about to print) is a combining character, by checking if it's in one of the following ranges: * Combining Diacritical Marks (0300–036F), since version 1.0, with modifications in subsequent versions down to 4.1 * Combining Diacritical Marks Extended (1AB0–1AFF), version 7.0 * Combining Diacritical Marks Supplement (1DC0–1DFF), versions 4.1 to 5.2 * Combining Diacritical Marks for Symbols (20D0–20FF), since version 1.0, with modifications in subsequent versions down to 5.1 * Combining Half Marks (FE20–FE2F), versions 1.0, with modifications in subsequent versions down to 8.0 If it is, we check if the last cell appears to contain a valid symbol, and if so, we attempt to compose (combine) the last cell with the current character, using utf8proc. If the result is a combined character, we replace the content in the previous cell with the new, combined character. Thus, if you select and copy the printed character, you would get e.g. "\u00e1" instead of "a\u0301". This feature can be disabled. By default, it is enabled if the utf8proc library is found, but can be explicitly disabled, or enabled, with 'meson -Dunicode-combining=disabled|enabled'.
* meson: bump C standard to c18Daniel Eklöf2020-04-26-1/+1
|
* damage: remove 'scroll' sub structDaniel Eklöf2020-04-26-34/+32
| | | | There is no other types of damage but scroll damage.
* render: make 'glyph' assignment more readableDaniel Eklöf2020-04-26-3/+4
|
* changelog: CSI 13;2t and CSI 14t have also been implementedDaniel Eklöf2020-04-25-1/+1
|
* changelog: use backticks for full escape sequence too, and shorten entryDaniel Eklöf2020-04-25-2/+2
|
* doc: foot.5: man page references do not embolden the section numberDaniel Eklöf2020-04-25-2/+2
|
* doc: foot.5: user -> usersDaniel Eklöf2020-04-25-1/+1
|
* doc: foot.5: padding and geometry are subject to output scalingDaniel Eklöf2020-04-25-4/+4
|
* csi: log 'unhandled' for invalid 'target' and 'operation' in CSI ? SDaniel Eklöf2020-04-25-0/+7
|
* readme: update descriptionDaniel Eklöf2020-04-24-2/+1
|
* changelog: one entry for conf-option + command line option changesDaniel Eklöf2020-04-24-6/+4
|
* Merge branch 'fcft-v2'Daniel Eklöf2020-04-24-42/+130
|\
| * PKGBUILD: bump tllist+fcft version dependenciesDaniel Eklöf2020-04-24-2/+2
| |
| * meson: dependency: use fallback without variable nameDaniel Eklöf2020-04-24-3/+3
| | | | | | | | | | | | | | Now that both tllist and fcft use meson.override_dependency(), we can use the simpler form of fallback in our dependency call(). This requires meson >= 0.53, tllist >= 1.0.1 and fcft >= 2.0.0
| * fcft: fcft_glyph_for_wc() has been renamed to fcft_glyph_rasterize()Daniel Eklöf2020-04-24-2/+4
| |
| * term: fcft: max/space advance fields have been renamedDaniel Eklöf2020-04-23-2/+2
| |
| * meson: we now require fcft 2.0.xDaniel Eklöf2020-04-23-1/+1
| |
| * changelog: current output's subpixel order is preferred over FontConfigDaniel Eklöf2020-04-22-0/+6
| |
| * term: guess subpixel mode after initializing wayland windowDaniel Eklöf2020-04-22-0/+2
| | | | | | | | | | | | | | | | | | At this point, we're not mapped, but we should have all the outputs initialized. Which means we can at least guess which subpixel mode to use. If that turns out to be wrong, something we'll detect when we're mapped, we'll just have to re-render.
| * fcft: adjust to fcft-2.0 API changesDaniel Eklöf2020-04-21-48/+48
| | | | | | | | | | | | | | * font_*() -> fcft_*() * struct font -> struct fcft_font * struct glyph -> struct fcft_glyph * enum subpixel_order -> enum fcft_subpixel
| * Merge branch 'master' into fcft-v2Daniel Eklöf2020-04-21-0/+1
| |\ | |/ |/|
* | main: log localeDaniel Eklöf2020-04-21-0/+1
| |
| * render: use output's subpixel mode when rasterizing glyphsDaniel Eklöf2020-04-20-1/+79
|/
* completions: zsh: -f,--font accepts multiple, comma separated valuesDaniel Eklöf2020-04-20-1/+1
|
* readme: improve descriptionDaniel Eklöf2020-04-19-2/+3
|
* readme: bug reporting: emphasize that debug builds are preferred for backtracesDaniel Eklöf2020-04-19-1/+1
|
* readme: spell 'change' correctlyDaniel Eklöf2020-04-19-1/+1
|
* term: destroy: free scroll damage listsDaniel Eklöf2020-04-19-0/+3
| | | | | | | | | These lists are typically empty when we destroy the terminal. However, if we had queued up damage, and then manage to destroy the terminal instance before the last changes were rendered, then they will *not* be empty. Found by the address sanitizer.
* csi: fix typo - the '(' was in the wrong placeDaniel Eklöf2020-04-19-1/+1
|
* render: search: improve handling of very long search stringsDaniel Eklöf2020-04-19-4/+10
|
* csi: CSI Ps ; Ps ; Ps t: report logical pixelsDaniel Eklöf2020-04-18-5/+8
|
* shm: #ifdef conditional code to measure total size of SHM allocationsDaniel Eklöf2020-04-18-0/+20
|
* server: don't do misaligned loadsDaniel Eklöf2020-04-18-11/+23
|
* Merge branch 'csi-report'Daniel Eklöf2020-04-18-11/+96
|\
| * csi: implement CSI Ps ; Ps ; Ps t reporting escape sequencesDaniel Eklöf2020-04-18-11/+96
|/ | | | | | | | | | | | | | | | | | | | | | A lot of the escape sequences on the "CSI Ps ; Ps ; Ps t" form are expected to return a reply. Thus, not having these implemented means we will hang if the client sends these escapes. Not all of these escapes can be meaningfully implemented on Wayland, and thus this implementation is best effort. We now support the following escapes: * 11t - report if window is iconified (always replies "no") * 13t - report window position (always replies 0,0) * 13;2t - report text area position (replies with margins, since we cannot get the window's position) * 14t - report text area size, in pixels * 14;2t - report window size, in pixels * 15t - report screen size, in pixels * 16t - report cell size, in pixels * 18t - report text area size, in cells * 19t - report screen size, in cells
* changelog: selection is no longer cleared on resizeDaniel Eklöf2020-04-17-0/+1
|
* render: resize: no need to truncate selection anymore - it's being translatedDaniel Eklöf2020-04-17-7/+1
|
* render: resize: need to translate selection coordinatesDaniel Eklöf2020-04-17-2/+15
| | | | | | | | | | | | | While it *looked* like the selection was working before, it really wasn't. When rendering, we're looking at the cells' attributes to determine whether they have been selected or not. When copying text however, we use the terminal's 'selection' state, which consists of 'start' and 'end' coordinates. These need to be translated when reflowing text.
* grid: reflow: make tracking_points array 'const'Daniel Eklöf2020-04-17-2/+2
| | | | | The elements aren't, and cannot be, const. But the array itself can, and should be.
* Merge branch 'translate-cursor-coords-when-reflowing'Daniel Eklöf2020-04-17-195/+236
|\
| * render: resize: no need to clear the selection - just truncate if necessaryDaniel Eklöf2020-04-17-2/+6
| |
| * grid: reflow: caller may now pass a list of coordinates that should be translatedDaniel Eklöf2020-04-17-4/+11
| |
| * grid: reflow: generalize cursor coordinate translationDaniel Eklöf2020-04-17-26/+41
| | | | | | | | | | | | | | | | | | | | | | Define a list of "tracking points" - coordinates that should be translated while reflowing. Add the cursor coordinates to this list. When a coordinate have been translated, it is removed from the list. This means we don't have to create a copy of the 'cursor' coordinate struct.
| * changelog: cursor coordinates are now translated on resizeDaniel Eklöf2020-04-17-0/+1
| |
| * grid: reflow: remove commented out codeDaniel Eklöf2020-04-17-2/+0
| |
| * grid: reflow: turn line-wrapping code into a macroDaniel Eklöf2020-04-17-24/+19
| |
| * grid: reflow: don't randomly insert hard linebreaksDaniel Eklöf2020-04-17-0/+2
| | | | | | | | | | Not sure why I added this code; maybe to workaround issues caused by the fact that the cursor position wasn't properly translated.
| * grid: grid_reflow() now translates cursor coordinatesDaniel Eklöf2020-04-16-42/+54
| |
| * grid: move 'cursor' state from terminal to gridDaniel Eklöf2020-04-16-129/+136
|/ | | | | This way, the 'normal' and 'alt' grids have their own cursor state, and we don't need to switch between them.
* misc: replace all explicit zero-initializers with empty initializersDaniel Eklöf2020-04-13-15/+15
|
* mbstate: fix compile warning on systems where mbstate_t isn't an integralDaniel Eklöf2020-04-13-3/+3
| | | | | An empty initializer still ensures the entire object is zero-initialized.
* ci: alpine: add missing dependencies: pixman + libxkbcommonDaniel Eklöf2020-04-13-0/+2
|
* term: reset: plug memory leakDaniel Eklöf2020-04-13-27/+32
| | | | | | | | | | | In reset, we allocated new rows for all the currently visible lines. We did **not** however, free the 'old' rows. Fix by not explicitly allocating new rows, but instead allocating uninitialized rows when needed, and then explicitly erasing the row. If there already was a row allocated, it is simply erased. If there wasn't, the a new line is malloc:ed, and then erased.
* ci: initial FreeBSD build manifestDaniel Eklöf2020-04-12-0/+39
|
* ci: alpine: wlroots isn't needed (or used, at all)Daniel Eklöf2020-04-12-1/+0
|
* Fix clang warningsDaniel Eklöf2020-04-12-6/+6
| | | | | | | | All are printf() formatter related. Even if a variable is e.g. a 'short', when used in an expression like '<variable> - 1' it is promoted to an 'int'. Closes #16
* ci: move sr.ht's .build.yml to .builds/alpine.ymlDaniel Eklöf2020-04-11-0/+0
|
* themes: add a couple of color themesDaniel Eklöf2020-04-10-0/+141
| | | | | Foot doesn't really support themes, but with this, users can at least copy-paste from a couple of predefined themes into their footrc.
* input: slow trackpad scrolling now eventually scroll a lineDaniel Eklöf2020-04-10-1/+19
| | | | | | | | | | | | | | | Before, we converted each axis event's scroll amount to an integer and scrolled that many lines. However, axis events are speed sensitive - very slow scrolling will result in events with a scroll amount that is < 1.0. For us, this meant we never scrolled a single line. You could slow scroll all day if you wanted, and still we would never scroll a single line. Fix this by aggregating the scroll amount from axis events until the scroll amount is > 1.0, and then scroll.
* render: don't dim so much when in search modeDaniel Eklöf2020-04-10-3/+3
|
* render: strip 'pixman' from color function namesDaniel Eklöf2020-04-09-10/+10
|
* render: remove unused functionsDaniel Eklöf2020-04-09-18/+0
|
* config: use an unsigned constant, since we're shifting 31 bitsDaniel Eklöf2020-04-09-2/+2
|
* keymap: remove trailing whitespacesDaniel Eklöf2020-04-08-7/+7
|
* completions: zsh: foot: default geometry is 700x500, not 700x50Daniel Eklöf2020-04-08-1/+1
|
* changelog: alt+return now emits ESC \rDaniel Eklöf2020-04-08-0/+1
|
* keymap: return: all Alt+<mod> now emits \e\rDaniel Eklöf2020-04-08-2/+9
|
* keymap: \t -> spacesDaniel Eklöf2020-04-08-1/+1
|
* Merge branch 'mchackorg/foot-alt-return'Daniel Eklöf2020-04-08-0/+1
|\
| * Make Alt-Return send ESC ReturnMichael Cardell Widerkrantz2020-03-16-0/+1
| |
* | terminfo: foot: setaf/b: use colon-separated variantDaniel Eklöf2020-04-08-2/+2
| |
* | terminfo: foot-direct: setaf/b: set color space to '2' (RGB)Daniel Eklöf2020-04-08-2/+2
| |
* | README: describe how to report bugsDaniel Eklöf2020-04-04-0/+15
| |
* | doc: foot.1: list what a bug report should containDaniel Eklöf2020-04-04-0/+9
| |
* | doc: foot.1: add link to issue reportingDaniel Eklöf2020-04-04-0/+4
| |
* | readme: summary: add 'lightweight'Daniel Eklöf2020-04-04-1/+1
| |
* | readme: remove the 'non-features' and 'what doesn't work' sectionsDaniel Eklöf2020-04-04-22/+0
| |
* | meson: don't set -fno-stack-protectorDaniel Eklöf2020-04-04-2/+1
| | | | | | | | | | Disabling the stack protection is generally bad, and I can't measure any performance drops with it enabled.
* | Merge branch 'osc4-multi-parameter'Daniel Eklöf2020-04-04-47/+48
|\ \
| * | changelog: osc 4 multiple 'c;spec' pairsDaniel Eklöf2020-04-04-0/+1
| | |
| * | osc 104: handle multiple indices the same way we do in OSC 4 - use strtok()Daniel Eklöf2020-04-04-14/+13
| | |
| * | osc: 4: handle multiple idx;spec pairsDaniel Eklöf2020-04-04-33/+34
|/ /
* | readme: tweak presentation of OSC 555Daniel Eklöf2020-04-04-1/+1
| |
* | readme: markup of OSC sequencesDaniel Eklöf2020-04-04-13/+13
| |
* | readme: document implemented OSC sequencesDaniel Eklöf2020-04-04-0/+22
| |
* | Merge branch 'right-mouse-extend-selection'Daniel Eklöf2020-04-04-19/+189
|\ \