summaryrefslogtreecommitdiffstats
path: root/examples/python-embed-with-custom-prompt.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-04 04:07:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-04 04:07:44 +0000
commit7693c11b424a25612782de924a1f7f07f649675f (patch)
tree4dabd5679f14e8113bfb5d080b91f8ff3cb85cfd /examples/python-embed-with-custom-prompt.py
parentReleasing progress-linux version 3.0.26-3~progress7.99u1. (diff)
downloadptpython-7693c11b424a25612782de924a1f7f07f649675f.tar.xz
ptpython-7693c11b424a25612782de924a1f7f07f649675f.zip
Merging upstream version 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