[darcs-devel] [patch561] darcs now uses tty instead of stdin in promptChar

Eric Kow kowey at darcs.net
Thu Feb 24 11:22:50 UTC 2011


On Thu, Feb 24, 2011 at 08:42:36 +0000, Ganesh Sittampalam wrote:
> I can't see how the tests could sensibly be rewritten. So we'd need a flag  
> to control this behaviour.

Is it technically feasible to have some kind of command, let's call it
fake-terminal, that runs a command, accepts input on stdin and pretends
to that command that the input was typed in?

  echo yn | fake-terminal darcs ...

Is something like Expect what I'm thinking of?
  http://en.wikipedia.org/wiki/Expect

Could we "just use expect"? (That sounds like it'd involve a lot of
exit 200) or cook up a really brain-dead version?

(Perhaps I misunderstand the issue)

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey at jabber.fr (Jabber or Google Talk only)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20110224/d605c37d/attachment.asc>


More information about the darcs-devel mailing list