[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

curses library and threads

pedro mg

2/15/2007 2:13:00 AM

Hi,

i believe curses lib comes with ruby 1.8.5.
I have 2 questions that are consuming me hours. How can i get
documentation on ruby curses lib ? Methods, constants, etc, sourcecode,
etc. Shell "$ ri Curses" does not report anything.
I installed another Ncurses lib that seems to be more complete, but i'd
like to know if the "standard" curses lib fits my needs.

I have another problem with threads and Ncurses:
- i created a thread to print out a counter, in a ncurses window
- another thread to get a string with wgetstr(win, str) in another window

The code works fine, but the counter stops until Enter is pressed on
wgetstr. Then it keeps counting until the code gets to the wgetstr()
again. So, can wgetstr() stop threads from running simultaneously ?

--
pedro mg
ruby 1.8.4 (2005-12-24) [i486-linux]
ubuntu linux edgy-eft 2.6.17-10-386 #2
2 Answers

Nicolas Desprès

2/16/2007 1:39:00 PM

0



On Feb 15, 4:25 am, pedro mg <_nospam_s...@tquadrado.com> wrote:
> Hi,
>

Hi,

> i believe curses lib comes with ruby 1.8.5.
> I have 2 questions that are consuming me hours. How can i get
> documentation on ruby curses lib ? Methods, constants, etc, sourcecode,
> etc. Shell "$ ri Curses" does not report anything.

You can get some help here:

http://www.ruby-doc.o...

Nico


pedro mg

2/16/2007 5:26:00 PM

0

Nicolas Desprès wrote:
> You can get some help here:
> http://www.ruby-doc.o...
>
> Nico

Nico, thank you. I just looked in ruby-doc.org/core
That's it, stdlib ;)

--
pedro mg
ruby 1.8.4 (2005-12-24) [i486-linux]
ubuntu linux edgy-eft 2.6.17-10-386 #2