Created on 2008-02-10.21:28:10 by perrinjerome, last changed 2009-08-27.14:13:52 by admin.
msg3302 (view) |
Author: perrinjerome |
Date: 2008-02-10.21:28:08 |
|
The attached patch it a proof of concept to enable readline when asking user,
for example in the "What is the patch name?" question on record command.
The motivation is that arrow keys doesn't work there, and simply print sequences
like "^[[D".
I'm new to haskell, this patch has some problems:
* in the configure, it checks for the presence of readline library, not haskell
module. Maybe this is not correct.
* program does not exit properly when the user press C-c during askUser.
Attachments
|
msg3324 (view) |
Author: droundy |
Date: 2008-02-11.16:56:56 |
|
On Sun, Feb 10, 2008 at 09:28:11PM -0000, =?ISO-8859-1?Q?J=E9rome_Perrin_ wrote:
> The attached patch it a proof of concept to enable readline when asking user,
> for example in the "What is the patch name?" question on record command.
> The motivation is that arrow keys doesn't work there, and simply print sequences
> like "^[[D".
I appreciate the patch!
> I'm new to haskell, this patch has some problems:
> * in the configure, it checks for the presence of readline library, not haskell
> module. Maybe this is not correct.
This is easily fixable.
> * program does not exit properly when the user press C-c during askUser.
This, however, is what stopped us from using readline the last time we
tried it. I couldn't figure out how to make C-c work, and in my opinion
that's a more important feature than arrow keys. :( Which is not to say
that you won't be able to fix this, but to point to this as an important
problem.
--
David Roundy
Department of Physics
Oregon State University
|
msg6184 (view) |
Author: droundy |
Date: 2008-10-01.14:40:20 |
|
I think with the haskeline patch, this is a wont-fix (due to the ctrl-C issue).
Of course, I haven't tested haskeline, but it should be equivalent in features,
but much easier to work with.
David
|
|
Date |
User |
Action |
Args |
2008-02-10 21:28:10 | perrinjerome | create | |
2008-02-11 01:23:20 | markstos | set | priority: feature -> wishlist status: unread -> unknown topic:
+ Patch title: Use readline when getting user input -> wish: Use readline when getting user input (includes patch) nosy:
droundy, tommy, beschmi, kowey, perrinjerome |
2008-02-11 16:56:57 | droundy | set | nosy:
droundy, tommy, beschmi, kowey, perrinjerome messages:
+ msg3324 title: wish: Use readline when getting user input (includes patch) -> Use readline when getting user input |
2008-02-16 04:13:23 | markstos | set | status: unknown -> deferred nosy:
droundy, tommy, beschmi, kowey, perrinjerome title: Use readline when getting user input -> wish: Use readline when getting user input |
2008-10-01 14:40:25 | droundy | set | status: deferred -> wont-fix nosy:
+ dagit, simon, thorkilnaur messages:
+ msg6184 |
2008-12-19 09:54:43 | kowey | link | issue1205 superseder |
2009-08-06 17:54:03 | admin | set | nosy:
+ markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, - droundy, perrinjerome |
2009-08-06 20:57:32 | admin | set | nosy:
- beschmi |
2009-08-10 22:14:34 | admin | set | nosy:
+ perrinjerome, - markstos, darcs-devel, zooko, jast, Serware, mornfall |
2009-08-11 00:06:44 | admin | set | nosy:
- dagit |
2009-08-25 17:29:56 | admin | set | nosy:
+ darcs-devel, - simon |
2009-08-27 14:13:52 | admin | set | nosy:
tommy, kowey, darcs-devel, thorkilnaur, perrinjerome, dmitry.kurochkin |
|