Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!umbc3!wolf.umbc.edu!alex From: alex@wolf.umbc.edu (Alex Crain) Newsgroups: comp.unix.questions Subject: Re: Defining function keys Message-ID: <1873@umbc3.UMBC.EDU> Date: 5 Apr 89 18:52:32 GMT References: <1869@umbc3.UMBC.EDU> Sender: newspost@umbc3.UMBC.EDU Lines: 22 In article <1869@umbc3.UMBC.EDU>, rostamia@umbc3.UMBC.EDU (Rouben Rostamian) writes: Is there a way to define function keys to execute > certain commands in UNIX? For example, can one press f17 (I have > a vt220) to execute "/bin/ps -w -u smith"? Well, sort of. Normally, the UNIX tty driver will not send a command to the shell until the RETURN key is pressed. THis behaviour is configurable, but the result is generally accompanied by a system slowdown. You can however, bind command to escape sequences using the csh alias feature. for example the above could be accomplished with: alias "[31~" 'ps -w -u smith' and then be executed with the sequence: :alex Alex Crain Systems Programmer alex@umbc3.umbc.edu Univ Md Baltimore County umbc3.umbc.edu!nerwin!alex