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 /src/layout/engine.nim | |
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 'src/layout/engine.nim')
-rw-r--r-- | src/layout/engine.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 613cd9c3..93a324b3 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -5,7 +5,7 @@ import std/unicode import css/stylednode import css/values -import display/winattrs +import display/term import layout/box import layout/layoutunit import utils/luwrap |