diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 04:45:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 04:45:14 +0000 |
commit | 437643bd908d99924e3003db4d9d3718d9df5813 (patch) | |
tree | 9752c4e8ebd3ae23f7a586066a874bd4418feeaa /src/prompt_toolkit/output/vt100.py | |
parent | Adding debian version 3.0.43-2. (diff) | |
download | prompt-toolkit-437643bd908d99924e3003db4d9d3718d9df5813.tar.xz prompt-toolkit-437643bd908d99924e3003db4d9d3718d9df5813.zip |
Merging upstream version 3.0.46.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/prompt_toolkit/output/vt100.py')
-rw-r--r-- | src/prompt_toolkit/output/vt100.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/prompt_toolkit/output/vt100.py b/src/prompt_toolkit/output/vt100.py index 142deab..069636b 100644 --- a/src/prompt_toolkit/output/vt100.py +++ b/src/prompt_toolkit/output/vt100.py @@ -6,6 +6,7 @@ A lot of thanks, regarding outputting of colors, goes to the Pygments project: everything has been highly optimized.) http://pygments.org/ """ + from __future__ import annotations import io @@ -521,7 +522,7 @@ class Vt100_Output(Output): "eterm-color", ): # Not supported by the Linux console. self.write_raw( - "\x1b]2;%s\x07" % title.replace("\x1b", "").replace("\x07", "") + "\x1b]2;{}\x07".format(title.replace("\x1b", "").replace("\x07", "")) ) def clear_title(self) -> None: |