Skip to content

Instantly share code, notes, and snippets.

@jonathanstowe
Created August 20, 2015 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanstowe/deba1f4a74330cefa995 to your computer and use it in GitHub Desktop.
Save jonathanstowe/deba1f4a74330cefa995 to your computer and use it in GitHub Desktop.
#!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