Skip to content

Conversation

kanetronv2
Copy link
Contributor

Fixes #86

Resolves race condition where users could type before the prompt was displayed, causing input to be overwritten or appear over the prompt.

Changes:

  • Move term._initialized = true to run after term.prompt() display
  • Maintain performance optimizations with 100ms delay for background loading
  • Ensure proper sequence: terminal setup → prompt display → interactive → background loading

The terminal cursor is now consistently responsive without the race condition.

Generated with Claude Code

Fixes issue where users could type before prompt was displayed by:
- Moving `term._initialized = true` to run after `term.prompt()` display
- Maintaining performance optimizations with 100ms delay for background loading

This ensures proper sequence: terminal setup → prompt display → interactive → background loading

Co-authored-by: kanetronv2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the cursor loads too slowly
1 participant