Weird symbols in prompt when color_prompt enabled in ~/.bashrc with byobu

Bug #1912619 reported by Ihor Romanyshyn
8
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;0cusername@servername:~$ 1;0c`. I tried to disable the next lines in ~/.bashrc file:

```
if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
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?

Revision history for this message
Ihor Romanyshyn (iromanyshyn) wrote :
affects: launchpad → byobu (Ubuntu)
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Byobu has a special PS1 that is appended in ~/.bashrc
It will include ~/.byobu/prompt which (by default) points to /usr/share/byobu/profiles/bashrc

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.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Changed in byobu (Ubuntu):
status: New → Incomplete
Revision history for this message
Ihor Romanyshyn (iromanyshyn) wrote :

Sorry, guys. It looks like a bug in the M$ ssh application. I can reproduce it only on Windows OS.

Changed in byobu (Ubuntu):
status: Incomplete → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.