Carriage return does not work in run-shell-command #11690
Unanswered
KevinGimbel
asked this question in
General
Replies: 1 comment 1 reply
-
Helix doesn't have a "shell" that would "interpret" the returns(or anything else), its just displaying the returned output as a string; the raw output is captured and returned after the end of shell execution. Something basic could probably be done for this specific case, where if |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When running a shell command with
run-shell-command
which uses carriage return (\r
) the lines are printed in one line.Reproduction Steps
Recording https://asciinema.org/a/Nl9KT1Wk5RH90UGBPIZjGob5H
I tried this:
hx
:run-shell-command
+ my script which prints in a loop with\r
I expected this to happen:
\r
) should return the cursor to the beginning of the line and replace the lineInstead, this happened:
The same happens with a small bash script
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
wezterm 20240203-110809,5046fc22
Installation Method
brew
Helix Version
helix 24.7 (079f544)
Beta Was this translation helpful? Give feedback.
All reactions