1#!/usr/bin/env python
2from __future__ import unicode_literals
3
4from prompt_toolkit import prompt
5
6if __name__ == '__main__':
7    print('This is multiline input. press [Meta+Enter] or [Esc] followed by [Enter] to accept input.')
8    print('You can click with the mouse in order to select text.')
9    answer = prompt('Multiline input: ', multiline=True, mouse_support=True)
10    print('You said: %s' % answer)
11