menu driven ( like pine) on Linux

Hi guys,

I am designing the rdbms in C/C++ on linux platform as my project.
Can any one help me in designing menu driven screen (like the pine ) which will print on screen as follows
1) create table
2) add table
............. etc

with arrow keys for navigation ( for rolling up and down)

Have you looked at the curses library?

<A HREF="http://www.oreilly.com/catalog/curses/"><IMG SRC="http://www.oreilly.com/catalog/covers/curses.s.gif" BORDER=1 ALT="Programming with Curses/O'reilly"></A>

Thanx for reply ,
I have visited the site and got the sample examples. I will try and get back to you afterwords

Once again thanx for prompt reply