BigEd / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

Color prompt is shown twice. First without colorls then with. #688

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Change prompt on your profile to add colors. For example, here is my PS1 
variable in .bashrc : 
PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
2. Connect to the server with connectbot through ssh

What is the expected output? What do you see instead?
Prompt should be shown once. It's shown twice, first without color, second with 
(see attached file).

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
v1.8.1-dirty 2014.10.23 (from f-droid)

What type of system are you trying to connect to?
Centos 7

If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?
uuu@xxx:~$ echo $TERM
screen
uuu@xxx:~uuu@xxx:~$ uname -a
Linux xxx 3.10.0-123.13.2.el7.x86_64 #1 SMP Thu Dec 18 14:09:13 UTC 2014 x86_64 
x86_64 x86_64 GNU/Linux
uuu@xxx:~uuu@xxx:~$
uuu@xxx:~uuu@xxx:~$

Please provide any additional information below.
The prompt go back to "normal" after some actions (The only one I can reproduce 
is screen rotation)

Original issue reported on code.google.com by themi...@gmail.com on 5 Jan 2015 at 3:15

Attachments:

GoogleCodeExporter commented 9 years ago
In fact, it's not a matter of colors, there is a "wrong" prompt and the PS1 I 
configured in .bashrc (see attachment).

Original comment by themi...@gmail.com on 13 Jan 2015 at 1:52

Attachments: