Skip to content

[Bug]: Program default-background changes leave earlier terminal rows black #37192

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a web terminal and print ordinary text rows. Let them render.
  2. Run xtermcontrol --bg=rgb:44/55/66 without a full-screen redraw. The proof scenario invokes the unchanged binary from a raw-mode Node wrapper on keypress to avoid unrelated shell redraws.
  3. Observe earlier rows and the canvas padding.

Expected behavior

The terminal uses the new default background throughout the screen, while explicit cell backgrounds keep their colors.

Actual behavior

xtermcontrol exits successfully, but earlier rows and canvas padding remain black. The effective frame background changes while cached cells retain the old resolved colors. Default foreground changes and resets share the cache invalidation problem.

Impact

Minor bug or occasional failure. Conditional on programs changing default colors after rows have rendered; user incidence unknown.

Version or commit

main @ 86a9d9f

Environment

Linux web Chromium. Desktop, mobile and remote behavior unproved.

Logs or stack traces

The existing public ANSI-color case fails after OSC 11 on main: frame background updates, previously rendered cell backgrounds do not. The real-client xtermcontrol scenario also fails on main and passes with the fix.

Screenshots, recordings, or supporting files

Found by Terminal Improvement Bug Hunt (GPT 6.1 Sol), independently confirmed by Claude Opus 5.5 on main 789d10f, then reproduced again for this fix.

Main after xtermcontrol

Workaround

A full redraw can hide the stale rows.

Activity

  1. added
    vouch:trusted
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions