From 269bb8e65feb68df248eb7f9d8b3d5337e1c31a2 Mon Sep 17 00:00:00 2001 From: CHaBou Date: Sun, 18 Mar 2018 01:19:26 +0100 Subject: [PATCH] Improve rendering performance of chars with background (#2769) Integrate https://github.com/xtermjs/xterm.js/pull/1327 (https://github.com/xtermjs/xterm.js/pull/1327/commits/7c3a30f23969423709f284820986335b277c63ad) Fixes #2592 --- lib/components/term.js | 1 + package.json | 2 +- yarn.lock | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/components/term.js b/lib/components/term.js index 572bf9d44265..32005691d0c6 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -29,6 +29,7 @@ const getTermOptions = props => { fontWeight: props.fontWeight, fontWeightBold: props.fontWeightBold, allowTransparency: needTransparency, + experimentalCharAtlas: 'dynamic', theme: { foreground: props.foregroundColor, background: backgroundColor, diff --git a/package.json b/package.json index 379d248751c9..f19ae393f17c 100644 --- a/package.json +++ b/package.json @@ -199,7 +199,7 @@ "styled-jsx": "2.2.6", "stylis": "3.5.0", "uuid": "3.1.0", - "xterm": "3.2.0" + "xterm": "chabou/xterm.js#b2e393f" }, "devDependencies": { "ava": "0.25.0", diff --git a/yarn.lock b/yarn.lock index a2c235653793..9f350a5d2bc9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6693,9 +6693,9 @@ xtend@~2.1.1: dependencies: object-keys "~0.4.0" -xterm@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/xterm/-/xterm-3.2.0.tgz#da50f54a83d81463c0a2c9f2e0a5d14d3867df02" +xterm@chabou/xterm.js#b2e393f: + version "3.2.0-hyper.0" + resolved "https://codeload.github.com/chabou/xterm.js/tar.gz/b2e393f48029ff638d20d2ba6347d0829bd20c42" y18n@^3.2.1: version "3.2.1"