Commit graph

295 commits

Author SHA1 Message Date
Daniel Eklöf
1df48fcb33
config: bold-text-in-bright: add ‘palette-based’ as a special value
When ‘bold-text-in-bright’ is set ‘to palette-based’, colors matching
one of the 8 regular palette colors are brightened by using the
corresponding bright palette color.

Other colors, or all colors if ‘bold-text-in-bright’ is set to
‘yes|true’, are brightened by increasing the luminance.
2021-04-18 20:09:10 +02:00
Daniel Eklöf
4325d5a4ab
doc: foot.ini: re-phrase the box-drawings-uses-font-glyphs section 2021-04-18 20:08:35 +02:00
Daniel Eklöf
39d65bf083
doc: foot.ini: codespell: antaliasing -> antialiasing 2021-04-18 20:08:32 +02:00
Daniel Eklöf
ce321e663e
config: add box-drawings-uses-font-glyphs=no|yes option
When disabled, we render box drawing characters ourselves. This is the
default.

When enabled, we instead use font glyphs. I.e. no special treatment.

Closes #430
2021-04-18 20:08:30 +02:00
Daniel Eklöf
d620a7b3b4
osc: implement OSC 17+19: change selection background/foreground colors
And of course, we also implement the corresponding reset sequences,
OSC 117+119.
2021-04-18 20:08:08 +02:00
Daniel Eklöf
713a53fa3e
doc: foot-ctlseq: mention that we support transparency in OSC 11 2021-04-18 20:08:04 +02:00
Daniel Eklöf
6e293337a9
doc: foot.ini: fix default value for delete-next-word 2021-04-18 20:07:07 +02:00
Daniel Eklöf
eccf2b674e
doc: benchmark: update "workstation" benchmarks with 1.7.0 results 2021-03-21 00:01:17 +01:00
Daniel Eklöf
5f1d56bccc
doc: benchmark: updated “laptop” benchmark with 1.7.0 results 2021-03-20 23:58:22 +01:00
Felipe Trzaskowski
452830bd08 add changelog entry, completions and man entry for -N, --no-wait 2021-03-13 08:07:08 -03:00
Daniel Eklöf
3a4f6c469b
doc: foot.ini: update default key bindings - use lower case keys 2021-03-04 09:43:43 +01:00
Daniel Eklöf
47fe27ca5d
doc: foot.ini: key combos must *not* include shift and be in upper case 2021-03-04 09:43:43 +01:00
Felix Lechner
e54abd1c33 Add NAME section to foot-ctlseqs.7; fixes whatis entry for manual page.
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
2021-02-28 09:52:53 -08:00
Daniel Eklöf
c0be074348
doc: use ‘fuzzel’ instead of ‘bemenu’ in examples 2021-02-26 09:24:40 +01:00
Craig Barnes
9b208f56de doc: ctlseqs: rename "foot-ctlseqs.5" man page to "foot-ctlseqs.7"
Section 5 is for "file formats and conventions", which doesn't really
apply to terminal escape sequences. Section 7 is for "miscellaneous".
2021-02-23 18:49:57 +00:00
Daniel Eklöf
03c675c6e2
sixel: implement private mode 8452 - cursor positioning after sixel
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
2021-02-23 10:36:02 +01:00
Daniel Eklöf
667b3e9a1a
doc: ctlseq: add private mode 1070 - use private color registers for each sixel 2021-02-23 09:42:14 +01:00
Daniel Eklöf
f08b05e796
doc: ctlseq: replace ‘ST’ with the actual characters, ‘\E\’ 2021-02-23 09:31:46 +01:00
Daniel Eklöf
8a3537b940
doc: ctlseq: re-phrase when DCS is used instead of \EP 2021-02-23 09:31:46 +01:00
Daniel Eklöf
2c0f391e3b
doc: ctlseq: add OSC-8 2021-02-23 09:31:46 +01:00
Daniel Eklöf
022646f8eb
doc: ctlseq: add missing ‘[’ in example escape sequence 2021-02-23 09:31:46 +01:00
Daniel Eklöf
db9bd8c1ae
doc: ctlseq: remove excessive highlighting 2021-02-23 09:31:46 +01:00
Daniel Eklöf
76721aaef3
doc: ctlseq: turn “CC1 - 8-bit control sequences” into a footnote
* 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”.
2021-02-23 09:31:46 +01:00
Daniel Eklöf
6e0eb904b7
doc: ctlseq: “7-bit control sequences” -> “7-bit control *characters*” 2021-02-23 09:31:45 +01:00
Daniel Eklöf
34363b6d24
doc: ctlseq: add CSI sub headers to index 2021-02-23 09:31:45 +01:00
Daniel Eklöf
451b3c53de
doc: ctlseq: add XTSMGRAPHICS 2021-02-23 09:31:45 +01:00
Daniel Eklöf
54d1421782
doc: ctlseq: document window manipulation sequences (CSI Ps;Ps;Ps t) 2021-02-23 09:31:45 +01:00
Daniel Eklöf
36f8cf0043
doc: ctlseq: don’t highlight literal characters, only parameters 2021-02-23 09:31:45 +01:00
Daniel Eklöf
0a33ce3e78
doc: ctlseq: sort “misc” CSI sequences 2021-02-23 09:31:45 +01:00
Daniel Eklöf
3c69a9c7e1
doc: ctlseq: add most of the remaining CSIs 2021-02-23 09:31:45 +01:00
Daniel Eklöf
a6e496ebca
doc: ctlseq: add ESC prefixed sequences 2021-02-23 09:31:45 +01:00
Daniel Eklöf
5539a7a02c
doc: ctlseq: add ‘origin’ column to OSC escape table 2021-02-23 09:31:45 +01:00
Daniel Eklöf
d74e62d65f
doc: ctlseqs: always write out the actual sequence
That is, don’t abbreviate ‘\E[‘ with ‘CSI’, or ‘\E]’ with ‘OSC’.
2021-02-23 09:31:45 +01:00
Craig Barnes
56ab820d3f
doc: ctlseqs: document private modes 47, 1047 and 1048 2021-02-23 09:31:45 +01:00
Craig Barnes
de64ef8410
doc: ctlseqs: document DECSET/DECRST and supported "private modes" 2021-02-23 09:31:45 +01:00
Daniel Eklöf
26d9f5a394
doc: ctlseqs: document OSC sequences 2021-02-23 09:31:44 +01:00
Daniel Eklöf
7d16fb1bbd
doc: ctlseqs: document supported DCS escapes
Signed-off-by: Daniel Eklöf <daniel@ekloef.se>
2021-02-23 09:31:44 +01:00
Daniel Eklöf
33b4fcad9f
doc: ctlseqs: minor readability tweaks 2021-02-23 09:31:44 +01:00
Daniel Eklöf
be49c3c0a6
doc: ctlseqs: copyable -> copiable 2021-02-23 09:31:44 +01:00
Daniel Eklöf
e2f20071a5
doc: ctlseqs: we’ll be using ‘OCS’ instead of \E] and ‘DCS’ instead of \EP 2021-02-23 09:31:44 +01:00
Daniel Eklöf
42cf196420
doc: ctlseqs: we use ‘CSI’ not so much in the tables as in text 2021-02-23 09:31:44 +01:00
Daniel Eklöf
325bbf5e85
doc: ctlseqs: left most -> leftmost 2021-02-23 09:31:44 +01:00
Daniel Eklöf
59bee8016f
doc: ctlseqs: fix weird sounding sentence 2021-02-23 09:31:44 +01:00
Daniel Eklöf
51900a5efb
doc: ctlseqs: be consistent; use dash between ‘8’ and ‘bit’ 2021-02-23 09:31:44 +01:00
Daniel Eklöf
634116e637
doc: ctlseqs: escape backslashes 2021-02-23 09:31:44 +01:00
Daniel Eklöf
6594c39823
doc: ctlseqs: document SGRs, add TODOs 2021-02-23 09:31:44 +01:00
Daniel Eklöf
38e2700f74
doc: ctlseqs: document CC0 control sequences 2021-02-23 09:31:44 +01:00
Daniel Eklöf
2074f8b656
urls: OSC-8 URLs can now optionally be underlined outside of url-mode
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’.
2021-02-21 20:15:32 +01:00
Daniel Eklöf
4ff5154cb8
config: change default key binding for toggle-url-visible to ‘t’ 2021-02-21 20:15:31 +01:00
Daniel Eklöf
06a9ffa763
urls: add key binding that toggles whether URLs are displayed on jump-label
By default, the URL isn’t shown on the jump-label. For auto-detect
URLs, doing so is virtually always useless, as the URL is already
visible in the grid.

For OSC-8 URLs however, the URL is often _not_ visible in the
grid. Many times, seeing the URL is still not needed (if you’re doing
‘ls --hyperlink’, you already know what the URIs are).

But it is still useful to have a way to show the URLs.

This patch adds a new key binding action that can be used in url-mode
to toggle the URL on and off in the jump label.

It is bound to ctrl+t by default.
2021-02-21 20:15:31 +01:00