deljero2 / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

The command line again after X characters. #282

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you hit thirty characters in the command line, the cursor back to beginning 
of line.

Original issue reported on code.google.com by mathias....@gmail.com on 22 May 2011 at 3:28

GoogleCodeExporter commented 9 years ago
I can't reproduce this. Could you please give us more informations?

Original comment by dave.sto...@gmail.com on 22 May 2011 at 8:17

GoogleCodeExporter commented 9 years ago
Here are some screenshots.

Sorry for my bad English, but I'm French.

Original comment by mathias....@gmail.com on 24 May 2011 at 8:07

Attachments:

GoogleCodeExporter commented 9 years ago
This is my "/etc/profile"

# /////// SETTING COLORS
BROWN='\e[0;33m'
RED='\e[1;31m'
YELLOW='\e[1;33m'
PINK='\e[1;35m'
CYAN='\e[1;36m'
NC='\e[0m'

if [[ "${DISPLAY%%:0*}" != "" ]]; then  
    HILIT=${BROWN}   # remote machine: prompt will be partly red
else
    HILIT=${PINK}  # local machine: prompt will be partly cyan
fi
# \\\\\\\

export 
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:
/usr/games'

# /////// SETTING PROMPT
BAR="${CYAN}|${NC}"
LINEONE="${BROWN}$?${NC}@${HILIT}\h${NC}:[${YELLOW}\w${NC}]"
LINETWO="${RED}\u${NC}\$"
export PS1="${BAR}${LINEONE}\n${BAR}${LINETWO} "
# \\\\\\\

umask 022

for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
        . $i
    fi
done

Original comment by mathias....@gmail.com on 24 May 2011 at 8:11

GoogleCodeExporter commented 9 years ago
Alright, this seems to be a real bug (thank you for reporting)
Could you please ssh into your device via WinSCP or OpenSSH to ensure it's 
MobileTerminal-related and not resulting in a malformed profile?

Original comment by dave.sto...@gmail.com on 24 May 2011 at 8:37

GoogleCodeExporter commented 9 years ago
I have isolated the bug and it seems to come from the colors of the prompt, and 
especially of their position...

Original comment by mathias....@gmail.com on 25 May 2011 at 11:57

GoogleCodeExporter commented 9 years ago
Thanks. I'm indeed an experienced BASH user, but I've never had the time to 
work with color-codes, so I can't help much.

Original comment by dave.sto...@gmail.com on 25 May 2011 at 12:00

GoogleCodeExporter commented 9 years ago
This may or may not be related to that other bug about properly supporting 
TERM=xterm-color.

Thanks for the detailed report.

Original comment by allen.po...@gmail.com on 9 Jul 2011 at 4:39