pdg@draci.cs.uow.oz (Peter Gray) (02/13/90)
As a relative newcomer to X I would like some help on modifying the keyboard map for xterm. I am using a Sun workstation and would like to have certain keys generate strings, but different strings for shifted, control etc. For example, I would like the end key to generate "esc->" unshifted but "esc-." shifted. I have read the manual page for xterm and realise I need to use the translations resource (I think) but can not figure how to get the result I wish. Any help greatly appreciated. pdg Peter Gray ACSnet: pdg@draci.cs.uow.OZ.AU Professional Officer UUCP: ...!munnari!draci.cs.uow.OZ.AU!pdg Dept of Computing Science ARPA: pdg%draci.cs.uow.OZ.AU@uunet.UU.NET University of Wollongong Phone: +61 42 270770 N.S.W. 2500 Australia Fax : +61 42 297768
converse@EXPO.LCS.MIT.EDU (Donna Converse) (02/15/90)
> As a relative newcomer to X I would like some help on modifying the > keyboard map for xterm. > > I am using a Sun workstation and would like to have certain keys > generate strings, but different strings for shifted, control etc. Here is a demonstration on the F1 key. See "Translation Table Syntax", Appendix B of the X Toolkit Intrinsics documentation. xterm*VT100.translations: #override\n\ !Shift Ctrl <Key>F1: string("Shift-Ctrl ")\n\ !Shift Meta <Key>F1: string("Shift-Meta ")\n\ !Ctrl<Key>F1: string("Ctrl ")\n\ !Shift<Key>F1: string("Shift ")\n\ !Meta<Key>F1: string("Meta ")\n\ None<Key>F1: string("no modifiers ")\n\ <Key>F1: string("don't care about modifiers ")\n Donna Converse converse@expo.lcs.mit.edu