Skip to content

v2: Missing WindowSizeMsg on windows systems #1595

@robin-samuel

Description

@robin-samuel

Describe the bug
WindowSizeMsg doesnt get send anymore in v2.0.0 on window resizes. Only on tea.RequestWindowSize. Only on Windows. Mac and Linux seem fine.

Setup

  • Windows 11
  • Windows Powershell, Windows Powershell 7, CMD
  • Windows Consolehost, Windows Terminal

To Reproduce

  1. Run go run .\examples\window-size\main.go
  2. Resize the terminal window
  3. Nothing happens

Source Code
Not needed bubbletea has an example

Expected behavior
It should show window size msgs on resize but nothing appears.

Screenshots
This was the behavior in v2.0.0 RC 2 (as it should be)

20260225-1041-53.3003599.mp4

This is the current behavior in v2.0.0 (broken)

20260225-1037-44.5143366.mp4

Additional context
I found that the commit b3661ce introduced tty as default input seems like this doesnt work for windows. Using tea.WithInput(os.Stdin) as option fixes this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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