Skip to content

Commit e40c466

Browse files
authored
Merge pull request #6265 from SYK17/main
Fix Input cursor visibility when in ANSI mode
2 parents fb88c07 + 62f5e08 commit e40c466

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313

1414
### Fixed
1515

16+
- Fixed `Input` cursor color display in ANSI mode (`ansi_color=True`) https://github.com/Textualize/textual/issues/6234
1617
- Fixed alt modifier on systems without extended Key Protocol https://github.com/Textualize/textual/pull/6267
1718
- Fixed an issue where alpha keys with modifiers weren't lower cased. If you have bound to something like `ctrl+A`, then change to `ctrl+shift+a` https://github.com/Textualize/textual/pull/6267
1819
- Fixed exception when setting `loading` attribute before mount https://github.com/Textualize/textual/pull/6268

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)