Th former doesn't support grapheme clusters, except the old-fashioned kind of simple modifiers. However, "15-graphemes" (with full cluster support) is the default.
xterm-addon-unicode-graphemes
An addon providing enhanced Unicode support (include grapheme clustering) for xterm.js.
The file src/UnicodeProperties.ts is generated and depends on the Unicode version. See the unicode-properties project for credits and re-generation instructions.
Install
npm install --save xterm-addon-unicode-graphemes
Usage
import { Terminal } from 'xterm';
import { UnicodeGraphemeAddon } from 'xterm-addon-unicode-graphemes';
const terminal = new Terminal();
const unicodeGraphemeAddon = new UnicodeGraphemeAddon();
terminal.loadAddon(unicodeGraphemeAddon);