From 2818db1843181da171984e8301d6300cca1d8562 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sun, 15 Nov 2009 00:54:27 -0500 Subject: [PATCH] Handle the '2' code for OSC. This makes it possible to set the title using, for example, xtermcontrol. --- src/ansi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansi.c b/src/ansi.c index a6fc161..a9c7054 100644 --- a/src/ansi.c +++ b/src/ansi.c @@ -1530,7 +1530,7 @@ StringEnd() } #endif #ifdef RXVT_OSC - if (typ == 0 || typ == 1 || typ == 20 || typ == 39 || typ == 49) + if (typ == 0 || typ == 1 || typ == 2 || typ == 20 || typ == 39 || typ == 49) { int typ2; typ2 = typ / 10; @@ -1540,7 +1540,7 @@ StringEnd() { strncpy(curr->w_xtermosc[typ2], p, sizeof(curr->w_xtermosc[typ2]) - 1); curr->w_xtermosc[typ2][sizeof(curr->w_xtermosc[typ2]) - 1] = 0; - + for (display = displays; display; display = display->d_next) { if (!D_CXT) -- 2.11.4.GIT