You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/components/terminal-session/terminal-session.tsx
+34-11Lines changed: 34 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,30 @@ const DARK_THEME = {
78
78
brightWhite: '#f0f6fc',
79
79
}
80
80
81
+
/**
82
+
* Loads the WebGL renderer and drops it if its context dies.
83
+
*
84
+
* WebGL is a large win on heavy output, but the context can be lost long after
85
+
* it loads: a GPU process restart, a driver hiccup, the window moving between
86
+
* GPUs, or simply too many live contexts — each terminal tab holds its own and
87
+
* the browser silently drops the oldest past its limit. An addon left loaded
88
+
* after that keeps painting a dead surface while the buffer moves on, which is
89
+
* what makes rows freeze or tear mid-scroll. Disposing falls back to xterm's
90
+
* DOM renderer: slower, but it cannot go stale.
91
+
*
92
+
* There is no canvas tier because `@xterm/addon-canvas` has no release for
93
+
* xterm 6 — every published version, latest beta included, peers on xterm 5.
0 commit comments