zsh-users
 help / color / mirror / code / Atom feed
* Re: Colored prompt problem
  2002-11-24 18:49 Colored prompt problem Leon Mergen
@ 2002-11-24 18:36 ` DervishD
  0 siblings, 0 replies; 2+ messages in thread
From: DervishD @ 2002-11-24 18:36 UTC (permalink / raw)
  To: Leon Mergen; +Cc: zsh-users

    Hi Leon :)

> PROMPT=$(echo
> '%B%{\033[33m%}%n@\033[31m%}%m\033[39m%}:\033[32m%}[%~]\033[00m%}\033[34m%}[%h]\033[00m%}
> %# %b% ' )

    It lacks lots of '%{'. This is the reason it wraps badly. I
haven't the time to test where the lacking '%{' must go. I've put all
them at the beginning and it doesn't wrap bad.

    For every '%}' must be an opening '%{', and you must see the
rules (see the manual) for places in the PROMPT where you can and
cannot change the cursor position.

    Good luck ;))

    Raúl



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Colored prompt problem
@ 2002-11-24 18:49 Leon Mergen
  2002-11-24 18:36 ` DervishD
  0 siblings, 1 reply; 2+ messages in thread
From: Leon Mergen @ 2002-11-24 18:49 UTC (permalink / raw)
  To: zsh-users

Hello,

This is my first time posting to this mailing list, so if I do something
wrong, please excuse me :)
Anyway, I have recently (yesterday to be exact) install zsh... and I love
it! After reading through some how-to's and faq's, I've come up with the
following PROMPT in my ~/.zshrc file :
PROMPT=$(echo
'%B%{\033[33m%}%n@\033[31m%}%m\033[39m%}:\033[32m%}[%~]\033[00m%}\033[34m%}[%h]\033[00m%}
%# %b% ' )
This one looks pretty cool I think (yellow user @ red hostname : [green
dir] [blue count]) ... however, it has a disadvantage: when I enter long
commands (such as "irssi --connect=irc.snt.utwente.nl") , at the point it
should wrap to the next line (well, actually, a lot earlier, it tries to
go to the next line after the "irc.snt" point) , instead of going to the
next line, it completely clears out the line I'm currently at and starts
at the beginning...
I hope I kind of make sense, I personally think I need to "catch" some
escape character or something... Hope someone can help me :)
-- 
Grtz,

Leon Mergen





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-24 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-24 18:49 Colored prompt problem Leon Mergen
2002-11-24 18:36 ` DervishD

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).