summaryrefslogtreecommitdiff
path: root/h2pl/tcbreak2
diff options
context:
space:
mode:
authorLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-08-08 17:06:25 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-08-08 17:06:25 +0000
commite929a76b14922a7077596a747fc1fcd1bdd6b9ea (patch)
tree59ab0360573a58aff126a2dfa1d9666ae0fdb2ce /h2pl/tcbreak2
parent00bf170e31343ccc4fac7a63f6a3acf5e76c3616 (diff)
downloadperl-e929a76b14922a7077596a747fc1fcd1bdd6b9ea.tar.gz
perl 3.0 patch #26 patch #19, continued
See patch #19.
Diffstat (limited to 'h2pl/tcbreak2')
-rw-r--r--h2pl/tcbreak217
1 files changed, 17 insertions, 0 deletions
diff --git a/h2pl/tcbreak2 b/h2pl/tcbreak2
new file mode 100644
index 0000000000..fcbf926516
--- /dev/null
+++ b/h2pl/tcbreak2
@@ -0,0 +1,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;