Skip to content

Instantly share code, notes, and snippets.

@bluebear94
Created October 15, 2015 19:00
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 bluebear94/30ec8e8c3c10d7f80fc8 to your computer and use it in GitHub Desktop.
Save bluebear94/30ec8e8c3c10d7f80fc8 to your computer and use it in GitHub Desktop.
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