Weird symbols in prompt when color_prompt enabled in ~/.bashrc with byobu
Bug #1912619 reported by
Ihor Romanyshyn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu (Ubuntu) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Hi guys!
I got the same problem on my multiple Ubuntu Server 20.04 machines. I'm using byobu on my machines. When I log in with ssh on the machine it gives me the prompt looking like `^[[?1;
```
if [ "$color_prompt" = yes ]; then
PS1=
else
PS1=
fi
unset color_prompt force_color_prompt
```
I'm using Windows Terminal.
And the problem didn't appear then.
But how to fix that problem?
To post a comment you must log in.
Byobu has a special PS1 that is appended in ~/.bashrc byobu/profiles/ bashrc
It will include ~/.byobu/prompt which (by default) points to /usr/share/
You can either edit those or run "byobu- disable- prompt" which should drop the include from your ~/.bashrc
That should make it "non special"
But I'm by no means a byobu expert, so if that doesn't help let me know.