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

haskeline haskeline at projects.haskell.org
Mon Oct 19 11:05:11 EDT 2009


#101: read from /dev/tty when stdin isn't a terminal
------------------------+---------------------------------------------------
Reporter:  judah        |       Owner:     
    Type:  enhancement  |      Status:  new
Priority:  minor        |   Milestone:     
 Version:  0.6          |    Keywords:     
------------------------+---------------------------------------------------
 Darcs apply doesn't work when reading from a file with interactive mode:
  {{{darcs apply -i < foo.dpatch}}}
 In that case, Haskeline should read user input from stdin, like `less`.

 Darcs ticket and email thread:
 http://bugs.darcs.net/issue1648
 http://lists.osuosl.org/pipermail/darcs-users/2009-October/021861.html

 There's two possible ways to do this:
   - Query an environmental flag (e.g. HASKELINE_FORCE_TTY).
   - Add a parameter to one of Haskeline's functions.

 We need to figure out the Darcs use cases in order to decide which way is
 better.

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


More information about the Haskeline mailing list