Skip to content

Commit

Permalink
ok i am not a human please kill me
Browse files Browse the repository at this point in the history
  • Loading branch information
BlindAndInsane committed Jan 5, 2025
1 parent 79c098a commit 8ec2bbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/terminal/terminal_password_prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func PromptForPassword(promptMessage string, mask rune) (string, error) {
// Handle Ctrl+C (ASCII 3), terminate the program
if char == 3 { // Ctrl+C
fmt.Println()
fmt.Print("\033[2K\033[0G\r")
return "", fmt.Errorf("operation interrupted by user (Ctrl+C)")
}

Expand Down

0 comments on commit 8ec2bbb

Please sign in to comment.