aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authornicm <nicm>2019-11-28 09:05:34 +0000
committernicm <nicm>2019-11-28 09:05:34 +0000
commit067604bf8cb23c1a208d26d94dbae7c2ab46dabf (patch)
treed8692a46c84f0bb155282f9208311f8f8646f9cd /format.c
parent7fb8eec8f13bf54b3a6c06763d2cf0b29df51281 (diff)
downloadrtmux-067604bf8cb23c1a208d26d94dbae7c2ab46dabf.tar.gz
rtmux-067604bf8cb23c1a208d26d94dbae7c2ab46dabf.tar.bz2
rtmux-067604bf8cb23c1a208d26d94dbae7c2ab46dabf.zip
Store xpixel/ypixel from TIOCGWINSZ and add formats.
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/format.c b/format.c
index ffa9b8d5..45320bf5 100644
--- a/format.c
+++ b/format.c
@@ -2158,6 +2158,8 @@ format_defaults_client(struct format_tree *ft, struct client *c)
format_add(ft, "client_pid", "%ld", (long) c->pid);
format_add(ft, "client_height", "%u", tty->sy);
format_add(ft, "client_width", "%u", tty->sx);
+ format_add(ft, "client_cell_width", "%u", tty->xpixel);
+ format_add(ft, "client_cell_height", "%u", tty->ypixel);
format_add(ft, "client_tty", "%s", c->ttyname);
format_add(ft, "client_control_mode", "%d",
!!(c->flags & CLIENT_CONTROL));