Skip to content

EnterAltScreen doesn't create true alternate screen in Terminal.app - adds blank spaces instead #1455

@jesusvico

Description

@jesusvico

Describe the bug
When using tea.EnterAltScreen in Terminal.app on macOS, the alternate screen is not working correctly. Instead of creating a true alternate screen buffer (like other TUI applications do), BubbleTea appears to simulate it by adding blank spaces at the top of the terminal, pushing existing content up. The user can still scroll up to see the previous terminal content.

Setup

  • OS: macOS
  • Shell: zsh
  • Terminal Emulator: Terminal.app (default macOS terminal)

To Reproduce
Execute in the bubbletea repo, examples/fullscreen/main.go

Expected behavior

  • Previous terminal content should be completely removed (not scrollable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions