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

Re: bash prompt



Lovely. Thanks.

T.

W. Paul Mills wrote:



From man bash:

             \[     begin a sequence of non-printing characters,
                    which could be used to embed a terminal con­
                    trol sequence into the prompt
             \]     end a sequence of non-printing characters


So, try this:
             \[\e]0;\h\007\]\u@\h:\w\$




Timothy.Keitt@StonyBrook.Edu (Timothy H. Keitt) writes:

Quick question: the following bash prompt puts the current machine name in the xterm (gnome-terminal) title bar, but also causes long lines to wrap incorrectly. Instead of moving down a line, the wrap over-writes the existing line of text. Anyone have a solution? Here's the prompt string:

	\e]0;\h\007\u@\h:\w\$

T.

--
Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626
http://life.bio.sunysb.edu/ee/keitt/


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



--
Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626
http://life.bio.sunysb.edu/ee/keitt/





Reply to: