I want to read user input from STDIN and process the preliminary input while the user is still typing.
            Asked
            
        
        
            Active
            
        
            Viewed 204 times
        
    3 Answers
1
            A previous answer has some ruby code which enables this behaviour.
 
    
    
        Community
        
- 1
- 1
 
    
    
        Robert Duncan
        
- 500
- 3
- 6
0
            
            
        Call STDIN.getc to get individual characters that the user types.
 
    
    
        David Grayson
        
- 84,103
- 24
- 152
- 189
- 
                    The problem with `STDIN.getc` is that it blocks until the first newline. – gugelhüpf Mar 29 '12 at 20:52
 
    