blob: 2794381d2cc81f2e17c1f8f1a980491c7c5f7710 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/usr/bin/env python
from __future__ import unicode_literals
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)
|