console-kit icon indicating copy to clipboard operation
console-kit copied to clipboard

Method to detect pressed key(s) and returning the keyCode(s)

Open pakLebah opened this issue 7 years ago • 1 comments

Please add a method to detect single or multiple pressed keys and returning the keyCode(s). This feature is required for accepting password input or screen navigation control (console games?). If you have ever used Pascal and utilized the famous CRT unit, you'll know the ReadKey() and KeyPressed() functions that provide such ability.

Thank you.

pakLebah avatar May 26 '18 03:05 pakLebah

I really like the idea of this feature, but it is not required for secure input. That is already supported by clearing the current line on every key press.

calebkleveter avatar May 28 '18 11:05 calebkleveter

At this time there is no plan to do this, as it heads in the direction of trying to make ConsoleKit a Swift version of ncurses - arguably a worthwhile thing, but not something we're planning right now (though I say nothing about the future!)

gwynne avatar Aug 19 '23 04:08 gwynne