mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
23 lines
768 B
Markdown
23 lines
768 B
Markdown
## @xterm/addon-unicode-graphemes
|
|
|
|
⚠️ **This addon is currently experimental and may introduce unexpected and non-standard behavior**
|
|
|
|
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](https://github.com/PerBothner/unicode-properties) for credits and re-generation instructions.
|
|
|
|
### Install
|
|
|
|
This addon is not yet published to npm
|
|
|
|
### Usage
|
|
|
|
```ts
|
|
import { Terminal } from '@xterm/xterm';
|
|
import { UnicodeGraphemesAddon } from '@xterm/addon-unicode-graphemes';
|
|
|
|
const terminal = new Terminal();
|
|
const unicodeGraphemesAddon = new UnicodeGraphemesAddon();
|
|
terminal.loadAddon(unicodeGraphemesAddon);
|
|
```
|