[haskeline] #101: read from /dev/tty when stdin isn't a terminal

haskeline haskeline at projects.haskell.org
Mon Aug 30 14:52:41 EDT 2010

#101: read from /dev/tty when stdin isn't a terminal
Reporter:  judah        |        Owner:        
    Type:  enhancement  |       Status:  closed
Priority:  minor        |    Milestone:  0.6.3 
 Version:  0.6          |   Resolution:  fixed 
Keywords:               |  
Changes (by judah):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => 0.6.3


 Resolved by the addition of `Mode`s to the API.  In particular,
 {{{runInputTForMode preferTermMode}}} will read input from the user's
 terminal, if possible.

 Note that if Haskeline can't connect to the terminal, it will still read
 from stdin.  The function `haveTerminalUI` checks for that case.

Ticket URL: <http://trac.haskell.org/haskeline/ticket/101#comment:1>
haskeline <http://example.org/>
My example project

More information about the Haskeline mailing list