# Curses library and threads

**URL:** <https://www.ruby-forum.com/t/curses-library-and-threads/85639>\
**Category:** Ruby\
**Created:** [February 15, 2007, 4:26am UTC](https://www.ruby-forum.com/t/curses-library-and-threads/85639 "2007-02-15T04:26:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [February 15, 2007, 4:26am UTC](https://www.ruby-forum.com/t/curses-library-and-threads/85639/1 "2007-02-15T04:26:15Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [February 16, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/curses-library-and-threads/85639/2 "2007-02-16T14:39:45Z")

</div>

On Feb 15, 4:25 am, pedro mg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.org/stdlib/](http://www.ruby-doc.org/stdlib/)

Nico

---

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [February 16, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/curses-library-and-threads/85639/3 "2007-02-16T18:55:41Z")

</div>

Nicolas Desprès wrote:

> You can get some help here:  
> [RDoc Documentation](http://www.ruby-doc.org/stdlib/)
> 
> Nico

Nico, thank you. I just looked in [RDoc Documentation](http://ruby-doc.org/core)  
That’s it, stdlib 😉
