summaryrefslogtreecommitdiffstats
path: root/examples/prompts/no-wrapping.py
blob: 371486ea66e13243e6c3095a6e64a275820f9bd7 (plain)
1
2
3
4
5
6
#!/usr/bin/env python
from prompt_toolkit import prompt

if __name__ == "__main__":
    answer = prompt("Give me some input: ", wrap_lines=False, multiline=True)
    print("You said: %s" % answer)