"CR" in PS1, doesn't reset "col" to 0

2007-01-24 Thread Linda Walsh
I recently changed my PS1 prompt to set the title and icon text in the tty frame window to "[EMAIL PROTECTED]"; I wanted to put it in my PS1 as it catches "everything" -- from sudo/su to root (changes to [EMAIL PROTECTED]), to when I type "control-d" to exit a su script or log off a remote syst

Re: "CR" in PS1, doesn't reset "col" to 0

2007-01-24 Thread Mike Stroyan
On 1/24/07, Linda Walsh <[EMAIL PROTECTED]> wrote: I recently changed my PS1 prompt to set the title and icon text in the tty frame window to "[EMAIL PROTECTED]"; ... Of course it doesn't know how "non-printing" (or text that doesn't generate a physical position as in the set-icon+title functio

Re: "CR" in PS1, doesn't reset "col" to 0

2007-01-24 Thread Linda Walsh
Perfect! Wasn't familiar with that escape! Thanks. -l Mike Stroyan wrote: Bash can know about non-printing characters. Check the "PROMPTING" section in "man bash"- \[ begin a sequence of non-printing characters, which could be used to embed a terminal control sequence into t