9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Christian Neukirchen <chneukirchen@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] p9p backspace/delete in osx
Date: Tue, 25 Sep 2012 15:33:31 +0000	[thread overview]
Message-ID: <874nmmgm5n.fsf@gmail.com> (raw)
In-Reply-To: <16274ba3-67d5-43ef-b741-722f2398ffa2@googlegroups.com>

khm-9@intma.in (Kurt H Maier) writes:

> On Tue, Sep 25, 2012 at 08:52:40AM +0000, Christopher Hobbs wrote:
>> Being that macs don't have a proper delete key, how can I get delete
>> behavior to kill a program in rc short of slapping a real keyboard
>> on this machine?
>>
> delete to kill a program is a function of rio/9term/acme, not a function
> of rc.

Not true.  It's a feature of the terminal line discipline.

% stty
speed 38400 baud; line = 0;
intr = ^?; erase = ^H;

(The problem is that this only allows single chars as special keys,
so you can't bind '^[[3~'.)

(Actually, p9p 9term always sends the current intr-char on Delete, while
acme/win and matty's 9term always send ^?.)

Cheers,
--
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org



  parent reply	other threads:[~2012-09-25 15:33 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-25  8:52 Christopher Hobbs
2012-09-25  9:06 ` erik quanstrom
2012-09-25  9:22   ` Bakul Shah
2012-09-25  9:26     ` erik quanstrom
2012-09-25  9:39       ` andrey mirtchovski
2012-09-25  9:47         ` Bakul Shah
2012-09-25  9:50           ` andrey mirtchovski
2012-09-25 10:07             ` Bakul Shah
2012-09-25 10:51               ` hiro
2012-09-26  7:21         ` Yaroslav
     [not found]       ` <CAK4xykU+ZgTKa-enOhAJKDp3=+sT-T-v+6QJY_fa1a87gKMf2Q@mail.gmail.c>
2012-09-25  9:42         ` erik quanstrom
2012-09-25  9:49           ` andrey mirtchovski
2012-09-25 11:04 ` Kurt H Maier
2012-09-25 11:28   ` Bruce Ellis
2012-09-25 15:33 ` Christian Neukirchen [this message]
2012-09-25 16:45   ` erik quanstrom
2012-09-25 18:49     ` Jiten Pathy
2012-09-26  8:35 ` Christian Neukirchen
2012-09-26 11:43   ` erik quanstrom
2012-09-26 15:50 ` Christian Neukirchen

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=874nmmgm5n.fsf@gmail.com \
    --to=chneukirchen@gmail.com \
    --cc=9fans@9fans.net \
    /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).