From fa8b0cbd80c5473e648c5fa1a71b0f74537d1af3 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 17 Apr 2020 23:03:20 +0200 Subject: csi: implement CSI Ps ; Ps ; Ps t reporting escape sequences A lot of the escape sequences on the "CSI Ps ; Ps ; Ps t" form are expected to return a reply. Thus, not having these implemented means we will hang if the client sends these escapes. Not all of these escapes can be meaningfully implemented on Wayland, and thus this implementation is best effort. We now support the following escapes: * 11t - report if window is iconified (always replies "no") * 13t - report window position (always replies 0,0) * 13;2t - report text area position (replies with margins, since we cannot get the window's position) * 14t - report text area size, in pixels * 14;2t - report window size, in pixels * 15t - report screen size, in pixels * 16t - report cell size, in pixels * 18t - report text area size, in cells * 19t - report screen size, in cells --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render.c') diff --git a/render.c b/render.c index 8c4f55db..a9508f9c 100644 --- a/render.c +++ b/render.c @@ -626,7 +626,7 @@ grid_render_scroll_reverse(struct terminal *term, struct buffer *buf, int height = (dmg->scroll.region.end - dmg->scroll.region.start - dmg->scroll.lines) * term->cell_height; LOG_DBG( - "damage: SCROLL REVERSE: %d-%d by %d lines"m + "damage: SCROLL REVERSE: %d-%d by %d lines", dmg->scroll.region.start, dmg->scroll.region.end, dmg->scroll.lines); if (height <= 0) -- cgit v1.3