[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ncurses like library?

Tim Mcd

1/14/2009 4:31:00 PM

Excuse me, but does anyone know of an Ncurses-like library for Ruby? For
putting graphics made with static text onto a terminal/DOS window?
--
Posted via http://www.ruby-....

9 Answers

Jesús Gabriel y Galán

1/14/2009 4:39:00 PM

0

On Wed, Jan 14, 2009 at 5:31 PM, Tim Mcd <tmcdowell@gmail.com> wrote:
> Excuse me, but does anyone know of an Ncurses-like library for Ruby? For
> putting graphics made with static text onto a terminal/DOS window?

Hi, this might help:

http://letmegooglethatforyou.com/?q=ruby+ncurs...

Jesus.

Nit Khair

1/15/2009 5:28:00 AM

0

Tim Mcd wrote:
> Excuse me, but does anyone know of an Ncurses-like library for Ruby? For
> putting graphics made with static text onto a terminal/DOS window?

I am surprised to hear that ncurses-ruby is not working or the include
Ncurses is not working.

All my work uses ruby-ncurses as a base. Yes, there are a couple of
things I have come across that were buggy - which I have pointed out on
this forum.
Sadly there seems to be no maintainer for it -- have posted bugs but no
response. But these are very minor and probably no one uses those
things.

Please install the gem and then try the samples. Feel free to ask me
anything - I just might be able to help and save you time, and am glad
to answer.

oh, btw, just wondering -- is the basic curses that comes with ruby
working on your system.

Also, I believe I have done extensive and thorough searching on ncurses
and ruby (2 months ago) and whatever libraries or wrappers I could find
were long abandoned or had not released code.

Cheers,
Sent.
--
Posted via http://www.ruby-....

Phlip

1/15/2009 2:48:00 PM

0

Ruby Rabbit wrote:

> All my work uses ruby-ncurses as a base.

Can you use it in an existing console, such as to simply color text, without
pretending it's a window and taking over all of it?

Michal Suchanek

1/15/2009 2:59:00 PM

0

2009/1/15 Phlip <phlip2005@gmail.com>:
> Ruby Rabbit wrote:
>
>> All my work uses ruby-ncurses as a base.
>
> Can you use it in an existing console, such as to simply color text, without
> pretending it's a window and taking over all of it?
>

I guess that's not what curses are meant for in general.

You can look up the terminal capabilities and use them to change
colors but curses functions all operate on windows. Curses is a TUI
library, not an output coloring library.

The situation is further complicated on Windows where the 'console' is
very fishy and normally you cannot change the colors with writing
terminal strings, only with Win32API calls.

Thanks

Michal

Nit Khair

1/15/2009 3:52:00 PM

0

Phlip wrote:
> Ruby Rabbit wrote:
>
>> All my work uses ruby-ncurses as a base.
>
> Can you use it in an existing console, such as to simply color text,
> without
> pretending it's a window and taking over all of it?

I am not exactly certain of what you mean, but have you tried Highline.

It does great coloring, I have run its demos but not really used it. A
lot of people here have used it.

Also, iirc Facets has some module for ANSI-coloring. If i am not
mistaken you can do something like a colored ls output (directory
listing).

So do a give a look at Highline and Facets.

--
Posted via http://www.ruby-....

Tj Holowaychuk

1/16/2009 12:30:00 AM

0

Tim Mcd wrote:
> Excuse me, but does anyone know of an Ncurses-like library for Ruby? For
> putting graphics made with static text onto a terminal/DOS window?

this might help you as well

http://github.com/visionmedia/commander/t...
--
Posted via http://www.ruby-....

Tim Mcd

1/16/2009 1:26:00 AM

0

Tj Holowaychuk wrote:
> Tim Mcd wrote:
>> Excuse me, but does anyone know of an Ncurses-like library for Ruby? For
>> putting graphics made with static text onto a terminal/DOS window?
>
> this might help you as well
>
> http://github.com/visionmedia/commander/t...

Isn't quite what I was looking for, but man does it look neat! =D
--
Posted via http://www.ruby-....

Nit Khair

1/16/2009 6:34:00 AM

0

Tj Holowaychuk wrote:
> Tim Mcd wrote:
>> Excuse me, but does anyone know of an Ncurses-like library for Ruby? For
>> putting graphics made with static text onto a terminal/DOS window?
>
> this might help you as well
>
> http://github.com/visionmedia/commander/t...

Looks really good!

--
Posted via http://www.ruby-....

Tj Holowaychuk

1/16/2009 7:03:00 AM

0

RK Sentinel wrote:
> Tj Holowaychuk wrote:
>> Tim Mcd wrote:
>>> Excuse me, but does anyone know of an Ncurses-like library for Ruby? For
>>> putting graphics made with static text onto a terminal/DOS window?
>>
>> this might help you as well
>>
>> http://github.com/visionmedia/commander/t...
>
> Looks really good!

Thanks! that was my first Ruby library every actually haha, its still a
work in progress but all the major tasks seem pretty solid now, just not
alot of people know about it.
--
Posted via http://www.ruby-....