diff --git a/lib/components/term.tsx b/lib/components/term.tsx index 5b690a75..b093e07f 100644 --- a/lib/components/term.tsx +++ b/lib/components/term.tsx @@ -5,6 +5,7 @@ import {WebLinksAddon} from 'xterm-addon-web-links'; import {SearchAddon} from 'xterm-addon-search'; import {WebglAddon} from 'xterm-addon-webgl'; import {LigaturesAddon} from 'xterm-addon-ligatures'; +import {Unicode11Addon} from 'xterm-addon-unicode11'; import {clipboard, shell} from 'electron'; import Color from 'color'; import terms from '../terms'; @@ -177,6 +178,8 @@ export default class Term extends React.PureComponent { if (props.disableLigatures !== true) { this.term.loadAddon(new LigaturesAddon()); } + this.term.loadAddon(new Unicode11Addon()); + this.term.unicode.activeVersion = '11'; } else { // get the cached plugins this.fitAddon = props.fitAddon!; diff --git a/package.json b/package.json index 9d597f17..8f2c9d54 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "xterm-addon-fit": "^0.4.0", "xterm-addon-ligatures": "^0.3.0", "xterm-addon-search": "^0.7.0", + "xterm-addon-unicode11": "^0.2.0", "xterm-addon-web-links": "^0.4.0", "xterm-addon-webgl": "^0.8.0" }, diff --git a/yarn.lock b/yarn.lock index fccfde51..fb703eb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8668,6 +8668,11 @@ xterm-addon-search@^0.7.0: resolved "https://registry.yarnpkg.com/xterm-addon-search/-/xterm-addon-search-0.7.0.tgz#c929d3e5cbb335e82bff72f158ea82936d9cd4ef" integrity sha512-6060evmJJ+tZcjnx33FXaeEHLpuXEa7l9UzUsYfMlCKbu88AbE+5LJocTKCHYd71cwCwb9pjmv/G1o9Rf9Zbcg== +xterm-addon-unicode11@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/xterm-addon-unicode11/-/xterm-addon-unicode11-0.2.0.tgz#9ed0c482b353908bba27778893ca80823382737c" + integrity sha512-rjFDItPc/IDoSiEnoDFwKroNwLD/7t9vYKENjrcKVZg5tgJuuUj8D4rZtP6iVCjSB1LTLYmUs4L/EmCqIyLR/Q== + xterm-addon-web-links@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/xterm-addon-web-links/-/xterm-addon-web-links-0.4.0.tgz#265cbf8221b9b315d0a748e1323bee331cd5da03"