mirror of
https://github.com/chjj/blessed.git
synced 2026-02-06 13:36:46 +00:00
surrogate pair emoticons for widget-eaw.
This commit is contained in:
parent
b6c512925f
commit
092b240ef6
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user