From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Tue, 25 Sep 2012 15:33:31 +0000 From: Christian Neukirchen Message-ID: <874nmmgm5n.fsf@gmail.com> Content-Type: text/plain; charset=us-ascii References: <16274ba3-67d5-43ef-b741-722f2398ffa2@googlegroups.com> Subject: Re: [9fans] p9p backspace/delete in osx Topicbox-Message-UUID: bb925e8c-ead7-11e9-9d60-3106f5b1d025 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 http://chneukirchen.org