Skip to content

Commit 56d7314

Browse files
committed
Fix Input cursor visibility when in ANSI mode
1 parent 2707357 commit 56d7314

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
- Added `Content.blank` https://github.com/Textualize/textual/pull/6264
1313

14+
### Fixed
15+
16+
- Fixed `Input` cursor color display in ANSI mode (`ansi_color=True`) https://github.com/Textualize/textual/issues/6234
17+
1418
## [6.7.1] - 2025-12-1
1519

1620
### Fixed

src/textual/widgets/_input.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ class Input(ScrollView):
218218
background: ansi_default;
219219
color: ansi_default;
220220
&>.input--cursor {
221-
text-style: reverse;
221+
background: ansi_white;
222+
color: ansi_black;
222223
}
223224
&>.input--placeholder, &>.input--suggestion {
224225
text-style: dim;

tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)