Contents
Is there a line wrapping issue in Bash?
Line wrapping issues in Bash are nothing new. Your PS1 should work as is but there is a bug in Bash 3.2.49. Consult the mailing list, there’s yet another bug regarding this which was confirmed to be fixed in 4.0. You can’t do much more than tagging unprintable characters with \\ [ and \\], the rest must be done by the prompting code.
Why does Bash think the prompt is longer than it is?
The reason for the behavior is because bash believes the prompt is longer then it actually is. As a simple example, if one use: The prompt is believed to be 8 characters and not 1. As such if terminal window is 20 columns, after typing 12 characters, it is believed to be 20 and wraps around.
Why is my RedHat terminal not wrapping properly?
For Redhat systems particularly, the issue is often caused by misconfiguring ~/.bashrc not to call /etc/bashrc. Normally, bash loads ~/.bashrc which is expected to call /etc/bashrc, which by default contains shopt -s checkwinsize. I once read somewhere (don’t know where anymore) that using \\001 and \\002 instead of \\ [ and \\] can solve this issue.
Why does my command wrap around two lines?
The command should render on two lines. Instead it will often wrap around and start writing over the top of my prompt, somewhat like this: If I decide to go back and change some argument there’s no telling where the cursor will show up, sometimes in the middle of the prompt, but usually on the line above where I’m typing.
Is there a bug in Bash 3.2.49?
Your PS1 should work as is but there is a bug in Bash 3.2.49. Consult the mailing list, there’s yet another bug regarding this which was confirmed to be fixed in 4.0. You can’t do much more than tagging unprintable characters with \\ [ and \\], the rest must be done by the prompting code. I am now using this PS1 with good effect:
How to quote color codes in Bash prompts?
As someone noted in that thread, the Bash FAQ at mywiki.wooledge.org discusses how to properly quote color codes in Bash prompts ( FAQ 53 ), and the proper invocation of terminal colors ( FAQ 37 ). It seems that you have correctly escaped and enclosed sequences.
Where is the line wrapping in Word 2013?
In word 2013, I have one document where at the end of the line of text the word is split-up. In all my other documents I still get the automatic wrapping which keeps whole words together.
Which is the Unicode character for no width optional break?
The character that Word calls “No-Width Optional Break” corresponds to the Unicode character 200C, “Zero Width Non-Joiner.” Both this character and U200B, “Zero Width Space,” are represented by a rectangle enclosing an open rectangle:
What are the characters that do not appear on the page?
By either name, they are characters that take up space or have a formatting function but do not appear on the printed page: spaces, tab characters, paragraph breaks, and the like. Even if you prefer to work most of the time without seeing them, you should know how to display them and what they mean.