[comp.windows.x] Using function keys under xterm

wcf@acpy01.att.com (Walter Forrester x5166) (06/20/91)

Is there a way to program funtion keys under xterm [34].0?

What we want to do, is press a function ket and have it barf out on
to the command line a pre-programmed string.  

wcf

wcf@acpy01.utsd.att.com

kendall@hottub.b11.ingr.com (Kendall Schmidt) (06/20/91)

In article <1991Jun19.174352.27798@devildog.att.com>, wcf@acpy01.att.com (Walter Forrester x5166) writes:
|> 
|> Is there a way to program funtion keys under xterm [34].0?
|> 
|> What we want to do, is press a function ket and have it barf out on
|> to the command line a pre-programmed string.  
|> 
|> wcf
|> 
|> wcf@acpy01.utsd.att.com

Try setting the translation resource in conjunction with the action "keymap":

    Ex.	*VT100.Translations: #override <Key>F13: keymap(resource_name)
	*VT100.resource_nameKeymap.translations: \
		<Key>F14: keymap(None) \n\
		<Key>F2: string("Kendall P. Schmidt") \n\
		<Key>F3: string("echo '\\033[2J'\n")

See the xterm man page for info about the keymap action.
-- 

  Kendall Schmidt	    |	Intergraph Corp.   |	e-mail:
  Graphics Standards	    |	Huntsville, AL.	   |	kendall@ingr.com
  X Window System	    |	205-730-4061	   |	uunet!ingr!kendall