Add API to clear canvas renderer texture atlas

Fixes #3455
This commit is contained in:
Daniel Imms
2021-09-22 06:38:47 -07:00
parent be7fcbe485
commit 189ff56224
12 changed files with 56 additions and 0 deletions
+8
View File
@@ -1056,6 +1056,14 @@ declare module 'xterm' {
*/
refresh(start: number, end: number): void;
/**
* Clears the texture atlas of the canvas renderer if it's active. Doing this will force a
* redraw of all glyphs which can workaround issues causing the texture to become corrupt, for
* example Chromium/Nvidia has an issue where the texture gets messed up when resuming the OS
* from sleep.
*/
clearTextureAtlas(): void;
/**
* Perform a full reset (RIS, aka '\x1bc').
*/