You are not logged in.

#1 2010-12-16 20:11:15

barcher
Member
Registered: 2010-12-16
Posts: 2

Prompt command misdisplay, 2 letters constantly displayed b4 command

I run Arch Linux in VirtualBox.

I use bash history. On first click a _long_ command is displayed. On next clicks, the first 2 characters of the _long_ command are constantly displayed on the screen followed by the next command in turn. If I press "enter" the new command is normally executed without considering the first 2 characters. They disappear by "enter" or "clear" and come back again after the execution of another _long_ command.
e.g.

# > pwd
...
# > time
...
# > date
...
# > date (time, pwd) (are displayed by pressing the upwards arrow)
# > less /.../.../.../file (first long command)
...
# > ledate (letime, lepwd) (are displayed by the upwards arrow)
...

Any idea what I have done wrong?

Thanks

PS: bash.bashrc.local

#
# This file is in the public domain.
# It's created by ...

echo
echo -e "\e[35;40;1m##############################################################################"
echo -e "\e[35;40;1m#@@@                                                                      @@@#"
echo -e "\e[35;40;1m#@@                             \e[36;40;1mArch GNU/Linux!\e[35;40;1m                            @@#"
echo -e "\e[35;40;1m#@                                                                          @#"
echo -e "\e[35;40;1m#@@                  \e[32;40;1mIt puts the fun back into computing.\e[35;40;1m                  @@#"
echo -e "\e[35;40;1m#@@@                                                                      @@@#"
echo -e "\e[35;40;1m##############################################################################"

# Check for an interactive session
[ -z "$PS1" ] && return

PS1='\n\[\e[30;40;1m\]\016l\017-[\[\e[36;40m\]\s\[\e[30;40;1m\]]-[\[\e[37;40m\]\u@\H\[\e[30;40;1m\]]-[\[\e[32;40m\]\l\[\e[30;40;1m\](\[\e[31;40m\]\j\[\e[30;40;1m\])]-[\[\e[33;40m\]\@ \d\[\e[30;40;1m\]]-(CmdNo.\[\e[31;40m\]\!\[\e[30;40;1m\])-(HistNo.\[\e[31;40m\]\#\[\e[30;40;1m\])\n\[\e[30;40;1m\]\016t\017-[\[\e[34;40;1m\]$(pwd)\[\e[30;40;1m\]]-(\[\e[34;40m\]$(ls-t | wc -l) files,$(ls-l | grep -m 1 total | sed {s/total//})b\[\e[30;40;1m\])\n\016m\017-> \[\e[35;40m\]\$\[\e[37;40m\] > '
PS2='\[\e[31;40m\]more!\[\e[37;40m\] > '
PS3='\[\e[31;40m\]Select\[\e[37;40m\]> '
PS4='\[\e[31;40m\]debug\[\e[37;40m\] > '

Offline

Board footer

Powered by FluxBB