summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/h2pl/tcbreak2
blob: fcbf926516126465c63564a507a2dc2da2907fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

require 'cbreak2.pl';

&cbreak;

$| = 1;

print "gimme a char: ";

$c = getc;

print "$c\n";

printf "you gave me `%s', which is 0x%02x\n", $c, ord($c);

&cooked;