about summary refs log tree commit diff stats
path: root/src/server
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/server
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/server')
-rw-r--r--src/server/buffer.nim2
-rw-r--r--src/server/forkserver.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim
index aef50329..6f8beb34 100644
--- a/src/server/buffer.nim
+++ b/src/server/buffer.nim
@@ -19,7 +19,7 @@ import css/mediaquery
 import css/sheet
 import css/stylednode
 import css/values
-import display/winattrs
+import display/term
 import html/catom
 import html/chadombuilder
 import html/dom
diff --git a/src/server/forkserver.nim b/src/server/forkserver.nim
index a62c94df..3e9124d0 100644
--- a/src/server/forkserver.nim
+++ b/src/server/forkserver.nim
@@ -5,7 +5,7 @@ import std/streams
 import std/tables
 
 import config/config
-import display/winattrs
+import display/term
 import io/posixstream
 import io/serialize
 import io/serversocket