[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Mike Stroyan
Subject: Re: "CR" in PS1, doesn't reset "col" to 0
Date: Wed, 24 Jan 2007 13:53:13 -0700

On 1/24/07, Linda Walsh <address@hidden> wrote:
I recently changed my PS1 prompt to set the title and icon text in the
tty frame window to "address@hidden";
Of course it doesn't know how "non-printing" (or text that doesn't
generate a physical position as in the set-icon+title function).  So I
thought that it should be able to understand that a "CR" would
return/reset the column to zero.  That way it could correctly compute
what column it was in.

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 the
             \]     end a sequence of non-printing characters

Mike Stroyan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]