about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-25 20:25:04 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-25 20:25:04 +0100
commit92fbf479f8bf6db6ad0655e5b71a0b58a45a2213 (patch)
tree47b7f2c23ebabbf94e48476615014b52762542f3 /src/html
parent4df71520f39ed7992f78484701467e513a34c5dc (diff)
downloadchawan-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/html')
-rw-r--r--src/html/dom.nim2
-rw-r--r--src/html/env.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 1104ee90..d322049c 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -10,7 +10,7 @@ import css/cssparser
 import css/mediaquery
 import css/sheet
 import css/values
-import display/winattrs
+import display/term
 import html/catom
 import html/enums
 import html/event
diff --git a/src/html/env.nim b/src/html/env.nim
index 8a570b93..9e817ea0 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -2,7 +2,7 @@ import std/selectors
 import std/streams
 
 import bindings/quickjs
-import display/winattrs
+import display/term
 import html/catom
 import html/chadombuilder
 import html/dom