Skip to content

Fixed exit with KeyboardInterrupt messes up terminal - #180

Open
zxcv1884 wants to merge 1 commit into
CITGuru:masterfrom
zxcv1884:fix-keyboard-interrupt
Open

Fixed exit with KeyboardInterrupt messes up terminal#180
zxcv1884 wants to merge 1 commit into
CITGuru:masterfrom
zxcv1884:fix-keyboard-interrupt

Conversation

@zxcv1884

Copy link
Copy Markdown

See issue detail:
#120

someone-cloud added a commit to someone-cloud/PyInquirer that referenced this pull request Jul 22, 2026
List prompt (CITGuru#54, CITGuru#78, CITGuru#87, CITGuru#107, CITGuru#138, CITGuru#166, CITGuru#183, CITGuru#189):
  - Implement pageSize parameter for long lists
  - Fix disabled first choice being selectable
  - Add vim-style j/k navigation keys
  - Add mouse_support toggle option
  - Allow multiline messages via dynamic window height
  - Fix separator style not rendering in list types

Checkbox prompt (CITGuru#46, CITGuru#107, CITGuru#138, CITGuru#161, CITGuru#197):
  - Fix validator not being called on submit (was a no-op)
  - Add vim-style j/k navigation keys
  - Add mouse_support toggle
  - Add Ctrl+A for select all (in addition to 'a' toggle)

Input prompt (CITGuru#96, CITGuru#151, CITGuru#155, CITGuru#185):
  - Allow message as callable function (answers dict)
  - Convert numeric defaults to string automatically
  - Fix style propagation in prompt_toolkit

Confirm prompt (CITGuru#48):
  - Add require_enter option for explicit confirmation

General (CITGuru#180):
  - Reset terminal state on KeyboardInterrupt to prevent garbled output
@someone-cloud

Copy link
Copy Markdown

Fixed in the revived fork.

Fixed - KeyboardInterrupt no longer leaves the terminal in a garbled state. Terminal is properly reset on interrupt. Fixed in v1.0.6.

You can install the fixed version: pip install pyinquirer-revived

Repo: https://github.com/someone-cloud/PyInquirer

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