[ruby-talk:00215] Re: Get character with no wait

From: Klaus Schilling <Klaus.Schilling@...>
Date: 1999-01-25 09:46:03 UTC
List: ruby-talk #215
Yukihiro Matsumoto writes:
 > Hi.
 > 
 > In message "[ruby-talk:00210] Get character with no wait"
 >     on 99/01/24, Gabriel <gabriel@devo.com> writes:
 > 
 > |What is the best way to do a getc without waiting; so I can try to grab
 > |it in a loop where i am also sending characters (e.g. in an irc program,
 > |where I am grabbing input from a socket while sending characters from
 > |the console).  I'd rather not do it with threads in the interest of
 > |portability, but if it's the best solution, I'd like to know.
 > 
 > I think the easiest way is to use stty, if you are on UNIX.

How hard would it be to write a termios wrapper for ruby, similar to the one
of ruby?
--
Klaus Schilling

In This Thread