Support format specifiers for HTML and ANSI formatted text.
Accept defaults for checkbox and radio list, and their corresponding dialogs.
Fixes:
Fix resetting of cursor shape after the application terminates.
3.0.27: 2022-02-07
New features:
Support for cursor shapes. The cursor shape for prompts/applications can now
be configured, either as a fixed cursor shape, or in case of Vi input mode,
according to the current input mode.
Handle "cursor forward" command in ANSI formatted text. This makes it
possible to render many kinds of generated ANSI art.
Accept align attribute in Label widget.
Added PlainTextOutput: an output implementation that doesn't render any
ANSI escape sequences. This will be used by default when redirecting stdout
to a file.
Added create_app_session_from_tty: a context manager that enforces
input/output to go to the current TTY, even if stdin/stdout are attached to
pipes.
Added to_plain_text utility for converting formatted text into plain text.
Fixes:
Don't automatically use sys.stderr for output when sys.stdout is not a
TTY, but sys.stderr is. The previous behavior was confusing, especially
when rendering formatted text to the output, and we expect it to follow
redirection.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps prompt-toolkit from 3.0.26 to 3.0.28.
Changelog
Sourced from prompt-toolkit's changelog.
Commits
f3088dc
Release 3.0.28a3b450c
Add option for passing default values to checkbox/radiolist dialogs.380644a
Upgrade to 3.6 syntax using pyupgrade.0980bc3
merge html formatting updates into ansi (#1568)e78e652
HTML.format specifiers (#1566)700ae9e
Fix: reset cursorshape correctly when application terminates.6ac867a
Release 3.0.2796ec6fb
Removed unused imports.b4d728e
Added support for cursor shapes.4a66820
Added to_plain_text utility. A function to turn formatted text into a string.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)