Files
xterm.js/addons/xterm-addon-unicode-graphemes
Per Bothner 2f7fe1189c New unicode-graphemes addon.
Handle grapheme cluster lookup as well as wcwidth.
This is based on Unicode 15, and could replace the unicode11 addon.
2023-05-16 18:31:31 -07:00
..
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00
2023-05-16 18:31:31 -07:00

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);

// activate the new version
terminal.unicode.activeVersion = '15';