Created
August 20, 2015 14:56
-
-
Save jonathanstowe/deba1f4a74330cefa995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl6 | |
use Term::ReadKey:from<Perl5>; | |
ReadMode(4); | |
loop { | |
my $a = ReadKey(0); | |
if $a.defined { | |
say $a.ord; | |
last if $a eq 'q'; | |
} | |
} | |
ReadMode(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment