From: Jason Roelofs Date: 2007-11-12T00:00:08+09:00 Subject: Re: How to write a nice (complex) console app? ------=_Part_33097_23033183.1194793208400 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Nov 11, 2007 9:50 AM, kazaam wrote: > Hi, > how can I do a nice console interface? I wanna do something like this her: > > ----------------------------------------------------- > |Entry1 |Subitem1 of Entry1 | > |Entry2 |Subitem2 of Entry1 | > |Entry3 |Subitem3 of Entry1 | > | | | > | |---------------------------------------| > | |Content of Subitem1 of Entry1 | > | | | > | | | > | | | > | | | > | | | > | | | > |-----------|---------------------------------------| > > With the up and down keys I wanna scroll within the three different areas. > And with scroll I really mean scroll,e.g. one entry could have 10 subitems > which don't fit all at once in this area so with going up & down this area > must be redrawn if neccessary. The actually selected entry should also be > highlighted... > > And with the left and right keys I wanna jump between the three different > areas. > > But I've no idea how to do this task? > > Could someone just point me in the right direction which gem or lib I > need? It should be Utf-8 compatible.. > > The whole thing shall be working under linux. > > > bye > > You want ncurses. Don't know what's available for ncurses in Ruby though. Jason ------=_Part_33097_23033183.1194793208400--