Article 133949 of comp.os.vms: Path: nntpd.lkg.dec.com!crl.dec.com!crl.dec.com!bloom-beacon.mit.edu!apollo.hp.com!lf.hp.com!news.dtc.hp.com!col.hp.com!usenet.eel.ufl.edu!news.mathworks.com!news.kei.com!simtel!oleane!in2p3.fr!swidir.switch.ch!scsing.switch.ch!cmir.arnes.si!not-for-mail From: xmas@arnes.si (Gorazd Bozic) Newsgroups: comp.unix.questions,comp.os.vms,comp.sys.dec,ch.chuug,vmsnet.misc Subject: Re: VT-Terminal shown on a HP-Workstation. Where are the PF-Keys ? Date: 13 Nov 1995 12:14:22 +0100 Organization: ARNES, Slovenia Lines: 48 Message-ID: <4879ae$c24@cmir.arnes.si> References: <47vt3c$6ac@news.alcatel.ch> <4807tc$4fa@topaz.sensor.com> Reply-To: gorazd.bozic@arnes.si NNTP-Posting-Host: cmir.arnes.si Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xref: nntpd.lkg.dec.com comp.unix.questions:102234 comp.os.vms:133949 comp.sys.dec:37055 ch.chuug:91 vmsnet.misc:4492 In article <4807tc$4fa@topaz.sensor.com>, Ron Natalie wrote: >Peter Kistler (KISTLER@TRZCL1) wrote: >: We have an application running on a HP, which calls a remote shell on >: a VAX. This remote shell redirects display to the HP and creates a terminal >: window. This works fine (we see the VAX terminal window on the HP screen), >: but now the problem is: Where are my PF-Keys? I need at least to have >: PF1 and PF2. > >You might try using one of the following ideas: > >1. Use an xterm on the HP rather than the hpterms which have > different function key configurations. The xterms were an > attempt to be VT100 compatible. On some workstations you still have to do some work to get VTxxx keypad mapping right. Modify your .Xdefaults file with something like this: xterm*VT100.Translations: #override\ BackSpace: string(0x7f)\n\ Delete: string(0x08)\n\ Insert: string("\033[1~")\n\ Home: string("\033[2~")\n\ Prior: string("\033[3~")\n\ End: string("\033[5~")\n\ Next: string("\033[6~")\n\ F1: string("\033OP")\n\ F2: string("\033OQ")\n\ F3: string("\033OR")\n\ F4: string("\033OS")\n\ KP_F1: string("\033OP")\n\ KP_F2: string("\033OQ")\n\ KP_F3: string("\033OR")\n\ KP_F4: string("\033OS")\n\ F22: string("\033OP")\n\ KP_Divide: string("\033OQ")\n\ KP_Multiply: string("\033OR")\n\ KP_Subtract: string("\033OS")\n\ You can check KeySyms with xev (X11 demo program) - position cursor in its window and press keys you want to redefine. It will show X11 KeySyms for keys you type. Then you list these KeySyms in .Xdefaults and map VTxxx escape sequences to them (see above example). Gorazd