On Sun, Dec 7, 2008 at 1:08 AM, Trent W. Buck <[EMAIL PROTECTED]> wrote:
> It still doesn't work:
>
>  $ dist/build/darcs/darcs rec
>  hunk ./src/Darcs/Commands/Tag.lhs 80
>  +
>  Shall I record this change? (1/1)  [ynWsfvpxdaqjk], or ? for help: y
>  What is the patch name? foo^B^[[D^A^K^Cdarcs: interrupted
>  $
>
> Worse, when I hit ^C above, it leaves _darcs/lock lying around, because
> if I re-run the command
>
>  $ dist/build/darcs/darcs rec
>  Waiting for lock /home/twb/VCS/darcs-illiterate/_darcs/lock
>  Couldn't get lock /home/twb/VCS/darcs-illiterate/_darcs/lock
>
> This lockfile isn't left around if I use darcs 2.1.0, built without
> haskeline:
>
>  $ darcs rec
>  hunk ./src/Darcs/Commands/Tag.lhs 80
>  +
>  Shall I record this change? (1/1)  [ynWsfvpxdaqjk], or ? for help: y
>  withSignalsHandled: Interrupted!D^A^K^C
>
>  $
>
> I also notice that colour isn't working in the with-haskeline version.
>
> These tests were performed in darcs' repository, in GNU Screen version
> 4.00.03jw4 (FAU) 2-May-06.

Ok, that's very strange behavior, especially the ctrl-c issue.  Please
let me know:
 - what OS you're running
 - what version of ghc
 - whether you're using an up-to-date darcs repo or a specific release

Also, it would be helpful to isolate the issue to something haskeline
is doing rather than how darcs is using it; can you please download
the following file (a simple REPL):

http://code.haskell.org/~judah/haskeline-debug/Test.hs

compile it with "ghc --make -package haskeline-0.3.2", and test in the
same environment as before whether the arrow keys work or you still
get bad control characters inserted.


Finally, the color not working might mean something wrong with the
terminfo package; in the same environment that you performed the above
tests, please enter the following commands in ghci and let me know the
output:

System.Environment.getEnv "TERM"
:m +System.IO
hIsTerminalDevice stdin
openFile "/dev/tty" WriteMode

:m +System.Console.Terminfo
t <- setupTermFromEnv
getCapability t (tiGetStr "cr")
getCapability t (tiGetNum "colors")


Thanks for your help in diagnosing this issue,
-Judah
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to