Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Commit 6ba7d23

Browse files
authored
feat: Ligatures with WebGL (#80)
* chore: Bump xterm to 4.12.0 * feat: Allow both ligatures and webgl addons * refactor: Enable font ligatures by default
1 parent ea88cc3 commit 6ba7d23

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

app/addons/AddonsProvider.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ export default class AddonsProvider {
3434
*/
3535
private setupAddon(config: IConfig, terminal: XTerminal, addon: Addon) {
3636

37-
if((addon.type !== AddonType.WEBGL || config.webGlRendering) &&
38-
(addon.type !== AddonType.LIGATURES || config.fontLigatures)) {
37+
if(addon.type !== AddonType.LIGATURES || config.fontLigatures) {
3938

4039
addon.addon = this.resolveAddonFromType(addon.type);
4140
addon.loaded = true;

common/config/defaultConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const defaultConfig: IConfig = {
126126
defaultShell,
127127
shells,
128128
webGlRendering: true,
129-
fontLigatures: false,
129+
fontLigatures: true,
130130
copyOnSelected: true,
131131
restoreWindowPosition: true,
132132
tabsIcons: true,

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
"ssh2": "^0.8.9",
4444
"sudo-prompt": "^9.2.1",
4545
"v8-compile-cache": "^2.2.0",
46-
"xterm": "^4.11.0",
46+
"xterm": "^4.12.0",
4747
"xterm-addon-fit": "^0.5.0",
4848
"xterm-addon-unicode11": "^0.2.0",
4949
"xterm-addon-web-links": "^0.4.0",
50-
"xterm-addon-webgl": "^0.10.0"
50+
"xterm-addon-webgl": "^0.11.0"
5151
},
5252
"devDependencies": {
5353
"@babel/preset-react": "^7.12.10",

yarn.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -11410,15 +11410,15 @@ xterm-addon-web-links@^0.4.0:
1141011410
resolved "https://registry.yarnpkg.com/xterm-addon-web-links/-/xterm-addon-web-links-0.4.0.tgz#265cbf8221b9b315d0a748e1323bee331cd5da03"
1141111411
integrity sha512-xv8GeiINmx0zENO9hf5k+5bnkaE8mRzF+OBAr9WeFq2eLaQSudioQSiT34M1ofKbzcdjSsKiZm19Rw3i4eXamg==
1141211412

11413-
xterm-addon-webgl@^0.10.0:
11414-
version "0.10.0"
11415-
resolved "https://registry.yarnpkg.com/xterm-addon-webgl/-/xterm-addon-webgl-0.10.0.tgz#e99366fdc4cbd46b798a5e2fc114ecc19f9fd4b7"
11416-
integrity sha512-MJzyWie5yw+PH6p//fXlXzmsULLtpBo992EWEKl2uv5M5Zj9etTwfuutCUK7o98mr6itDl+vS/CYIMP68jCf8w==
11413+
xterm-addon-webgl@^0.11.0:
11414+
version "0.11.0"
11415+
resolved "https://registry.yarnpkg.com/xterm-addon-webgl/-/xterm-addon-webgl-0.11.0.tgz#9601ee21cbd092c35c5b01b6ba6ea63767209515"
11416+
integrity sha512-ohrvmACebnbYyTALbx6AC8GKqfK/heCeO9WWIProjoKatVYFTUD5m8KD6Mk2mbBZOOMgEwLajpcl0ujO2YH9Uw==
1141711417

11418-
xterm@^4.11.0:
11419-
version "4.11.0"
11420-
resolved "https://registry.yarnpkg.com/xterm/-/xterm-4.11.0.tgz#d7dabc7af5299579e4663fedf2b3a179af9aaff9"
11421-
integrity sha512-NeJH909WTO2vth/ZlC0gkP3AGzupbvVHVlmtrpBw56/sGFXaF9bNdKgqKa3tf8qbGvXMzL2JhCcHVklqFztIRw==
11418+
xterm@^4.12.0:
11419+
version "4.12.0"
11420+
resolved "https://registry.yarnpkg.com/xterm/-/xterm-4.12.0.tgz#db09b425b4dcae5b96f8cbbaaa93b3bc60997ca9"
11421+
integrity sha512-K5mF/p3txUV18mjiZFlElagoHFpqXrm5OYHeoymeXSu8GG/nMaOO/+NRcNCwfdjzAbdQ5VLF32hEHiWWKKm0bw==
1142211422

1142311423
"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0:
1142411424
version "4.0.0"

0 commit comments

Comments
 (0)