Can pythons input be terminated with another signal?
I am writing an interactive CLI and just thought about giving the user a different way of confirming an input.
So, usually I would use python’s input()
.
With that a user would submit input by pressing Enter
.
Would it be possible to let a user submit input by pressing e.g. Tab
or Ctrl+D
?