"Judah Jacobson" <[EMAIL PROTECTED]> writes:
> Currently darcs requires haskeline-0.3, as you've mentioned.

OK, I retested it using haskeline-0.3.2 instead of 0.4.x.

>> For example, I expect typing Control+B or the left arrow to move the
>> cursor back one character when I'm at the "What is the patch name?"
>> prompt.  But it just inserts the control/escape codes on the end of the
>> line -- the same behaviour as I get without haskeline.
>
> Are you sure you built it with haskeline support?

"cabal build --verbose" includes -package haskeline-0.3.2 in ghc
invocations, so I assume so.

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.

Here's the output of ghc-pkg list:

  /usr/lib/ghc-6.8.3/package.conf:
      Cabal-1.2.4.0, HTTP-3001.0.4, array-0.1.0.0, base-3.0.2.0,
      bytestring-0.9.0.1.1, containers-0.1.0.2, directory-1.0.0.1,
      filepath-1.1.0.0, (ghc-6.8.3), haskell98-1.0.1.0, hpc-0.5.0.1,
      html-1.0.1.1, mtl-1.1.0.0, network-2.1.0.0, old-locale-1.0.0.0,
      old-time-1.0.0.0, packedstring-0.1.0.0, parsec-2.1.0.0,
      pretty-1.0.0.0, process-1.0.0.1, random-1.0.0.0, readline-1.0.1.0,
      regex-base-0.93.1, regex-compat-0.91, regex-posix-0.93.1, rts-1.0,
      stm-2.1.1.0, template-haskell-2.2.0.0, unix-2.3.0.1,
      utf8-string-0.3.1.1, zlib-0.4.0.1
  /home/twb/.ghc/i386-linux-6.8.3/package.conf:
      Cabal-1.6.0.1, QuickCheck-2.1.0.1, haskeline-0.3, haskeline-0.3.2,
      terminfo-0.2.2.1

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to