darcs

Issue 671 wish: Use readline when getting user input

Title wish: Use readline when getting user input
Priority wishlist Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, perrinjerome, thorkilnaur, tommy
Assigned To
Topics Patch, UI

Created on 2008-02-10.21:28:10 by perrinjerome, last changed 2009-08-27.14:13:52 by admin.

Files
File name Uploaded Type Edit Remove
darcs.readline_for_askUser.diff perrinjerome, 2008-02-10.21:28:08 application/octet-stream
Messages
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
History
Date User Action Args
2008-02-10 21:28:10perrinjeromecreate
2008-02-11 01:23:20markstossetpriority: 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:57droundysetnosy: 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:23markstossetstatus: 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:25droundysetstatus: deferred -> wont-fix
nosy: + dagit, simon, thorkilnaur
messages: + msg6184
2008-12-19 09:54:43koweylinkissue1205 superseder
2009-08-06 17:54:03adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, - droundy, perrinjerome
2009-08-06 20:57:32adminsetnosy: - beschmi
2009-08-10 22:14:34adminsetnosy: + perrinjerome, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:06:44adminsetnosy: - dagit
2009-08-25 17:29:56adminsetnosy: + darcs-devel, - simon
2009-08-27 14:13:52adminsetnosy: tommy, kowey, darcs-devel, thorkilnaur, perrinjerome, dmitry.kurochkin