bugGNU Typist - Bugs: bug #38839, Pressing Alt + another key during...

 
 

bug #38839: Pressing Alt + another key during a drill resets the drill

Submitted by:  Tim Marston <edam>
Submitted on:  Sat Apr 27 18:48:30 2013  
 
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: Felix Natter <fnatter>Open/Closed: Closed
Operating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun Jul 20 10:15:59 2014, comment #5:

I'm closing this -- we can re-open if it's still an issue.

Tim Marston <edam>
Project Administrator
Sun Aug 18 15:10:53 2013, comment #4:

The problem that used to be left was the halfdelay() in getch_fl()
(gtypist.c) led to an increased delay, but this was fixed with these two lines:

+ /* undo the halfdelay() from getch_fl() */
+ cbreak();

=> so the patch worked OK for me. The original poster did not confirm this unfortunately.

Felix Natter <fnatter>
Project MemberIn charge of this item.
Sun Aug 18 13:36:51 2013, comment #3:

Is this fixed?

I found this:

http://git.savannah.gnu.org/cgit/gtypist.git/commit/?id=ce02f4169eb4b378f0391855498a29dc1948da04

Or was there still a problem with it?

Tim Marston <edam>
Project Administrator
Sat May 25 12:50:38 2013, comment #2:

hello,

now I have a patch that does not have the 1s delay
when pressing ESC that the previous patch caused.

Best Regards,
Felix

(file #28170)

Felix Natter <fnatter>
Project MemberIn charge of this item.
Sat May 11 16:28:29 2013, comment #1:

hi,

using the idea from here:
http://stackoverflow.com/questions/5977395/ncurses-and-esc-alt-keys
I attached a patch which works for me.

Could you please verify it?

Thanks and Best Regards,
Felix

(file #28066)

Felix Natter <fnatter>
Project MemberIn charge of this item.
Sat Apr 27 18:48:30 2013, original submission:

During a drill, accidentally pressing Alt and another key has the same effect as pressing Escape and then an incorrect key. That is to say, it clears all keys pressed thus far (resetting the drill) and then makes an incorrect key press.

This key sequence should be handled better, and registered as a single key error (and not reset the drill!).

Tim Marston <edam>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fnatter (Updated the item)
  • -unavailable- added by fnatter
  • -unavailable- added by edam (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Jul 20 10:15:59 2014edamOpen/ClosedOpen=>Closed
    Sun Aug 18 15:12:31 2013fnatterStatusConfirmed=>Fixed
    Sun Aug 18 13:36:51 2013edamAssigned toNone=>fnatter
    Sat May 25 12:50:38 2013fnatterAttached File-=>Added fix-for-alt-key-aborts-lesson2.diff, #28170
    Sat May 11 16:28:29 2013fnatterAttached File-=>Added fix-for-alt-key-aborts-lesson.diff, #28066
      Carbon-Copy-=>Added felix natter

    Back to the top


    Powered by Savane 3.1-cleanup