stty erase '^?' in v7
jnc at mercury.lcs.mit.edu
Sat Oct 14 14:25:17 AEST 2017
> From: Will Senn
> 1. How do you escape # in order to write a C program if # is the erase
> character in the terminal?
"Use the source, Luke!" V7 is simple enough that it's pretty quick to find
the answers to things like this. E.g.
will answer this question (in "canon()").
> 3. Is there a way to echo the ascii value of a keypress in v7?
A quick look through tty.c suggests this doesn't exist in V7 - without running
a user program that puts the TTY in 'raw' mode and prints out what it
sees. Not sure if there is one off the rack, or if you'd have to whip up a
20-line program to do it.
More information about the TUHS