From 3a09e01a8e0e64f02ec054ca098da0bd8bbdf5dd Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 17 Jan 2013 20:30:43 +0000 Subject: Do not allow cursor colours to be set beginning with ? as that will report the colour, from Hayaki Saito. --- input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 7d26a661..e04ddc4f 100644 --- a/input.c +++ b/input.c @@ -1565,10 +1565,11 @@ input_exit_osc(struct input_ctx *ictx) server_status_window(ictx->wp->window); break; case 12: - screen_set_cursor_colour(ictx->ctx.s, p); + if (*p != '?') /* ? is colour request */ + screen_set_cursor_colour(ictx->ctx.s, p); break; case 112: - if (*p == '\0') /* No arguments allowed. */ + if (*p == '\0') /* no arguments allowed */ screen_set_cursor_colour(ictx->ctx.s, ""); break; default: -- cgit v1.2.3