From 34ab3efc962f78935d94ad9a9957607907ddbf87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Sat, 27 Aug 2011 16:13:23 +0200 Subject: add %x escape code for (width)x(height) --- src/screen.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/screen.c b/src/screen.c index 1096d9f..4906e15 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2798,6 +2798,14 @@ MakeWinMsgEv(char *str, struct win *win, int esc, int padlen, struct event *ev, numpad++; } break; + case 'x': + *p = 0; + if (!win) + sprintf(p, "--x--"); + else + sprintf(p, "%dx%d", win->w_width, win->w_height); + p += strlen(p) - 1; + break; case 'n': s++; /* FALLTHROUGH */ -- cgit v1.2.1