summaryrefslogtreecommitdiffstats
path: root/examples/python-embed-with-custom-prompt.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 20:03:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 20:03:26 +0000
commit75c118cf7675e6f19cbb80bc16e92740676c7f4b (patch)
treeb7840cfab1291920b36df87833c253051d4b54f0 /examples/python-embed-with-custom-prompt.py
parentAdding upstream version 3.0.26. (diff)
downloadptpython-75c118cf7675e6f19cbb80bc16e92740676c7f4b.tar.xz
ptpython-75c118cf7675e6f19cbb80bc16e92740676c7f4b.zip
Adding upstream version 3.0.27.upstream/3.0.27
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/python-embed-with-custom-prompt.py')
-rwxr-xr-xexamples/python-embed-with-custom-prompt.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/python-embed-with-custom-prompt.py b/examples/python-embed-with-custom-prompt.py
index d54da1d..5e8c707 100755
--- a/examples/python-embed-with-custom-prompt.py
+++ b/examples/python-embed-with-custom-prompt.py
@@ -2,6 +2,7 @@
"""
Example of embedding a Python REPL, and setting a custom prompt.
"""
+
from prompt_toolkit.formatted_text import HTML, AnyFormattedText
from ptpython.prompt_style import PromptStyle