quans...@quanstro.net (erik quanstrom) writes: > On Tue Sep 25 11:44:21 EDT 2012, chneukirc...@gmail.com wrote: >> kh...@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. >> >> (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 ^?.) > > the interrupt is delivered through the star wars-vintage > imperial garbage chute known as the tty subsystem, but > when i start 9term, stty intr is reset from ^C to ^?. > and if i change it back, then the fn+delete generates > escape codes, rather than an interrupt.
Not on my p9p 9term: % stty speed 38400 baud; line = 0; intr = ^?; erase = ^H; -brkint -imaxbel -onlcr onocr % cat ^? % stty intr '^C' % cat ^C % cat <Press C-c, RET here> ^C I pressed DEL twice, and after that C-c. The second DEL sends C-c, see /opt/plan9/src/cmd/9term/9term.c:441:winterrupt(Window *w) -- Christian Neukirchen <chneukirc...@gmail.com> http://chneukirchen.org