Certain PS1 escape sequences causes wscons to not display text properly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Certain PS1 escape sequences causes wscons to not display text properly

Jonathan Liu
I have encountered a problem on OpenBSD using wscons and bash.

The problem is caused by the following either typed interactively at the
prompt or sourced:
export PS1='\[\e]0;\w\a\w\]\$ '

The prompt still works, but all the text displayed is invisible. The screen
scrolls with the invisible text as well and you can type 'exit' or 'logout'
to get back to the login prompt. This only appears to occur when physically
logging into the computer and does not seem to occur with serial (using
/etc/boot.conf) or ssh connections.

Reply | Threaded
Open this post in threaded view
|

Re: Certain PS1 escape sequences causes wscons to not display text properly

Miod Vallat
> I have encountered a problem on OpenBSD using wscons and bash.
>
> The problem is caused by the following either typed interactively at the
> prompt or sourced:
> export PS1='\[\e]0;\w\a\w\]\$ '
>
> The prompt still works, but all the text displayed is invisible. The screen
> scrolls with the invisible text as well and you can type 'exit' or 'logout'
> to get back to the login prompt. This only appears to occur when physically
> logging into the computer and does not seem to occur with serial (using
> /etc/boot.conf) or ssh connections.

Which OpenBSD version are you using (especially, is this 4.0-RELEASE or
-CURRENT)?

Miod