summaryrefslogtreecommitdiffstats
path: root/examples/prompts/no-wrapping.py
blob: 170e7d53c813f7a006f0de75545152f60c5f0db1 (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(f"You said: {answer}")