magmax/python-inquirer

Is there a way to specify a key per item ?

stuaxo opened this issue · 2 comments

stuaxo commented

I'm using inquirer to display a menu, that I'll use when debugging a black-screen issue on my computer, can I give each item in the list a hotkey ?

(Basically - when it's working I want to see the menu, but for the other time, it's a quick way to reboot and log a particular message depending on which key I press)

no, but you can create this on your own using the readchar libary which inquirer is based on

stuaxo commented

Thanks for getting back to me promptly, this is only a for a throwaway thing I'm overengineering so I'll hop onto another library.