| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | meson/pkgbuild: bump version to 1.5.11.5.1 | Daniel Eklöf | 2020-10-11 | -2/+2 |
| | | ||||
| * | changelog: prepare for 1.5.1 | Daniel Eklöf | 2020-10-11 | -6/+3 |
| | | ||||
| * | changelog: remove duplicate entry | Daniel Eklöf | 2020-10-11 | -4/+0 |
| | | ||||
| * | readme/doc: add shift+insert to list of default key bindings | Daniel Eklöf | 2020-10-11 | -0/+6 |
| | | ||||
| * | changelog: update ‘contributors’ list | Daniel Eklöf | 2020-10-11 | -0/+1 |
| | | ||||
| * | selection: use appropriate check for PRIMARY paste | Sergey Nazaryev | 2020-10-11 | -2/+3 |
| | | | | | | | Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD. | |||
| * | config: bind shift+insert to primary-paste by default | Daniel Eklöf | 2020-10-11 | -2/+6 |
| | | ||||
| * | changelog: add contributor | Daniel Eklöf | 2020-10-11 | -0/+2 |
| | | ||||
| * | config: fix "-Wformat-nonliteral" warnings | Craig Barnes | 2020-10-11 | -3/+3 |
| | | ||||
| * | readme: minor rewrite of server/daemon section | Daniel Eklöf | 2020-10-11 | -7/+5 |
| | | ||||
| * | csi: only respond to Primary DA when Ps == 0 | Daniel Eklöf | 2020-10-11 | -0/+6 |
| | | ||||
| * | readme: clearer descriptions of secondary and tertiary DA responses | Daniel Eklöf | 2020-10-11 | -9/+5 |
| | | ||||
| * | term: remove unused bit in xtsave struct | Daniel Eklöf | 2020-10-11 | -1/+0 |
| | | ||||
| * | changelog: we’ve fixed several sixel+reflow related bugs | Daniel Eklöf | 2020-10-11 | -0/+2 |
| | | ||||
| * | sixel: reflow: drop sixels that crosses the scrollback history’s end | Daniel Eklöf | 2020-10-11 | -0/+23 |
| | | | | | | This fixes various crashes that occurred after a reflow due to the sixel image list invariants no longer being true. | |||
| * | sixel: unhook: do overwrite *after* linefeeding | Daniel Eklöf | 2020-10-11 | -2/+5 |
| | | | | | | This ensures the overwrite is done when the scrollback history is in the same state as when we then insert the new image. | |||
| * | sixel: overwrite: use pixman to calculate new the sixel boundaries | Daniel Eklöf | 2020-10-11 | -75/+74 |
| | | | | | | | When punching a hole in a sixel (and thus splitting it up into up to four new sixels), use pixman to calculate the new sixel coordinates and sizes. | |||
| * | sixel: ovewrite-by-rectangle: in debug builds, cross-reference against pixman | Daniel Eklöf | 2020-10-11 | -2/+38 |
| | | | | | | Use pixman to calculate the intersection of the rectangle being overwritten, and the sixel(s). Verify our code matches. | |||
| * | sixel: verify scrollback consistency: new verify function | Daniel Eklöf | 2020-10-11 | -0/+26 |
| | | | | | Verifies sixels have been scrolled out correctly | |||
| * | sixel: add comments to verify_*() functions | Daniel Eklöf | 2020-10-11 | -0/+23 |
| | | ||||
| * | sixel: verify-*: don’t return anything; rely on asserts only | Daniel Eklöf | 2020-10-11 | -18/+7 |
| | | ||||
| * | sixel: scroll up/down: early return when list is empty | Daniel Eklöf | 2020-10-11 | -0/+6 |
| | | | | | Branch tagged as ‘likely’ for performance reason | |||
| * | sixel: cell-size-changed: don’t verify sixels here | Daniel Eklöf | 2020-10-11 | -2/+0 |
| | | | | | | | | | | | | | | The state after this function is an intermediate state and isn’t necessarily valid. This sixels needs to be ‘reflowed’ to ensure a valid state. This is something that should be done by the caller after the text grid has been reflowed and the sixel coordinates have been re-mapped to the new grid. TODO: can/should we update the sixel cols/rows in sixel_reflow() instead? | |||
| * | sixel: unhook: look total number of sixels | Daniel Eklöf | 2020-10-11 | -0/+3 |
| | | | | | | This helps debug sixel overwrites, as it makes it more visible when there are sixels that _should_ have been removed. | |||
| * | sixel: scroll-up: don’t break out early of loop | Daniel Eklöf | 2020-10-11 | -2/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function loops the list of sixels, and discards those that would be scrolled out if the grid offset is moved forward by the specified number of rows. The criteria is when the rebased row value is less than the number of rows to scroll. A rebased row number is a zero-based number starting at the beginning of the scrollback. Thus, when scrolling 5 rows, rows with a rebased row number between 0-4 will be scrolled out. For performance reasons, we used to break out of the loop as soon as a row number *larger* than the scroll count. This however does not work. The sixels are sorted by their *end* row. While this works in most cases (think images outputted in the shell in the normal screen), it doesn’t always. In the alt screen, where applications can print images just about anywhere, it is possible to have *any* start row number anywhere in the sixel list. Just as long as their *end* row numbers are sorted. For example, a huuuge sixel that covers the entire scrollback. This sixel will naturally be first in the list (and thus sixel_scroll_up() will visit it *last*, since it iterates the list in reverse), but should still be destroyed when scrolling. | |||
| * | sixel: verify-list-order: add an ‘index’ variable | Daniel Eklöf | 2020-10-11 | -0/+4 |
| | | | | | This will make it easier when debugging assertions in this function. | |||
| * | sixel: overwrite-by-rectangle: assert sixels don’t cross scrollback wrap-around | Daniel Eklöf | 2020-10-11 | -4/+7 |
| | | ||||
| * | sixel: scroll: call sixel_erase() instead of sixel_destroy() | Daniel Eklöf | 2020-10-11 | -2/+2 |
| | | | | | | This ensures the screen is updated correctly. Without this, the sixel image would remain on screen until force-refreshed by some other means. | |||
| * | sixel: TOOD -> TODO (fixes codespell build error) | Daniel Eklöf | 2020-10-11 | -1/+1 |
| | | ||||
| * | sixel: verify-no-overlap: free pixman regions | Daniel Eklöf | 2020-10-11 | -0/+5 |
| | | ||||
| * | sixel: verify-no-overlap: initialize ‘intersection’ pixman region | Daniel Eklöf | 2020-10-11 | -0/+1 |
| | | ||||
| * | render: resize: call sixel_reflow() after reflowing grids | Daniel Eklöf | 2020-10-11 | -0/+3 |
| | | ||||
| * | sixel: unhook: only call render_refresh() once | Daniel Eklöf | 2020-10-11 | -2/+3 |
| | | ||||
| * | sixel: implement reflow | Daniel Eklöf | 2020-10-11 | -54/+51 |
| | | | | | | | | Move sixel reflow from grid_reflow() to sixel_reflow(). This lets us use internal sixel functions to update the sixels. Note that grid_reflow() still needs to remap the sixelss coordinates. | |||
| * | term: update sixel rows/cols *after* cell dimension change, *before* resize | Daniel Eklöf | 2020-10-11 | -39/+27 |
| | | | | | | This fixes an issue where we resized+reflowed with bad rows/cols values in the sixels. | |||
| * | sixel: verify-sixels: check for bad list order last | Daniel Eklöf | 2020-10-11 | -2/+2 |
| | | ||||
| * | sixel: verify-no-wraparound-crossover: fix calculation of ‘end’ row | Daniel Eklöf | 2020-10-11 | -1/+1 |
| | | ||||
| * | sixel: add sixel_cell_size_changed() | Daniel Eklöf | 2020-10-11 | -0/+25 |
| | | | | | | This function should be called *after* the cell dimensions have changed, but *before* resizing/reflowing the grids. | |||
| * | sixel: debug: more fine-grained verification of sixel image list | Daniel Eklöf | 2020-10-11 | -5/+63 |
| | | | | | | * Verify no sixel crosses the scrollback wrap-around * Verify no sixels overlap | |||
| * | grid: reflow: re-insert sixels *after* new grid offset has been set | Daniel Eklöf | 2020-10-11 | -40/+51 |
| | | | | | | | Also make sure to destroy sixels that are too big to fit in the scrollback. Fixes issues with the sixel list not being sorted correctly. | |||
| * | sixel: overwrite: calculate split-up image pieces’ rows/cols from their width/height | Daniel Eklöf | 2020-10-11 | -8/+3 |
| | | ||||
| * | sixel: overwrite: remove asserts | Daniel Eklöf | 2020-10-11 | -12/+1 |
| | | | | | Sixels may extend outside the visible screen area | |||
| * | term: re-calculate sixel images’ rows/cols values when cell size changes | Daniel Eklöf | 2020-10-11 | -0/+14 |
| | | ||||
| * | sixel: fix sheared image when image crosses scrollback wrap-around | Daniel Eklöf | 2020-10-11 | -1/+14 |
| | | | | | | | | | | | | | | | | When a sixel image crosses the scrollback wrap-around, it is split up into (at least) two pieces. We use cursor->point.col for all pieces’ x-coordinate. This caused the final image to appear sheared, since we do a carriage-return (after a number of linefeeds) after each piece - this causes the cursor’s position to be reset to the left margin. The solution is simple; remember the cursor’s initial x-coordinate, and use that to position all image pieces. Closes #151. | |||
| * | sixel: overwrite-by-rectangle expects ‘width’ to not exceed screen | Daniel Eklöf | 2020-10-11 | -1/+4 |
| | | | | | | | | | This fixes a crash when the emitted sixel extends beyond the right margin. The crash only happens when there are other sixel images already emitted. Fixes part of #151 | |||
| * | sixel: fold long line | Daniel Eklöf | 2020-10-11 | -1/+3 |
| | | ||||
| * | doc: foot.1: remove ‘--’ from example command line | Daniel Eklöf | 2020-10-11 | -1/+1 |
| | | ||||
| * | doc: foot.ini: mention that ‘lines’ is rounded up to nearest power of 2 | Daniel Eklöf | 2020-10-11 | -1/+3 |
| | | ||||
| * | doc: foot.ini: “top at” -> “top of” | Daniel Eklöf | 2020-10-11 | -1/+1 |
| | | ||||
| * | doc: foot.ini: it’s foot.ini, not foot.init | Daniel Eklöf | 2020-10-11 | -1/+1 |
| | | ||||
| * | render: apply opacity correctly when in reverse video mode | Daniel Eklöf | 2020-10-11 | -2/+9 |
| | | ||||
| * | doc: foot.ini: the tweak section is called ‘tweak’, not ‘tweaks’ | Daniel Eklöf | 2020-10-11 | -1/+1 |
| | | ||||
| * | config: ignore key/value pairs following an invalid section name | Daniel Eklöf | 2020-10-11 | -0/+9 |
| | | | | | | | | | | | | When we detected an invalid section name, we correctly logged this and warned the user. However, the internal state machine now had an invalid section enum value. This caused a crash when the next key/value pair was to be parsed and we tried to lookup which parser function to call. Closes #159. | |||
| * | changelog: trackpad scrolling: ‘multiplier’ is in the ‘scrollback’ section | Daniel Eklöf | 2020-10-11 | -2/+2 |
| | | ||||
| * | changelog: multiplier: the option belongs to the ‘scrollback’ section | Daniel Eklöf | 2020-10-11 | -2/+2 |
| | | ||||
| * | changelog: multiplier default value changed from 1.0 -> 3.0 | Daniel Eklöf | 2020-10-11 | -0/+5 |
| | | ||||
| * | config: change default multiplier from 1.0 -> 3.0 | Daniel Eklöf | 2020-10-11 | -3/+3 |
| | | ||||
| * | changelog: reword trackpad scrolling speed entry | Daniel Eklöf | 2020-10-11 | -0/+5 |
| | | ||||
| * | input: trackpad scroll: correctly convert pixel movements to line movements | Daniel Eklöf | 2020-10-11 | -4/+12 |
| | | | | | | | | | | | | | Trackpad scroll movements are in pixels. Foot previously “translated” these directly to line movements (i.e. a one pixel scroll event was translated into a one line scroll). Now we use the line height of the terminal and correctly convert pixels to lines. This makes the trackpad scroll speed in foot consistent with the scroll speed in e.g. Alacritty and Kitty. | |||
| * | grid: reflow: fix release build; ‘idx’ is only used in an assert() | Daniel Eklöf | 2020-10-11 | -1/+2 |
| | | ||||
| * | grid: reflow: handle viewport being too far down when enlarging the window | Daniel Eklöf | 2020-10-11 | -2/+17 |
| | | | | | | | If the viewport is close to the bottom, but not *at* the bottom, and we’re enlarging the window, the translated viewport will be too far down. | |||
| * | grid: reflow: retain scrollback position | Daniel Eklöf | 2020-10-11 | -1/+12 |
| | | | | | Closes #142 | |||
| * | changelog: fixed color flashes with OSC 4,10,11 | Daniel Eklöf | 2020-10-11 | -0/+2 |
| | | ||||
| * | render: remove render_refresh_margins() | Daniel Eklöf | 2020-10-11 | -9/+0 |
| | | ||||
| * | osc: don’t explicitly call render_refresh() when changing the color palette | Daniel Eklöf | 2020-10-11 | -9/+5 |
| | | | | | | | | | | | | | | | | | | | Doing so will schedule the renderer “as soon as possible”. I.e we’re by-passing the regular scheduler, and thus we’re by-passing the user’s setting of the delayed-render-* timers. The fact that we’re scheduling “as soon as possible” also means we’re much more likely to trigger flickering, or color flashes, if the application is changing colors which are on the screen. To handle changes to the cursor color(s), use the new term_damage_cursor() instead of render_refresh(). To handle background color changes, which affect the margins, use the new term_damage_margins() instead of render_refresh_margins(), Closes #141 | |||
| * | render: term->render.margins is used to explicitly tell us to re-render margins | Daniel Eklöf | 2020-10-11 | -15/+7 |
| | | ||||
| * | term: add term_damage_cursor() and term_damage_margins() | Daniel Eklöf | 2020-10-11 | -0/+18 |
| | | | | | | | | | | term_damage_cursor() damages the cell where the cursor is currently at. This can be used to ensure the cursor is re-drawn, if there aren’t any other pending updates. term_damage_margins() requests the margins be redrawn the next time we render the grid. | |||
| * | input: mouse: match binding if binding’s click count is *less* | Daniel Eklöf | 2020-10-11 | -6/+25 |
| | | | | | | | | | | | | Allow a mouse binding to match even if its click count is less than the actual click count. If there are multiple bindings that match, use the one with the highest click count (that less than, or equal to the actual click count). Closes #146 | |||
| * | install: say _why_ ncurses and scdoc is needed | Daniel Eklöf | 2020-10-11 | -2/+2 |
| | | ||||
| * | changelog: add new ‘unreleased’ section | Daniel Eklöf | 2020-10-11 | -0/+12 |
| | | ||||
| * | meson/pkgbuild: bump version to 1.5.01.5.0 | Daniel Eklöf | 2020-09-18 | -2/+2 |
| | | ||||
| * | changelog: prepare for 1.5.0 | Daniel Eklöf | 2020-09-18 | -4/+2 |
| | | ||||
| * | changelog: add cherti to contributors | Daniel Eklöf | 2020-09-18 | -0/+1 |
| | | ||||
| * | Revert "changelog: add cherti to contributors" | Daniel Eklöf | 2020-09-18 | -3/+4 |
| | | | | | This reverts commit 8f3692f9a662c69cadca1b840f22f4f222b550e9. | |||
| * | changelog: add cherti to contributors | Daniel Eklöf | 2020-09-18 | -4/+3 |
| | | ||||
| * | meson/pkgbuild: bump fcft requirement to 2.3.0 | Daniel Eklöf | 2020-09-18 | -2/+2 |
| | | ||||
| * | selection: reset clipboard/primary->text after free:ing it | Daniel Eklöf | 2020-09-17 | -0/+2 |
| | | ||||
| * | selection: primary unset: don’t free text twice | Daniel Eklöf | 2020-09-17 | -1/+0 |
| | | ||||
| * | render: fix rounding errors when setting initial window size and scale != 1 | Daniel Eklöf | 2020-09-17 | -4/+16 |
| | | | | | | | | | | An odd cell width/height sometimes resulted in an odd grid size. Combined with a scaling factor of e.g. 2, that led to a rounding error when converting pixel sizes to logical window sizes. As a result, the _next_ configure event would cause us to loose a pixel, which led to us dropping a row from the grid. | |||
| * | ci: fix path to junit report on release builds | Daniel Eklöf | 2020-09-16 | -2/+2 |
| | | ||||
| * | ci: install fonts, needed for fcft tests | Daniel Eklöf | 2020-09-16 | -0/+7 |
| | | ||||
| * | ci: need the ‘dev’ version of ‘check’ on alpine | Daniel Eklöf | 2020-09-16 | -3/+3 |
| | | ||||
| * | ci: install ‘check’ - this enables fcft tests | Daniel Eklöf | 2020-09-16 | -0/+4 |
| | | ||||
| * | ci: repair ninja test target | Daniel Eklöf | 2020-09-16 | -1/+1 |
| | | ||||
| * | ci: upload junit XML reports | Daniel Eklöf | 2020-09-16 | -1/+13 |
| | | ||||
| * | ci: explicitly enable harfbuzz in fcft | Daniel Eklöf | 2020-09-16 | -11/+14 |
| | | ||||
| * | ci: enable fcft’s text-shaping tests | Daniel Eklöf | 2020-09-16 | -10/+10 |
| | | ||||
| * | Merge branch 'configurable-alternate-scroll-mode' into master | Daniel Eklöf | 2020-09-16 | -38/+70 |
| |\ | | | | | | | Closes #135 | |||
| | * | doc: foot.ini: alternate-scroll-mode: fix highlighting of CSI escape | Daniel Eklöf | 2020-09-16 | -1/+1 |
| | | | ||||
| | * | changelog: mouse events -> mouse scroll events | Daniel Eklöf | 2020-09-15 | -2/+2 |
| | | | ||||
| | * | config: add mouse.alternate-scroll-mode option | Daniel Eklöf | 2020-09-15 | -0/+31 |
| | | | | | | | | | | | This option controls the initial state of the Alternate Scroll Mode, and defaults to ‘enabled’. | |||
| | * | input: mouse_scroll(): refactor | Daniel Eklöf | 2020-09-15 | -36/+35 |
| | | | ||||
| | * | input: don’t use stale keycodes for arrow-up/down | Daniel Eklöf | 2020-09-15 | -11/+13 |
| | | | | | | | | | | | | | | | The keycodes will change if the seat’s keymap changes. Make sure we only do alternate scrolling if the seat has a keyboard, and use the *current* layout’s keycodes for arrow up/down (instead of the *first* layout’s). | |||
| | * | input: don’t do alternate mode scrolling if application is grabbing mouse | Daniel Eklöf | 2020-09-15 | -1/+2 |
| | | | ||||
| | * | input: don’t do grid scrollback if mouse events are being captured | Daniel Eklöf | 2020-09-15 | -3/+2 |
| |/ | ||||
| * | meson/pkgbuild: require fcft-2.2.90 | Daniel Eklöf | 2020-09-15 | -2/+2 |
| | | ||||
| * | render: best-effort attempt to set initial window size in chars when scale != 1 | Daniel Eklöf | 2020-09-14 | -7/+15 |
| | | | | | | | | | | | | The initial window size is set *before* we’re initially mapped. This means we don’t (yet) know on which output we’ll be mapped. _That_ means we don’t know which scaling factor to use. This implements a best effort attempt, where we use the “guessed” scaling factor. This will always be correct in single-monitor configurations, but may be wrong in multi-monitor setups with different scaling factors. | |||
| * | config: add tweak.scaling-filter | Daniel Eklöf | 2020-09-13 | -2/+46 |
| | | | | | | | | | Use the new fcft_set_scaling_filter() API to use a non-default scaling filter. By default, we use lanczo3, the ‘best’ filter. This overrides the default in fcft, which is ‘cubic’ filtering. | |||
| * | config: log warning when new boolean tweak options have been enabled | Daniel Eklöf | 2020-09-12 | -2/+8 |
| | | ||||
| * | Merge branch 'scroll-half-page' into master | Daniel Eklöf | 2020-09-11 | -11/+112 |
| |\ | | | | | | | Closes #128 | |||
