Skip to content

Expose an API to clear the canvas renderer's texture atlas #3455

@Tyriar

Description

@Tyriar

VS Code issue: microsoft/vscode#69665

The WebGL renderer has an API to clear the texture atlas which allows an embedder to workaround a texture corruption issue in Chromium (Slack, VS Code, etc.). It's been verified that this fixes it so we should expose an API in xterm.d.ts to do the same just for the canvas renderer

public clearTextureAtlas(): void {

We likely will move the canvas renderer into an addon but that would be a breaking change anyway so we can remove this API at that point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementFeatures or improvements to existing features

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions