https://bugzilla.novell.com/show_bug.cgi?id=439959 Summary: wrong display of cursor position in bash if hints for screen are embedded in PS1 Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: delgado@dfn-cert.de QAContact: qa@suse.de Found By: Customer The screen manual recommends to put the sequence <ESC>k<ESC>\ into the prompt so that it can recognise which application was started on the shell prompt. In bash this translates to export PS1='\u@\h:\w\$ \[\ek\e\\\]' This largely works, but the cursor will be shown in a wrong position, if a) there are two words or more on the input line b) the cursor is before the space in front of the last word c) ctrl-l is pressed in which case the cursor will be displayed to the far right of the input and editing the input gives wrong visual feedback. '^' being the cursor: : user@box:~$ foo bar^ : Ctrl-A : user@box:~$ ^foo bar : Ctrl-L : user@box:~$ foo bar ^ If the special characters are removed from the prompt, i.e. the prompt is reset to PS1='\u@\h:\w\$ ', the behaviour disappears. Another workaround is to press ctrl-e then ctrl-l to get a correct representation of the input. I think it should be easy to reproduce in every openSUSE 10.3 Installation. I can't check 11.0 or newer at the moment. I can't reproduce this on debian with a more recent bash either. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.