nushell
nushell copied to clipboard
CLI Text Cursor disappears when PROMPT_INDICATOR is set to empty string
Describe the bug
Blinking cursor disappears.
How to reproduce
- Edit
env.nu
. - Change
PROMPT_INDICATOR
from{ "〉" }
to{ "" }
. - Append
\n\n
to the string increate_left_prompt
. - Save file & source
env.nu
. - Notice how there is no blinking cursor on the CLI prompt, anymore.
- It only appears after adding characters in any way.
Expected behavior
Blinking cursor should continue to appear.
Screenshots
No response
Configuration
key | value |
---|---|
version | 0.70.0 |
branch | |
commit_hash | 9ef65dcd692b502d7476b1787247fae8638c2f0c |
build_os | linux-x86_64 |
build_target | x86_64-unknown-linux-gnu |
rust_version | rustc 1.64.0 (a55dd71d5 2022-09-19) |
rust_channel | stable-x86_64-unknown-linux-gnu |
cargo_version | cargo 1.64.0 (387270bc7 2022-09-16) |
pkg_version | 0.70.0 |
build_time | 2022-10-18 18:52:28 +00:00 |
build_rust_channel | release |
features | database, dataframe, default, trash, which, zip |
installed_plugins |
Additional context
Platform Debian GNU/Linux 11 (bullseye) in WSL2 on Windows 10
Terminal software Windows Terminal
Apparently setting PROMPT_INDICATOR
to { "\n\n" }
, instead of the string in create_left_prompt
, works around this issue.
Although, this workaround creates a different issue. Doing it like this will duplicate the prompt line, when returning an empty string or just pressing arrow up.