fix: restore cursor position on exit for multi-line prompts #10
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
codetease/mep!10
Loading…
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change introduces a cleanup() override in several prompt classes (Form, Curl, Text, Snippet, Phone, Calculator, File) to ensure the cursor is restored to the bottom of the rendered output when the prompt exits (via confirmation or Ctrl+C). This prevents visual artifacts and overwriting of subsequent terminal output.
Affected prompts: