diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-25 20:25:04 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-25 20:25:04 +0100 |
commit | 92fbf479f8bf6db6ad0655e5b71a0b58a45a2213 (patch) | |
tree | 47b7f2c23ebabbf94e48476615014b52762542f3 /doc | |
parent | 4df71520f39ed7992f78484701467e513a34c5dc (diff) | |
download | chawan-92fbf479f8bf6db6ad0655e5b71a0b58a45a2213.tar.gz |
term: improve pixels-per-column/line detection
Some terminal emulators (AKA vte) refuse to set ws_xpixel and ws_ypixel in the TIOCGWINSZ ioctl, so we now query for CSI 14 t as well. (Also CSI 18 t for good measure, just in case we can't ioctl for some reason.) Also added some fallback (optionally forced) config values for width, height, ppc, and ppl. (This is especially useful in dump mode.)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/config.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/config.md b/doc/config.md index 7e43300c..e0208e16 100644 --- a/doc/config.md +++ b/doc/config.md @@ -432,6 +432,22 @@ output will most likely look horrible. (Except, obviously, if your terminal does not support Primary Device Attributes.)</td> </tr> +<tr> +<td>columns, lines, pixels-per-column, pixels-per-line</td> +<td>number</td> +<td>Fallback values for the number of columns, lines, pixels per +column, and pixels per line for the cases where it cannot be determined +automatically. (For example, these values are used in dump mode.)</td> +</tr> + +<tr> +<td>force-columns, force-lines, force-pixels-per-column, +force-pixels-per-line</td> +<td>boolean</td> +<td>Force-set columns, lines, pixels per column, or pixels per line to the +fallback values provided above.</td> +</tr> + </table> ## Omnirule |