TopCli / prompts

Node.js user prompt library for command-line interfaces.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent forbidden input with select prompt

PierreDemailly opened this issue · comments

prompt-cursor

When using select, we should reset cursor or mute input for forbidden keys.

As the GIF describe, we can break both the prompt functions and the terminal on process exit.

Also, on process exit we should make sure the cursor is cleaned up (reset + not muted)