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.27.
Changelog
Sourced from prompt-toolkit's changelog.
Commits
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.7dd8435
Added create_app_session_from_tty.2c96fe2
Stop preferring a TTY output when creating the default output.402b6a3
Added PlainTextOutput: an output that doesn't write ANSI escape sequences to ...57b42c4
Added ansi-art-and-textarea.py example.a71de3c
Accept 'align' attribute in Label widget.64d870a
Added ptk-logo-ansi-art.py example.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)