[stick@richnet.net: Re: ANSI Color Escapes in $PS1.. heh.]

1998-12-08 Thread Marcus Brinkmann
Forwarded on request. This sure has charm ;) Marcus - Forwarded message from [EMAIL PROTECTED] - Delivered-To: [EMAIL PROTECTED] Subject: Re: ANSI Color Escapes in $PS1.. heh. To: [EMAIL PROTECTED] (Marcus Brinkmann) Date: Tue, 8 Dec 1998 00:36:51 -0500 (EST) From: [EMAIL PROTECTED

Re: ANSI Color Escapes in $PS1.. heh.

1998-12-03 Thread Marcus Brinkmann
On Wed, Dec 02, 1998 at 12:41:06PM -0600, Ryan King wrote: > Just how stupid an idea did I have when I did this: > > $PS1="[\e[31m\h\e[m:\e[34m\u\e[m:\e[31m\w\$\e[m]" > > in my /etc/profile? > > It looks really nifty until I try to do commands that wrap around, in which > case the first line ret

Re: ANSI Color Escapes in $PS1.. heh.

1998-12-03 Thread stick
Ryan King said > I don't quite get it... I tried replacing my \e's with ^['s and surrounding > all escapes with /[/] pairs, and it wouldn't work at all (just the > "source" were displayed.. IE the same as typing `echo $PS1`) > I'm sorry. I wasn't as clear as I should have been. the two-char ^[ w

Re: ANSI Color Escapes in $PS1.. heh.

1998-12-02 Thread Daniel Martin
[EMAIL PROTECTED] writes: > How would one check to make sure the terminal is capable of ANSI escape > sequences? > > -brad I'd do this by not coding in the escape sequences directly, but by using tput: export PS1="\[`tput setaf [EMAIL PROTECTED] sgr0`\]:\[`tput setaf 4`\]\w\[`tput sgr0`\]\$ "

Re: ANSI Color Escapes in $PS1.. heh.

1998-12-02 Thread Ole J. Tetlie
*-"Ryan King" <[EMAIL PROTECTED]> | | Just how stupid an idea did I have when I did this: | | $PS1="[\e[31m\h\e[m:\e[34m\u\e[m:\e[31m\w\$\e[m]" | | in my /etc/profile? Chuck explained what was going on. Your prompt could be: PS1="[\[\e[31m\]\h\[\e[m\]:\[\e[34m\]\u\[\e[m\]:\[\e[31m\]\w\[\$\e[m\]

Re: ANSI Color Escapes in $PS1.. heh.

1998-12-02 Thread maximill
How would one check to make sure the terminal is capable of ANSI escape sequences? -brad On Wed, 2 Dec 1998 [EMAIL PROTECTED] wrote: > Ryan King said > > Just how stupid an idea did I have when I did this: > > > > $PS1="[\e[31m\h\e[m:\e[34m\u\e[m:\e[31m\w\$\e[m]" > > > > in my /etc/profile? >

Re: ANSI Color Escapes in $PS1.. heh.

1998-12-02 Thread stick
Ryan King said > Just how stupid an idea did I have when I did this: > > $PS1="[\e[31m\h\e[m:\e[34m\u\e[m:\e[31m\w\$\e[m]" > > in my /etc/profile? > Not stupid at all!! > It looks really nifty until I try to do commands that wrap around, in which > case the first line returns, but keeps going o

Re: ANSI Color Escapes in $PS1.. heh.

1998-12-02 Thread Mitch Blevins
Ryan King wrote: > Just how stupid an idea did I have when I did this: > > $PS1="[\e[31m\h\e[m:\e[34m\u\e[m:\e[31m\w\$\e[m]" > > in my /etc/profile? > > It looks really nifty until I try to do commands that wrap around, in which > case the first line returns, but keeps going on the current spot.

ANSI Color Escapes in $PS1.. heh.

1998-12-02 Thread Ryan King
Just how stupid an idea did I have when I did this: $PS1="[\e[31m\h\e[m:\e[34m\u\e[m:\e[31m\w\$\e[m]" in my /etc/profile? It looks really nifty until I try to do commands that wrap around, in which case the first line returns, but keeps going on the current spot. The real disaster, however, occ