charmbracelet / charmbracelet/bubbletea

Windows Console closed abnormally

Open
#814 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Pressing ctrl+c to exit is normal, but clicking the close button to exit will first block for 2 seconds before closing.
I have used https://github.com/cqroot/prompt and https://github.com/erikgeiser/promptkit. They have same problem.

**To Reproduce**
Open the program using the windows console.
Click close button.

**Screenshots**
https://pb.nopdan.com/7xZZ
![](https://pb.nopdan.com/7xZZ)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior in a Windows console, comparing Ctrl+C with clicking the close button and measuring the reported two-second delay. Trace the console-exit handling from the program entry point; done means closing the console exits without the abnormal delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.