diff --git a/package-lock.json b/package-lock.json index 59847ea..71fd349 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "@xterm/addon-fit": "^0.11.0", "@xterm/addon-search": "^0.16.0", + "@xterm/addon-unicode-graphemes": "^0.4.0", "@xterm/addon-web-links": "^0.12.0", "@xterm/addon-webgl": "^0.19.0", "@xterm/xterm": "^6.0.0", @@ -2453,6 +2454,12 @@ "integrity": "sha512-9OeuBFu0/uZJPu+9AHKY6g/w0Czyb/Ut0A5t79I4ULoU4IfU5BEpPFVGQxP4zTTMdfZEYkVIRYbHBX1xWwjeSA==", "license": "MIT" }, + "node_modules/@xterm/addon-unicode-graphemes": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@xterm/addon-unicode-graphemes/-/addon-unicode-graphemes-0.4.0.tgz", + "integrity": "sha512-9+/CqwbKcnlkJU4d3wIgO+wjsL8f6vyz+UwUWLu6nADQz8Gr8ONqGCJfdDjIdI+yYZLABQqQy47FzEM6AWELjw==", + "license": "MIT" + }, "node_modules/@xterm/addon-web-links": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/@xterm/addon-web-links/-/addon-web-links-0.12.0.tgz", diff --git a/package.json b/package.json index ecc248a..db13513 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dependencies": { "@xterm/addon-fit": "^0.11.0", "@xterm/addon-search": "^0.16.0", + "@xterm/addon-unicode-graphemes": "^0.4.0", "@xterm/addon-web-links": "^0.12.0", "@xterm/addon-webgl": "^0.19.0", "@xterm/xterm": "^6.0.0", diff --git a/public/index.html b/public/index.html index bcbc2f6..8484857 100644 --- a/public/index.html +++ b/public/index.html @@ -101,6 +101,7 @@ + diff --git a/public/terminal-manager.js b/public/terminal-manager.js index 5738184..d533500 100644 --- a/public/terminal-manager.js +++ b/public/terminal-manager.js @@ -202,6 +202,8 @@ function createTerminalEntry(session) { })); const searchAddon = new SearchAddon.SearchAddon(); terminal.loadAddon(searchAddon); + terminal.loadAddon(new UnicodeGraphemesAddon.UnicodeGraphemesAddon()); + terminal.unicode.activeVersion = '15'; terminal.open(container); container.style.backgroundColor = TERMINAL_THEME.background;