blob: 566ffd5ed516ca4d7119fd04585268e4c0d663d4 (
plain)
1
2
3
4
5
6
7
|
#!/usr/bin/env python
from prompt_toolkit import prompt
if __name__ == "__main__":
print("You have Vi keybindings here. Press [Esc] to go to navigation mode.")
answer = prompt("Give me some input: ", multiline=False, vi_mode=True)
print("You said: %s" % answer)
|