Skip to content

Commit 6ac867a

Browse files
Release 3.0.27
1 parent 96ec6fb commit 6ac867a

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

CHANGELOG

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
CHANGELOG
22
=========
33

4+
3.0.27: 2022-02-07
5+
------------------
6+
7+
New features:
8+
- Support for cursor shapes. The cursor shape for prompts/applications can now
9+
be configured, either as a fixed cursor shape, or in case of Vi input mode,
10+
according to the current input mode.
11+
- Handle "cursor forward" command in ANSI formatted text. This makes it
12+
possible to render many kinds of generated ANSI art.
13+
- Accept `align` attribute in `Label` widget.
14+
- Added `PlainTextOutput`: an output implementation that doesn't render any
15+
ANSI escape sequences. This will be used by default when redirecting stdout
16+
to a file.
17+
- Added `create_app_session_from_tty`: a context manager that enforces
18+
input/output to go to the current TTY, even if stdin/stdout are attached to
19+
pipes.
20+
- Added `to_plain_text` utility for converting formatted text into plain text.
21+
22+
Fixes:
23+
- Don't automatically use `sys.stderr` for output when `sys.stdout` is not a
24+
TTY, but `sys.stderr` is. The previous behavior was confusing, especially
25+
when rendering formatted text to the output, and we expect it to follow
26+
redirection.
27+
428
3.0.26: 2022-01-27
529
------------------
630

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
# built documents.
5252
#
5353
# The short X.Y version.
54-
version = "3.0.26"
54+
version = "3.0.27"
5555
# The full version, including alpha/beta/rc tags.
56-
release = "3.0.26"
56+
release = "3.0.27"
5757

5858
# The language for content autogenerated by Sphinx. Refer to documentation
5959
# for a list of supported languages.

prompt_toolkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from .shortcuts import PromptSession, print_formatted_text, prompt
1919

2020
# Don't forget to update in `docs/conf.py`!
21-
__version__ = "3.0.26"
21+
__version__ = "3.0.27"
2222

2323
# Version tuple.
2424
VERSION = tuple(__version__.split("."))

0 commit comments

Comments
 (0)