# Zsh prompt in ruby?

**URL:** <https://www.ruby-forum.com/t/zsh-prompt-in-ruby/138424>\
**Category:** Ruby\
**Created:** [May 22, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/zsh-prompt-in-ruby/138424 "2008-05-22T21:38:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [May 22, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/zsh-prompt-in-ruby/138424/1 "2008-05-22T21:38:48Z")

</div>

Hi there,

Zsh has a beautiful thing going for it.  
See on [http://aperiodic.net/phil/prompt/](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.

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [October 29, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/zsh-prompt-in-ruby/138424/2 "2008-10-29T16:39:14Z")

</div>

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.
