🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #23874

Re: Using function keys under xterm

#23874
From: Kendall Schmidt
Date: Wed, 19 Jun 1991 22:02
25 lines
1428 bytes
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
Technical Details
Message-ID: <1991Jun19.220228.47@b11.ingr.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!infonode!ingr!b11!hottub!kendall
References: <1991Jun19.174352.27798@devildog.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!infonode!ingr!b11!hottub!kendall
From: kendall@hottub.b11.ingr.com (Kendall Schmidt)
Newsgroups: comp.windows.x
Subject: Re: Using function keys under xterm
Message-ID: <1991Jun19.220228.47@b11.ingr.com>
Date: 19 Jun 91 22:02:28 GMT
References: <1991Jun19.174352.27798@devildog.att.com>
Sender: @b11.ingr.com
Reply-To: kendall@ingr.com
Distribution: na
Organization: Intergraph Corp. Huntsville, AL.
Lines: 25