darcs

Issue 774 wish: letter entered after a question echoed on screen (Win32)

Title wish: letter entered after a question echoed on screen (Win32)
Priority wishlist Status resolved
Milestone Resolved in
Superseder Nosy List czapkofan, darcs-devel, dmitry.kurochkin, eivuokko, jaredj, kirby, kowey, rgm, thorkilnaur, tommy, wglozer
Assigned To
Topics Windows

Created on 2008-03-31.22:17:19 by czapkofan, last changed 2009-10-24.00:08:08 by admin.

Files
File name Uploaded Type Edit Remove
get-echo.hs kowey, 2008-05-13.19:20:37 text/x-haskell
Messages
msg4160 (view) Author: czapkofan Date: 2008-03-31.22:17:17
Currently, there is no indication that I pressed a letter to choose an
option after asked some question by darcs. If my computer is slow, it
can result in my being unsure whether I have pressed one, and pressing
it again. And that might possibly result in e.g. two hunks being
accepted, when I wanted only the first. Echoing the letter would make
it possible for me to see whether the key got there.

Keep up good work.
msg4165 (view) Author: droundy Date: 2008-04-01.13:15:48
Thanks for the bug report! I'll just note here that this is windows-specific
behavior, as key presses are echoed on posix systems.

David
msg4632 (view) Author: kowey Date: 2008-05-13.14:21:37
Adding to this note, the prompts just use getChar from the Prelude.  

This may be worth asking the Haskell community about (if anybody hangs out in
#haskell, for example).  Or maybe somebody here knows?
msg4639 (view) Author: kowey Date: 2008-05-13.19:20:37
Can somebody tell me what this program does under Windows?

On Linux,

$ ./get-echo 
default echo status: True
sans echo
gimme a char and hit enter [with echo]: x

you said x
with echo
gimme a char and hit enter [sans echo]: 
you said y
Attachments
msg4890 (view) Author: kowey Date: 2008-05-30.10:19:33
Another thought: this may be related to the stuff Simon Marlow found here:
http://wiki.darcs.net/index.html/WindowsConsoles
msg4911 (view) Author: kowey Date: 2008-06-02.10:06:08
Huh... so if I run my test program on the DOS prompt, I get this error
get-echo.exe: <stdout>: hSetEcho: failed (failed to set echoing)

If I redirect the stdout to a text file, it seems to work fine (and I get
echoing to screen)
msg7060 (view) Author: thorkilnaur Date: 2009-01-12.11:19:46
It seems that this issue is not completely understood: If there is a solution to 
the problem reported, I am unable to see it. So I would like a volunteer with 
access to a Windows machine to take a further look at this, run kowey's program 
perhaps. And then decide on what to do about it.

Thanks and best regards
Thorkil
msg7143 (view) Author: kirby Date: 2009-01-19.14:52:44
This bug solved in darcs 2.2.
History
Date User Action Args
2008-03-31 22:17:19czapkofancreate
2008-04-01 13:15:53droundysetpriority: wishlist
nosy: + wglozer, eivuokko, rgm, droundy, jaredj
topic: + Windows
status: unread -> unknown
messages: + msg4165
2008-05-13 14:21:38koweysetnosy: + dagit
messages: + msg4632
2008-05-13 19:20:39koweysetfiles: + get-echo.hs
nosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, rgm, jaredj, czapkofan
messages: + msg4639
2008-05-30 10:19:34koweysetnosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, rgm, jaredj, czapkofan
messages: + msg4890
2008-06-02 10:06:10koweysetnosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, rgm, jaredj, czapkofan
messages: + msg4911
2009-01-12 11:19:49thorkilnaursetstatus: unknown -> needs-reproduction
nosy: + dmitry.kurochkin, simon, czapkofan, thorkilnaur, - czapkofan
messages: + msg7060
2009-01-19 14:52:46kirbysetstatus: needs-reproduction -> resolved-in-stable
nosy: + kirby
messages: + msg7143
2009-01-19 15:09:58koweysetstatus: resolved-in-stable -> resolved
nosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, simon, rgm, thorkilnaur, jaredj, dmitry.kurochkin, czapkofan, kirby
2009-08-06 17:57:48adminsetnosy: + markstos, jast, Serware, darcs-devel, zooko, mornfall, - droundy, wglozer, eivuokko, rgm, jaredj, czapkofan, kirby
2009-08-06 21:01:34adminsetnosy: - beschmi
2009-08-10 22:19:05adminsetnosy: + wglozer, eivuokko, kirby, rgm, czapkofan, jaredj, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:09:24adminsetnosy: - dagit
2009-08-25 17:38:58adminsetnosy: + darcs-devel, - simon
2009-08-27 14:15:12adminsetnosy: tommy, kowey, wglozer, darcs-devel, eivuokko, rgm, thorkilnaur, jaredj, dmitry.kurochkin, czapkofan, kirby
2009-10-23 22:42:15adminsetnosy: + robmoss, - rgm
2009-10-24 00:08:08adminsetnosy: + rgm, - robmoss