*BSD News Article 27499


Return to BSD News archive

Xref: sserve comp.windows.x.i386unix:7377 comp.os.386bsd.questions:8824
Newsgroups: comp.windows.x.i386unix,comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!math.ohio-state.edu!hobbes.physics.uiowa.edu!ljg
From: ljg@space.physics.uiowa.edu (Larry Granroth)
Subject: XFree 2.0, NetBSD 0.9, xterm, VT200 keypad
Message-ID: <CLDMs0.L47@space.physics.uiowa.edu>
Summary: Want VT200 keypad with xterm under XFree 2.0
Keywords: XFree-2.0 NetBSD-0.9 xterm VT200-keypad
Organization: The University of Iowa, Department of Physics and Astronomy
X-Newsreader: TIN [version 1.2 PL2]
Date: Thu, 17 Feb 1994 16:21:33 GMT
Lines: 85

I would like to make my 101-keyboard keypad behave like a VT200 application
keypad under xterm.  I used the following .Xresources entries with a
previous XFree86 version.  It works except that I have to hit Num_Lock twice
each time to behave like the "gold" key.

Now I'm running XFree86 2.0 and hope that the Num_Lock to gold_key mapping
can be handled better.  (I guess the Num_Lock modifier needs to be cleared
and maybe map both the modified and unmodified keypad to the same functions,
although I don't know how the two different Home, End, etc., keys will be
handled . . .)

Also, I remember seeing a reference to a spiffy graphical xmodmap tool
awhile back.  Any pointers?

Thanks for any help.

larry-granroth@uiowa.edu

-------------------------------- .Xresources ---------------------------------

XTerm*VT100*geometry:    80x24
XTerm*VT100*scrollBar:   on
XTerm*VT100*c132:	 on
XTerm*VT100*alwaysHighlight:	off
XTerm*VT100*curses:	 on
XTerm*VT100*saveLines:	 384
XTerm*VT100*jumpScroll:	 on
XTerm*VT100*multiScroll:	on
XTerm*VT100*scrollInput:	off
XTerm*VT100*scrollKey:	 on
XTerm*VT100*reverseWrap: on
XTerm*Tek4014*width:	800
XTerm*Tek4014*height:	600
XTerm*WaitForMap*waitForMap:	on

XTerm*VT100.Translations: \
#override \
 Shift<Key>F1:           string("0x1b") string("[23~") \n\
 Shift<Key>F2:           string("0x1b") string("[24~") \n\
 Shift<Key>F3:           string("0x1b") string("[25~") \n\
 Shift<Key>F4:           string("0x1b") string("[26~") \n\
 Shift<Key>F5:           string("0x1b") string("[28~") \n\
~Shift<Key>F6:           string("0x1b") string("[17~") \n\
 Shift<Key>F6:           string("0x1b") string("[29~") \n\
~Shift<Key>F7:           string("0x1b") string("[18~") \n\
 Shift<Key>F7:           string("0x1b") string("[31~") \n\
~Shift<Key>F8:           string("0x1b") string("[19~") \n\
 Shift<Key>F8:           string("0x1b") string("[32~") \n\
~Shift<Key>F9:           string("0x1b") string("[20~") \n\
 Shift<Key>F9:           string("0x1b") string("[33~") \n\
~Shift<Key>F10:          string("0x1b") string("[21~") \n\
 Shift<Key>F10:          string("0x1b") string("[34~") \n\
 <Key>Num_Lock:          string("0x1b") string("OP")   \n\
 <Key>KP_Divide:         string("0x1b") string("OQ")   \n\
 <Key>KP_Multiply:       string("0x1b") string("OR")   \n\
 <Key>KP_Subtract:       string("0x1b") string("OS")   \n\
 Shift<Key>KP_Add:       string("0x1b") string("Ol")   \n\
~Shift<Key>KP_Add:       string("0x1b") string("Om")   \n\
 <Key>KP_Decimal:        string("0x1b") string("On")   \n\
 <Key>KP_0:              string("0x1b") string("Op")   \n\
 <Key>KP_1:              string("0x1b") string("Oq")   \n\
 <Key>KP_2:              string("0x1b") string("Or")   \n\
 <Key>KP_3:              string("0x1b") string("Os")   \n\
 <Key>KP_4:              string("0x1b") string("Ot")   \n\
 <Key>KP_5:              string("0x1b") string("Ou")   \n\
 <Key>KP_6:              string("0x1b") string("Ov")   \n\
 <Key>KP_7:              string("0x1b") string("Ow")   \n\
 <Key>KP_8:              string("0x1b") string("Ox")   \n\
 <Key>KP_9:              string("0x1b") string("Oy")   \n\
 <Key>KP_Enter:          string("0x1b") string("OM")   \n\
 <Key>Insert:            string("0x1b") string("[1~")  \n\
 <Key>Home:              string("0x1b") string("[2~")  \n\
 <Key>Prior:             string("0x1b") string("[3~")  \n\
 <Key>Delete:            string("0x1b") string("[4~")  \n\
 <Key>End:               string("0x1b") string("[5~")  \n\
 <Key>Next:              string("0x1b") string("[6~")  \n\
 <Key>Up:                string("0x1b") string("[A")   \n\
 <Key>Down:              string("0x1b") string("[B")   \n\
 <Key>Right:             string("0x1b") string("[C")   \n\
 <Key>Left:              string("0x1b") string("[D")   \n\
 <Key>BackSpace:         string("0x7f")

------------------------------------------------------------------------------