Created
October 15, 2015 19:00
-
-
Save bluebear94/30ec8e8c3c10d7f80fc8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
use v6; | |
#use IO::Handle; | |
#use IO::Socket; | |
#say $*IN.t; | |
shell "stty raw -echo"; | |
loop { | |
my $c = $*IN.getc; | |
print "<$c> "; | |
last if $c eq "q"; | |
} | |
shell "stty cooked echo"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment