Skip to content

Commit 8d48616

Browse files
authored
Merge pull request #3462 from anirudh1713/master
fix: switch active unicode version in demo
2 parents b5df612 + 3eeec14 commit 8d48616

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

demo/client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ function initAddons(term: TerminalType): void {
377377
if (!addon.canChange) {
378378
checkbox.disabled = true;
379379
}
380+
if(name === 'unicode11' && checkbox.checked) {
381+
term.unicode.activeVersion = '11';
382+
}
380383
addDomListener(checkbox, 'change', () => {
381384
if (checkbox.checked) {
382385
addon.instance = new addon.ctor();
@@ -385,10 +388,14 @@ function initAddons(term: TerminalType): void {
385388
setTimeout(() => {
386389
document.body.appendChild((addon.instance as WebglAddon).textureAtlas);
387390
}, 0);
391+
} else if (name === 'unicode11') {
392+
term.unicode.activeVersion = '11';
388393
}
389394
} else {
390395
if (name === 'webgl') {
391396
document.body.removeChild((addon.instance as WebglAddon).textureAtlas);
397+
} else if (name === 'unicode11') {
398+
term.unicode.activeVersion = '6';
392399
}
393400
addon.instance!.dispose();
394401
addon.instance = undefined;

0 commit comments

Comments
 (0)