Woah, that has absolutely no documentation d-:

After some chatting in IRC with those more knowledgeable than I (for  
future reference, the C manpage for the function is somewhat helpful: 
http://pastie.org/239587) 
, it seems to be specific to IO objects - unfortunately,  
Ncurses::getch isn't really an io object, it's doing some magic of its  
own and passing it on.

I can't just use STDIN and ignore Ncurses::getch, because STDIN can't  
be sync'd - it's only usable per-line, not per character.

Finally, even if the above weren't true, it won't work - because it  
still blocks: http://gist.github.com/1895
When I run that (using STDIN per-line, just to test), it still blocks  
- a period is only printed after every input/output pair; I need  
periods (in that example) to be continuously be printed, and only run  
gets when there is something to be, well, gotten. If that made any  
sense...

I certainly learned something new, though, I'd never heard of #select  
- though I don't see a use, if it still blocks (as I show above) >,>

Thanks for the help so far (-: At least I'm trying things and making  
progress, not banging my head against the keyboard as I was for a  
while with this d-:

On Jul 23, 2008, at 8:46 AM, Stephan Maka wrote:

> elliottcable wrote:
>> I looked through the ncurses-ruby source, couldn't find any method
>> named 'select' - what did you mean there?

Kernel#select


---------------------------------------------------------
       elliott cable       _     _      +1.919.636.4204
                          ( \---/ )
     elliottcable.name     ) . . (    [EMAIL PROTECTED]
____________________,--._(___Y___)_,--.__________________
                     `--'           `--'
THIS MESSAGE (and any attached materials) IS INTENDED ONLY
FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS
ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED,
CONFIDENTIAL, AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE
LAW.  If you, the reader of this message, are not the
intended recipient or the agent responsible for delivering
the message to the intended recipient, you are hereby
notified that any dissemination, distribution, or copying
of this communication is strictly prohibited.  If you have
received this communication in error, please notify me
immediately by replying to this message and deleting all
traces of it from your computer.  Thank you.
                       five.sentenc.es
_________________________________________________________
     Signature licensed under Creative Commons BY-NC-SA 3.0
              Do not use it, unless you follow those terms!

_______________________________________________
Xmpp4r-devel mailing list
Xmpp4r-devel@gna.org
https://mail.gna.org/listinfo/xmpp4r-devel

Reply via email to