| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Merge branch 'ime-dont-commit-unless-we-have-ime-focus' | Daniel Eklöf | 2021-03-04 | -0/+12 |
| |\ | | | | | | | Closes #384 | |||
| | * | ime: don’t commit IME changes when we don’t have IME focus | Daniel Eklöf | 2021-03-02 | -0/+12 |
| | | | | | | | | | | | | | | | | | | | Fixes log spamming in Sway: 00:54:07.780 [DEBUG] [wlr] [types/wlr_text_input_v3.c:181] Text input commit received without focus 00:54:07.780 [INFO] [sway/input/text_input.c:127] Inactive text input tried to commit an update Closes #384 | |||
| * | | input: mutter has been seen sending NULL surfaces in pointer enter | Daniel Eklöf | 2021-03-04 | -0/+5 |
| | | | ||||
| * | | input: exit URLs mode on mouse button events | Daniel Eklöf | 2021-03-04 | -0/+1 |
| | | | | | | | | | This makes URLs mode behave like scrollback search mode. | |||
| * | | render: jump-labels: case insensitive comparison when looking for matching keys | Daniel Eklöf | 2021-03-04 | -1/+1 |
| | | | ||||
| * | | url-mode: ignore keys with modifiers | Daniel Eklöf | 2021-03-04 | -0/+3 |
| | | | ||||
| * | | changelog: oops, vertical-letter-offset is new in 1.7.x | Daniel Eklöf | 2021-03-02 | -1/+0 |
| | | | | | | | | | | | No need to a changelog entry for fixing something that hasn’t yet been released. | |||
| * | | Merge branch 'fix-vertical-letter-offset-config' | Daniel Eklöf | 2021-03-02 | -1/+3 |
| |\ \ | |/ |/| | ||||
| | * | Mention fix in Changelog. | L3MON4D3 | 2021-03-01 | -0/+2 |
| | | | ||||
| | * | Fix typo. | L3MON4D3 | 2021-03-01 | -1/+1 |
| | | | ||||
| * | | Merge branch 'add-name-section-to-foot-ctlseq' | Daniel Eklöf | 2021-03-01 | -0/+3 |
| |\ \ | |/ |/| | ||||
| | * | Add NAME section to foot-ctlseqs.7; fixes whatis entry for manual page. | Felix Lechner | 2021-02-28 | -0/+3 |
| |/ | | | | | | | | In a recent Debian build from master, Lintian complained about a bad whatis entry for this manual page. The tag description [1] says a NAME section is required. It is added here. [1] https://lintian.debian.org/tags/bad-whatis-entry.html | |||
| * | Merge branch 'sixel-private-mode-80-scrolling' | Daniel Eklöf | 2021-02-27 | -41/+75 |
| |\ | | | | | | | Closes #361 | |||
| | * | sixel: don’t go past the bottom scroll margin when sixel scrolling is disabled | Daniel Eklöf | 2021-02-26 | -1/+1 |
| | | | | | | | | | | | | | | | | | When sixel scrolling is disabled (private mode 80 is off), and scroll margins have been set, XTerm seems to ignore the top margin (sixel still begins at (0,0)), but does not go past the bottom margin. This patch implements the same behavior in foot. | |||
| | * | sixel: implement private mode 80 - sixel scrolling | Daniel Eklöf | 2021-02-26 | -41/+75 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When enabled (the default), sixels behave much like normal output; the start where the cursor is, and the cursor moves with the sixel. I.e. after emitting a sixel the cursor is left after the image; either to the right, if private mode 8452 is enabled, or otherwise on the next line. Terminal content is scrolled up if the sixel is larger than the screen. When disabled, sixels *always* start at (0,0), the cursor never moves, and the terminal content never scrolls. In other words, the ‘disabled’ mode is a much simpler mode. All we need to do to support both modes is re-write the sixel-emitting loop to: * break early if we’re “out of rows”, i.e. we’ve reached the bottom of the screen. * not linefeed, or move the cursor when scrolling is disabled This patch also fixes a bug in the (new) implementation of private mode 8452. When emitting a sixel, we may break it up into smaller pieces, to ensure a single sixel (as tracked internally) does not cross the scrollback wrap-around. The code that checked if we should do a linefeed or not, would skip the linefeed on the last row of *each* such sixel piece. The correct thing to do is to skip it only on the last row of the *last* piece. I chose not to fix this bug in a separate patch since doing so would have meant re-writing it again when implementing private mode 80. | |||
| * | | changelog: default value of -t,--term in --help when built without terminfo | Daniel Eklöf | 2021-02-26 | -0/+3 |
| | | | ||||
| * | | config: reuse HAVE_TERMINFO via DEFAULT_TERM | Chloe Kudryavtsev | 2021-02-26 | -7/+9 |
| |/ | | | | | add detection in --help output also make it more easily accessible for other locations to change | |||
| * | grid: snapshot: don’t mark all cells as dirty - copy state from source grid | Daniel Eklöf | 2021-02-26 | -3/+1 |
| | | ||||
| * | csi: remove extra ‘;’ | Daniel Eklöf | 2021-02-26 | -1/+1 |
| | | ||||
| * | doc: use ‘fuzzel’ instead of ‘bemenu’ in examples | Daniel Eklöf | 2021-02-26 | -3/+3 |
| | | ||||
| * | Merge branch 'url-mode-snapshot-screen-state' | Daniel Eklöf | 2021-02-26 | -20/+168 |
| |\ | ||||
| | * | url-mode: damage current view before entering URL mode | Daniel Eklöf | 2021-02-26 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Clear scroll damage and damage the entire viewport before entering URL mode. This will cause us to do a full screen redraw both when entering URL mode, and later when exiting it. Clearing the scroll damage is necessary to ensure we don’t apply it twice (once for the snapshot:ed grid, and later again for the real grid), as that would result in an incorrect pixmap. But, since we’ve cleared the scroll damage, we need to damage the entire view to ensure we redraw the contents correctly. | |||
| | * | command: scrollback: don’t allow scrolling in URL mode | Daniel Eklöf | 2021-02-26 | -0/+5 |
| | | | ||||
| | * | url-mode: dirty the “last cursor” cell before taking the snapshot | Daniel Eklöf | 2021-02-26 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | | This ensures the “last cursor” cell is re-drawn (without a cursor, if the cursor has moved), both in the snapshot:ed grid, and later, when we switch back to the real grid. We must also be careful and reset term->render.last_cursor.row both when *entering* and *leaving* URL mode, to ensure it doesn’t point to an invalid row. | |||
| | * | url-mode: no need to damage the entire view when exiting URL mode | Daniel Eklöf | 2021-02-26 | -1/+0 |
| | | | | | | | | | | | The renderer will simply apply *all* accumulated damage at once, when we render the real grid. | |||
| | * | grid: snapshot: copy scroll damage | Daniel Eklöf | 2021-02-26 | -0/+3 |
| | | | ||||
| | * | grid: grid_free(): free scroll damage list | Daniel Eklöf | 2021-02-26 | -3/+1 |
| | | | ||||
| | * | url-mode: snapshot screen state when entering URL mode | Daniel Eklöf | 2021-02-26 | -3/+31 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we automatically exited URL mode whenever we received data on the PTY. This was done since we don’t know _what_ has changed on the screen, and we don’t want to display misleading jump labels. However, this becomes a problem in curses-like applications that periodically updates part of the screen. For example, a statusbar with a clock. This patch changes this behavior; instead of cancelling URL mode when receiving PTY data, we snapshot the grid when entering URL mode. When *rendering*, we use the snapshot:ed grid, while PTY updates modify the “real” grid. Snapshot:ing the grid means taking a full/deep copy of the current grid, including sixel images etc. Finally, it isn’t necessary to “damage” the entire view when *entering* URL mode, since we’re at that point the renderer is in sync with the grid. But we *do* need to damage the entire view when exiting URL mode, since the grid changes on the “real” grid hasn’t been tracked by the renderer. | |||
| | * | grid: add grid_snapshot() | Daniel Eklöf | 2021-02-26 | -0/+83 |
| | | | | | | | | | This function deep copies a grid into a newly *allocated* grid struct. | |||
| | * | grid: add grid_free() | Daniel Eklöf | 2021-02-26 | -14/+18 |
| |/ | ||||
| * | Merge branch 'url-launcher-redirect-stdout-stderr' | Daniel Eklöf | 2021-02-26 | -13/+37 |
| |\ | ||||
| | * | spawn: call setsid() in child process | Daniel Eklöf | 2021-02-25 | -9/+13 |
| | | | ||||
| | * | url-mode: redirect stdin/stdout/stderr to /dev/null when opening an URL | Daniel Eklöf | 2021-02-24 | -1/+14 |
| | | | | | | | | | | | This fixex an issue where TUI programs started in the parent terminal (when running nested terminals). | |||
| | * | spawn: handle custom stdin/stdout/stderr fds being the same | Daniel Eklöf | 2021-02-24 | -3/+10 |
| | | | | | | | | | | | | | | | | | Allow the caller to pass the same FD (for example, a single /dev/null FD) to spawn(). All we need to do to handle this correctly is ensure we don’t try to close the same FD multiple times. | |||
| * | | grid: reflow_uri_ranges(): URI end point is *inclusive* | Daniel Eklöf | 2021-02-25 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | Which means, when we match URI start and end points against the current column index, we must *not* use ‘if...else if’, but two ‘if... if’. Fixes an assertion when resizing a window with an URI range of just one cell. | |||
| * | | wayland: rename variable ‘main’ to ‘main_surface’ | Daniel Eklöf | 2021-02-25 | -6/+8 |
| |/ | | | | | | Some compilers don’t think we know what we’re doing: ../wayland.c:1554:24: error: ‘main’ is usually a function | |||
| * | changelog: change "control- and escape sequences" to "escape sequences" | Craig Barnes | 2021-02-23 | -2/+2 |
| | | | | | | | According to the way ECMA-48 defines these terms, "escape sequences" are a superset of "control sequences", so there's no real reason to mention both. | |||
| * | changelog: fix a typo | Craig Barnes | 2021-02-23 | -1/+1 |
| | | ||||
| * | changelog: add missing space character | Daniel Eklöf | 2021-02-23 | -1/+1 |
| | | ||||
| * | changelog: added man page foot-ctlseq.7 | Daniel Eklöf | 2021-02-23 | -0/+2 |
| | | ||||
| * | Merge remote-tracking branch 'origin/foot-ctlseqs.7' | Daniel Eklöf | 2021-02-23 | -2/+2 |
| |\ | ||||
| | * | doc: ctlseqs: rename "foot-ctlseqs.5" man page to "foot-ctlseqs.7" | Craig Barnes | 2021-02-23 | -2/+2 |
| |/ | | | | | Section 5 is for "file formats and conventions", which doesn't really apply to terminal escape sequences. Section 7 is for "miscellaneous". | |||
| * | Merge branch 'erase-uri-ranges-when-erasing-cells' | Daniel Eklöf | 2021-02-23 | -2/+52 |
| |\ | ||||
| | * | terminal: erase_cell_range: erase URI ranges affected by the erase. | Daniel Eklöf | 2021-02-23 | -2/+52 |
| | | | | | | | | | | | * Partially affected URI ranges are split up * Completely covered URI ranges are removed | |||
| * | | url-mode: disable debug logging | Daniel Eklöf | 2021-02-23 | -1/+1 |
| |/ | ||||
| * | terminal: change type from uint32_t to bool in xtsave bitfield | Daniel Eklöf | 2021-02-23 | -26/+26 |
| | | ||||
| * | Merge branch 'sixel-private-mode-8452' | Daniel Eklöf | 2021-02-23 | -2/+37 |
| |\ | | | | | | | Closes #363 | |||
| | * | sixel: implement private mode 8452 - cursor positioning after sixel | Daniel Eklöf | 2021-02-23 | -2/+37 |
| |/ | | | | | | | | | | When disabled (the default), the cursor is positioned on a new line after emitting a sixel image. When enabled, the cursor is positioned to the right of the sixel image. Closes #363 | |||
| * | Merge branch 'sixel-private-color-registers' | Daniel Eklöf | 2021-02-23 | -7/+41 |
| |\ | | | | | | | Closes #362 | |||
| | * | doc: ctlseq: add private mode 1070 - use private color registers for each sixel | Daniel Eklöf | 2021-02-23 | -0/+3 |
| | | | ||||
| | * | sixel: free private color registers on unhook | Daniel Eklöf | 2021-02-23 | -11/+6 |
| | | | ||||
| | * | sixel: implement private mode 1070 - private color palette | Daniel Eklöf | 2021-02-23 | -7/+43 |
| |/ | | | | | | | | | When enabled (the default), sixels use private color registers. That is, the color palette from the last sixel is *not* re-used. When disabled, sixels share (i.e. re-use) the same color palette. Closes #362 | |||
| * | Merge branch 'document-control-sequences' | Daniel Eklöf | 2021-02-23 | -1/+630 |
| |\ | | | | | | | Closes #235 | |||
| | * | doc: ctlseq: replace ‘ST’ with the actual characters, ‘\E\’ | Daniel Eklöf | 2021-02-23 | -19/+19 |
| | | | ||||
| | * | doc: ctlseq: re-phrase when DCS is used instead of \EP | Daniel Eklöf | 2021-02-23 | -2/+2 |
| | | | ||||
| | * | doc: ctlseq: add OSC-8 | Daniel Eklöf | 2021-02-23 | -0/+5 |
| | | | ||||
| | * | doc: ctlseq: add missing ‘[’ in example escape sequence | Daniel Eklöf | 2021-02-23 | -1/+1 |
| | | | ||||
| | * | doc: ctlseq: remove excessive highlighting | Daniel Eklöf | 2021-02-23 | -2/+2 |
| | | | ||||
| | * | doc: ctlseq: turn “CC1 - 8-bit control sequences” into a footnote | Daniel Eklöf | 2021-02-23 | -7/+5 |
| | | | | | | | | | | | | | | | | | * 8-bit control characters are virtually never used. Many terminals do not support them. As such, there is no need to draw attention to the fact that foot does not implement them. * Rename the “CC0 - 7-bit control characters” section to “Control characters”. | |||
| | * | doc: ctlseq: “7-bit control sequences” -> “7-bit control *characters*” | Daniel Eklöf | 2021-02-23 | -2/+2 |
| | | | ||||
| | * | doc: ctlseq: add CSI sub headers to index | Daniel Eklöf | 2021-02-23 | -0/+5 |
| | | | ||||
| | * | doc: ctlseq: add XTSMGRAPHICS | Daniel Eklöf | 2021-02-23 | -5/+4 |
| | | | ||||
| | * | doc: ctlseq: document window manipulation sequences (CSI Ps;Ps;Ps t) | Daniel Eklöf | 2021-02-23 | -1/+54 |
| | | | ||||
| | * | doc: ctlseq: don’t highlight literal characters, only parameters | Daniel Eklöf | 2021-02-23 | -13/+13 |
| | | | ||||
| | * | doc: ctlseq: sort “misc” CSI sequences | Daniel Eklöf | 2021-02-23 | -77/+78 |
| | | | ||||
| | * | doc: ctlseq: add most of the remaining CSIs | Daniel Eklöf | 2021-02-23 | -2/+165 |
| | | | ||||
| | * | doc: ctlseq: add ESC prefixed sequences | Daniel Eklöf | 2021-02-23 | -0/+75 |
| | | | ||||
| | * | doc: ctlseq: add ‘origin’ column to OSC escape table | Daniel Eklöf | 2021-02-23 | -1/+17 |
| | | | ||||
| | * | doc: ctlseqs: always write out the actual sequence | Daniel Eklöf | 2021-02-23 | -32/+33 |
| | | | | | | | | | That is, don’t abbreviate ‘\E[‘ with ‘CSI’, or ‘\E]’ with ‘OSC’. | |||
| | * | doc: ctlseqs: document private modes 47, 1047 and 1048 | Craig Barnes | 2021-02-23 | -1/+10 |
| | | | ||||
| | * | doc: ctlseqs: document DECSET/DECRST and supported "private modes" | Craig Barnes | 2021-02-23 | -2/+93 |
| | | | ||||
| | * | doc: ctlseqs: document OSC sequences | Daniel Eklöf | 2021-02-23 | -1/+46 |
| | | | ||||
| | * | doc: ctlseqs: document supported DCS escapes | Daniel Eklöf | 2021-02-23 | -1/+10 |
| | | | | | | | | | Signed-off-by: Daniel Eklöf <daniel@ekloef.se> | |||
| | * | doc: ctlseqs: minor readability tweaks | Daniel Eklöf | 2021-02-23 | -3/+3 |
| | | | ||||
| | * | doc: ctlseqs: copyable -> copiable | Daniel Eklöf | 2021-02-23 | -1/+1 |
| | | | ||||
| | * | doc: ctlseqs: we’ll be using ‘OCS’ instead of \E] and ‘DCS’ instead of \EP | Daniel Eklöf | 2021-02-23 | -3/+3 |
| | | | ||||
| | * | doc: ctlseqs: we use ‘CSI’ not so much in the tables as in text | Daniel Eklöf | 2021-02-23 | -4/+3 |
| | | | ||||
| | * | doc: ctlseqs: left most -> leftmost | Daniel Eklöf | 2021-02-23 | -1/+1 |
| | | | ||||
| | * | doc: ctlseqs: fix weird sounding sentence | Daniel Eklöf | 2021-02-23 | -1/+1 |
| | | | ||||
| | * | doc: ctlseqs: be consistent; use dash between ‘8’ and ‘bit’ | Daniel Eklöf | 2021-02-23 | -1/+1 |
| | | | ||||
| | * | doc: ctlseqs: escape backslashes | Daniel Eklöf | 2021-02-23 | -4/+4 |
| | | | ||||
| | * | doc: ctlseqs: document SGRs, add TODOs | Daniel Eklöf | 2021-02-23 | -9/+123 |
| | | | ||||
| | * | doc: ctlseqs: document CC0 control sequences | Daniel Eklöf | 2021-02-23 | -1/+47 |
| |/ | ||||
| * | Merge branch 'dracula-theme' | Daniel Eklöf | 2021-02-23 | -0/+25 |
| |\ | ||||
| | * | themes: add Dracula | Elias | 2021-02-22 | -0/+25 |
| |/ | ||||
| * | Merge branch 'rename-_errno' | Daniel Eklöf | 2021-02-22 | -28/+29 |
| |\ | ||||
| | * | errno: don’t use ‘_errno’ as a variable name; _ are reserved for use as identifiers | Daniel Eklöf | 2021-02-21 | -28/+29 |
| | | | ||||
| * | | Merge branch 'osc8' | Daniel Eklöf | 2021-02-21 | -94/+654 |
| |\ \ | |/ |/| | | | Closes #13 | |||
| | * | changelog: OSC-8 support | Daniel Eklöf | 2021-02-21 | -2/+2 |
| | | | ||||
| | * | url-mode: use the same key combo for all occurrences of an URL | Daniel Eklöf | 2021-02-21 | -5/+25 |
| | | | ||||
| | * | config: typo: osc8-underline=always means ALWAYS | Daniel Eklöf | 2021-02-21 | -1/+1 |
| | | | ||||
| | * | config: osc8-underline: default to ‘url-mode’ | Daniel Eklöf | 2021-02-21 | -1/+1 |
| | | | ||||
| | * | urls: OSC-8 URLs can now optionally be underlined outside of url-mode | Daniel Eklöf | 2021-02-21 | -3/+65 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new configuration option, ‘osc8-underline=url-mode|always’. When set to ‘url-mode’, OSC-8 URLs are only highlighted (i.e. underlined) in url-mode, just like auto-detected URLs. When set to ‘always’, they are always underlined, regardless of mode, and regardless of their other attributes. This is implemented by tagging collected URLs with a boolean, instructing urls_render() and urls_reset() whether they should update the cells’ ‘url’ attribute or not. The OSC-8 collecter sets this based on the value of ‘osc8-underline’. Finally, when closing an OSC-8 URL, the cells are immediately tagged with the ‘url’ attribute if ‘osc8-underline’ is set to ‘always’. | |||
| | * | grid: refactor: break out allocation of ‘extra’ member to separate function | Daniel Eklöf | 2021-02-21 | -2/+7 |
| | | | ||||
| | * | terminal: osc8_close(): refactor: use grid_row_add_uri_range() | Daniel Eklöf | 2021-02-21 | -5/+1 |
| | | | ||||
| | * | grid: refactor: use grid_row_add_uri_range() | Daniel Eklöf | 2021-02-21 | -12/+3 |
| | | | ||||
| | * | grid: add new function grid_row_add_uri_range() | Daniel Eklöf | 2021-02-21 | -0/+11 |
| | | | ||||
| | * | grid: resize_without_reflow: allocate ‘extra’ on-demand on ‘new’ rows | Daniel Eklöf | 2021-02-21 | -1/+2 |
| | | | | | | | | | | | Even if we have URI ranges on the old row, all those ranges may lay outside the new grid’s range. | |||
| | * | grid: grid_resize_without_reflow: transfer URI ranges | Daniel Eklöf | 2021-02-21 | -1/+21 |
| | | | ||||
| | * | grid: reflow: translate URI ranges | Daniel Eklöf | 2021-02-21 | -22/+137 |
| | | | | | | | | | | | | | | | | | | | | | URI ranges are per row. Translate by detecting URI range start/end coordinates, and opening and closing a corresponding URI range on the new grid. We need to take care when line-wrapping the new grid; here we need to manually close the still-open URI ranges (on the new grid), and re-opening them on the next row. | |||
