From 092b240ef60e05eed7d6f21bcaacb7a2e058d36f Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 1 May 2015 16:47:05 -0700 Subject: [PATCH] surrogate pair emoticons for widget-eaw. --- test/widget-eaw.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/widget-eaw.js b/test/widget-eaw.js index db59037..50923fb 100644 --- a/test/widget-eaw.js +++ b/test/widget-eaw.js @@ -101,6 +101,17 @@ if (~process.argv.indexOf('s')) { lorem = lorem.replace(/s/gi, 's' + COMBINE); } +// Surrogate pair emoticons from the SMP: +lorem += '\n'; +lorem += 'emoticons: '; +for (var point = 0x1f600; point <= 0x1f64f; point++) { + // These are technically single-width, + // but they _look_ like they should be + // double-width in gnome-terminal (they overlap). + var emoticon = unicode.fromCodePoint(point); + lorem += emoticon + ' '; +} + var main = blessed.box({ parent: screen, left: 'center',