fix: restore cursor position on exit for multi-line prompts #10

Merged
irammini merged 2 commits from dev into main 2026-02-03 23:01:04 +00:00
irammini commented 2026-02-03 22:59:07 +00:00 (Migrated from github.com)

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:

  • FormPrompt
  • CurlPrompt
  • TextPrompt
  • SnippetPrompt
  • PhonePrompt
  • CalculatorPrompt
  • FilePrompt
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: - FormPrompt - CurlPrompt - TextPrompt - SnippetPrompt - PhonePrompt - CalculatorPrompt - FilePrompt
Sign in to join this conversation.
No description provided.