blob: c795b40b958a54ac93462ff501cb86107afc2bfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env python
from __future__ import unicode_literals
from prompt_toolkit import prompt
from prompt_toolkit.shortcuts import set_title
if __name__ == '__main__':
set_title('This is the terminal title')
answer = prompt('Give me some input: ')
set_title('')
print('You said: %s' % answer)
|