Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!aramis!lear From: lear@aramis.RUTGERS.EDU (eliot lear) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Help! I need an interrupt!! Message-ID: <565@aramis.RUTGERS.EDU> Date: Fri, 1-May-87 22:19:02 EDT Article-I.D.: aramis.565 Posted: Fri May 1 22:19:02 1987 Date-Received: Sun, 3-May-87 02:09:25 EDT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 36 Xref: mnetor comp.unix.wizards:2117 comp.unix.questions:2104 Posting-Front-End: GNU Emacs 18.41.20 of Sun Apr 26 1987 on aramis.rutgers.edu (berkeley-unix) Hello all, I would like to do the following in UNIX but I am not quite sure how... My problem: I want to place a command on a key. It is an old TOPS-20ism that I enjoyed to place commands on keys, such as accessing your editor with one character, like C-K or C-E. The program I would like to put on a key is a FAST network send program. The problem is that I do not believe that UNIX allows for user definable interrupt characters and I do not know how to write the program without at least one interrupt character. Someone suggested using the quit character and one of my friends who has spent lots of time building TeX quickly killed (-9) the idea. My solution: I propose to place a group of ``slots'' in the ttychars struct and make minor changes to tty.c to allow for user definable interrupts. It would also require use of a signal. If I want to be lazy I could just use one of SIGUSR1 and SIGUSR2. Otherwise, I could probably hack it so that the user could specify the signal. My problem with my solution: I *really* don't want to add to the kernel unless absolutely necessary. If anyone knows of a method that allows me to set up my ``interrupt key'', please do not hesitate to mail or post!!! Thanks in advance.... -- [lear@rutgers.edu] [{harvard|pyrnj|seismo|ihnp4}!rutgers!lear]