Zsh prompt in ruby?

Hi there,

Zsh has a beautiful thing going for it.
See on http://aperiodic.net/phil/prompt/

I refer to that prompt with those |===| bars

Does anyone know how this is done? Ncurses?

And most importantly (to me), whether this is doable
in Ruby (i.e. Ruby-ncurses) as well?

I hardly tried to learn ruby-ncurses stuff, but if such
a thing would be feasible i’d probably move this on
my important todo list and invest time for this.

On [Fri, 23.05.2008 04:38], Marc H. wrote:

Does anyone know how this is done? Ncurses?

Hehe, nope, not even close. Its just a basic prompt, actually even
doable in bash (except from the right part, maybe). All it uses are
color codes, box drawing characters and some zsh builtins.