Getch() Problem: C vs D
Era Scarecrow via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 8 20:31:04 PST 2017
On Sunday, 8 January 2017 at 21:19:15 UTC, LouisHK wrote:
> And works fine, but the D version below nothing happens when I
> hit ESCAPE:
>
> Is this a bug or there is another approach?
Could this be because of maybe somehow it handles the console
input? Kinda like how shift and different keys are toggles rather
than dedicated to specific codes?
Regardless, try ^[ ( Ctrl+[ ), which is 27 and ^] is 29.
More information about the Digitalmars-d-learn
mailing list