Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!exodus!jethro!male!texsun!letni!mic!ernest!shibaya!afc From: afc@shibaya.lonestar.org (Augustine Cano) Newsgroups: comp.unix.shell Subject: Use of function keys for common comands at the ksh prompt. Message-ID: <1991Feb17.235721.20854@shibaya.lonestar.org> Date: 17 Feb 91 23:57:21 GMT Organization: Multidisciplinary Designs Unlimited Lines: 21 I would like to use my function keys (F1-F8) to save keystrokes. My keyboard generates "ESC O c-j" for F1-F8 respectively. The ideal solution is of course to have a separate ksh function that responds to the escape sequence of each individual function key, whose content would execute the desired command(s). The problem is that ksh doesn't like the leading escape. This makes sense since ESC is used in the vi editing mode. Is there a way to use the escape sequences generated by the function keys as function names? Alternatively, is there another way to accomplish the same thimg? (at the ksh level, of course; I know the keyboard driver could be modified, but this is not an option.) Other programs use the function keys for other purposes, so these definitions should only work at the ksh prompt. Any solutions/hints would be most welcome. I'll summarize e-mail responses. Thanks -- Augustine Cano INTERNET: afc@shibaya.lonestar.org UUCP: ...!{ernest,egsner}!shibaya!afc