From d150d9b384612c1ee2c52009b996a4466e111049 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 6 Feb 2017 13:25:15 +0000 Subject: Fix logging of CSI parameters. --- input.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 17f81dd7..9d8bb60a 100644 --- a/input.c +++ b/input.c @@ -871,9 +871,10 @@ input_parse(struct window_pane *wp) buf = EVBUFFER_DATA(evb); len = EVBUFFER_LENGTH(evb); - notify_input(wp, evb); off = 0; + notify_input(wp, evb); + log_debug("%s: %%%u %s, %zu bytes: %.*s", __func__, wp->id, ictx->state->name, len, (int)len, buf); @@ -1218,11 +1219,13 @@ input_csi_dispatch(struct input_ctx *ictx) if (ictx->flags & INPUT_DISCARD) return (0); - if (input_split(ictx) != 0) - return (0); + log_debug("%s: '%c' \"%s\" \"%s\"", __func__, ictx->ch, ictx->interm_buf, ictx->param_buf); + if (input_split(ictx) != 0) + return (0); + entry = bsearch(ictx, input_csi_table, nitems(input_csi_table), sizeof input_csi_table[0], input_table_compare); if (entry == NULL) { -- cgit From 10e14ae504df467234284a1040e91d48b41b2dd0 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 6 Feb 2017 19:26:49 +0000 Subject: Add BCE for clear to start of screen, which was somehow missed. --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index 9d8bb60a..76a6e9f8 100644 --- a/input.c +++ b/input.c @@ -1330,7 +1330,7 @@ input_csi_dispatch(struct input_ctx *ictx) screen_write_clearendofscreen(sctx, ictx->cell.cell.bg); break; case 1: - screen_write_clearstartofscreen(sctx); + screen_write_clearstartofscreen(sctx, ictx->cell.cell.bg); break; case 2: screen_write_clearscreen(sctx, ictx->cell.cell.bg); -- cgit From d60e585d9e6f01c06b936f550ebf889453a8720f Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 6 Feb 2017 22:05:11 +0000 Subject: Use DECFRA on VT420 compatible terminals (so, xterm) and ED on all others for clearing panes. --- input.c | 1 + 1 file changed, 1 insertion(+) (limited to 'input.c') diff --git a/input.c b/input.c index 76a6e9f8..26eb1686 100644 --- a/input.c +++ b/input.c @@ -87,6 +87,7 @@ struct input_ctx { struct utf8_data utf8data; int ch; + int flags; #define INPUT_DISCARD 0x1 -- cgit