Skip to content

Document actual default for ITerminalOptions.scrollback #174

Description

@ThomasK33

Description

While planning the fix for #139, I noticed a small API documentation mismatch around the scrollback option:

  • lib/terminal.ts currently defaults options.scrollback to 10000 lines.
  • lib/interfaces.ts documents scrollback?: number; // Default: 1000.

This can confuse API users and reviewers when reasoning about scrollback-related behavior.

Expected behavior

The ITerminalOptions.scrollback comment should document the actual default used by Terminal, or the code and docs should be reconciled intentionally.

Actual behavior

The interface comment says the default is 1000, while the constructor uses 10000.

Reproduction / evidence

rg -n "scrollback" lib/interfaces.ts lib/terminal.ts

Relevant current lines:

// lib/interfaces.ts
scrollback?: number; // Default: 1000

// lib/terminal.ts
scrollback: options.scrollback ?? 10000,

Why this is out of scope for #139

Issue #139 is about runtime corruption caused by WASM viewport row pin resolution and scrollback line-count-to-byte conversion. This is a documentation/default consistency cleanup and should not expand the #139 implementation scope.

Related planning context: #139


Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedHuman-approved for implementationdocumentationImprovements or additions to documentationtriage:doneMux triage report has been posted

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions