xtermjs / xterm.js

A terminal for the web
https://xtermjs.org/
MIT License
17.44k stars 1.62k forks source link

when open mutil terminal in one page , use long time . #2983

Closed herolyle closed 4 years ago

herolyle commented 4 years ago

Details

Steps to reproduce

In one page ,have many tabs/terminal ,when I open new tab need long time 。。

execute many times clearColor FunctionclearColor @ CharAtlasGenerator.js:73

herolyle commented 4 years ago

image

herolyle commented 4 years ago

image

herolyle commented 4 years ago

code // Remove the background color from the image so characters may overlap clearColor(charAtlasImageData, config.colors.background);

I set theme configure like

let defaultTheme = { foreground: "#c2c2c2", background: "#222222", cursor: "#ffffff", selection: "rgba(255, 255, 255, 0.3)", black: "#000000", brightBlack: "#808080", red: "#ce2f2b", brightRed: "#f44a47", green: "#00b976", brightGreen: "#05d289", yellow: "#e0d500", brightYellow: "#f4f628", magenta: "#bd37bc", brightMagenta: "#d86cd8", blue: "#1d6fca", brightBlue: "#358bed", cyan: "#00a8cf", brightCyan: "#19b8dd", white: "#e5e5e5", brightWhite: "#ffffff" };

jerch commented 4 years ago

xterm.js version: xterm@3.8.0

Plz try to repro the issue with the master version. 3.8 is outdated.

Tyriar commented 4 years ago

Additionally that is using the canvas renderer which we want to get rid of eventually, the webgl addon is available for fast hardware acceleration or the dom renderer for slower but best compatibility.