Skip to content

Conversation

@oooLowNeoNooo
Copy link
Contributor

Problem

The PromptConfirm method was calling p.Prompt() directly, which bypasses the terminal mode management and unsupported terminal handling logic present in PromptInput. This could cause inconsistent behavior in unsupported terminals and improper terminal mode switching.

Solution

Changed PromptConfirm to use PromptInput() instead, ensuring it benefits from the same terminal mode management and fallback handling as other prompt methods.

@rjl493456442 rjl493456442 changed the title fix: use PromptInput in PromptConfirm method console/prompt: use PromptInput in PromptConfirm method Dec 22, 2025
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.

2 participants