Getch() Problem: C vs D
    LouisHK via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Jan  9 17:06:53 PST 2017
    
    
  
On Monday, 9 January 2017 at 20:12:38 UTC, Adam D. Ruppe wrote:
> Probably a bug, though I don't like using the getch function, I 
> usually use the full input stream.
So, I thought a little bit and I changed the terminal.d to check 
on the KeyEvent if the KeyEvent.bKeyDown is true, otherwise 
assigns a null event, and it's working fine and now I can get the 
ESCAPE key. :)
terminal.d is truly amazing, I'm doing a lot of things with it.
Thanks,
L.
    
    
More information about the Digitalmars-d-learn
mailing list