Skip to content

Is there any way to bind keys? #2310

Answered by davidism
suddenlyToday asked this question in Q&A
Discussion options

You must be logged in to vote

No, Click is a CLI, it executes a command and exits, there's nothing long running that would listen for keys. Maybe you're looking for a terminal UI framework, something like https://github.com/Textualize/textual or https://github.com/prompt-toolkit/python-prompt-toolkit

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@suddenlyToday
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by suddenlyToday
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants