[darcs-users] darcs should check wether the input comes from a terminal
David Roundy
droundy at abridgegame.org
Tue Feb 17 11:32:49 UTC 2004
On Mon, Feb 16, 2004 at 03:56:01PM +0100, Jorgen Schaefer wrote:
> It would be nice if darcs could check wether the input comes from
> a terminal or not. If the input is not a terminal, user input
> should be read linewise, not characterwise.
>
> As an example, in emacs' M-x shell, i can't use darcs pull or
> similar. Hitting y won't do anything, because the shell does not
> send anything until I hit RET, but then it sends the whole line,
> including RET - darcs reads y and RET, and gives me the usage help
> because it doesn't know what to do with RET.
Rather than checking whether stdin is a terminal, I've decided to simply
ignore RET in any case. I think this should give expected behavior, but it
could be I introduced a bug somewhere, since I didn't experiment with every
interactive darcs command. If you run the latest darcs, this fix should be
there some time this morning, and I'll be interested in confirming that it
fixes your problem.
> Thanks :)
You're welcome!
--
David Roundy
http://www.abridgegame.org
More information about the darcs-users
mailing list