diff --git a/CHANGELOG.md b/CHANGELOG.md index c0ff572198..3562b131d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fixed `Input` cursor color display in ANSI mode (`ansi_color=True`) https://github.com/Textualize/textual/issues/6234 - Fixed alt modifier on systems without extended Key Protocol https://github.com/Textualize/textual/pull/6267 - 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 - Fixed exception when setting `loading` attribute before mount https://github.com/Textualize/textual/pull/6268 diff --git a/src/textual/widgets/_input.py b/src/textual/widgets/_input.py index 08af812d40..e8470ddfbb 100644 --- a/src/textual/widgets/_input.py +++ b/src/textual/widgets/_input.py @@ -218,7 +218,8 @@ class Input(ScrollView): background: ansi_default; color: ansi_default; &>.input--cursor { - text-style: reverse; + background: ansi_white; + color: ansi_black; } &>.input--placeholder, &>.input--suggestion { text-style: dim; diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg index 8023e54db4..1f719d7771 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg @@ -41,7 +41,7 @@ .terminal-r7 { fill: #0a0f13 } .terminal-r8 { fill: #00ff00 } .terminal-r9 { fill: #000000 } -.terminal-r10 { fill: #8d8d8d } +.terminal-r10 { fill: #7b7e82 } .terminal-r11 { fill: #7e8486 } .terminal-r12 { fill: #e0e0e0;font-weight: bold } .terminal-r13 { fill: #9eafbd } @@ -131,7 +131,7 @@ - + RedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed