From 188e197e20d3c678fc6f5d478e17699caea01128 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 31 Dec 2016 15:19:54 -0800 Subject: [PATCH] Wrap wide chars in a span/class Part of #439 --- src/xterm.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index 1d220652..fcb60bf5 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1182,6 +1182,9 @@ Terminal.prototype.refresh = function(start, end, queue) { } } + if (ch_width === 2) { + out += ''; + } switch (ch) { case '&': out += '&'; @@ -1200,6 +1203,9 @@ Terminal.prototype.refresh = function(start, end, queue) { } break; } + if (ch_width === 2) { + out += ''; + } attr = data; }