Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 1.37 KB

terminal-renderer-transition.md

File metadata and controls

11 lines (8 loc) · 1.37 KB

Terminal renderer transition check

The terminal card keeps a short DOM snapshot while xterm switches between its DOM and WebGL renderers. Use this manual check when changing renderer lifecycle code.

  1. Start CanvasTTY with a clean or disposable profile and open a terminal card.
  2. Produce continuous output in the card, for example yes renderer-check followed by Ctrl-C.
  3. Zoom or resize the canvas across the WebGL eligibility boundary several times. The transition should reveal the new renderer with a short fade and should not leave a stale frame over the live terminal.
  4. Start another burst of output, hide the CanvasTTY window or switch applications before the fade completes, then restore the window. The snapshot must be gone and the newest terminal output must be visible immediately; no old frame may cover it.
  5. Repeat the hide/restore step while the card is switching renderer and while several terminal cards are visible. Check that other cards keep rendering and that selection and pinned input still work.

The automated coverage is in tests/terminal-renderer-transition.test.mjs. It exercises the normal render-to-paint path, the cleanup deadline when rendering or animation frames stop, document visibility cleanup, teardown in each transition phase, and reduced-motion behavior. The manual steps above remain necessary for the compositor-visible hide/restore result.