Stop characters from being wrapped to the beginning of the line #16724
Answered
by
DHowett
Casper-Guo
asked this question in
Q&A
-
My terminal wraps a line that exceeds the character limit to the beginning of the same line and obfuscate the prompt: What are the settings needed to prevent this and wrap to the next line (or expand per line character limit) instead? |
Beta Was this translation helpful? Give feedback.
Answered by
DHowett
Feb 16, 2024
Replies: 1 comment 4 replies
-
This looks like an issue with your shell. Can you share your custom |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!
Alright, so, one of the important things in a bash prompt is to enclose the non-printable escape sequences in
\[
and\]
. That way, bash doesn't consider them when it measures how long the prompt is.Try this out! It may help, or it may (depending on how well I remember bash...) break terribly.
Here's …