The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: jnc@mercury.lcs.mit.edu (Noel Chiappa)
Subject: stty erase '^?' in v7
Date: Sat, 14 Oct 2017 00:25:17 -0400 (EDT)	[thread overview]
Message-ID: <20171014042517.3938A18C09E@mercury.lcs.mit.edu> (raw)

    > 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.

  http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/dev/tty.c>

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.

       Noel


             reply	other threads:[~2017-10-14  4:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-14  4:25 Noel Chiappa [this message]
2017-10-14  4:48 ` Will Senn
2017-10-14  6:31 ` Dave Horsfall
2017-10-14 14:03   ` Will Senn
2017-10-14 22:01     ` Dave Horsfall
  -- strict thread matches above, loose matches on Subject: below --
2017-10-15 14:39 Noel Chiappa
2017-10-14 12:52 Noel Chiappa
2017-10-14 14:40 ` Clem Cole
2017-10-14 14:44   ` Ronald Natalie
2017-10-15 13:10     ` Don Hopkins
2017-10-14  2:59 Will Senn
2017-10-14  4:08 ` Grant Taylor
2017-10-14  4:39 ` Random832
2017-10-14  5:03   ` Will Senn
2017-10-16 14:46     ` Random832

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171014042517.3938A18C09E@mercury.lcs.mit.edu \
    --to=jnc@mercury.lcs.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).