XTerm.ad revision b7c89284
1b7c89284Ssnj! $XTermId: XTerm.ad,v 1.89 2009/08/15 15:58:44 tom Exp $
2d522f475Smrg
3d522f475Smrg*saveLines: 1024
4d522f475Smrg
5d522f475Smrg*SimpleMenu*BackingStore: NotUseful
6d522f475Smrg*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
7d522f475Smrg*SimpleMenu*menuLabel.vertSpace: 	100
8d522f475Smrg*SimpleMenu*HorizontalMargins: 16
9d522f475Smrg*SimpleMenu*Sme.height:	16
10d522f475Smrg
11d522f475Smrg*SimpleMenu*Cursor: left_ptr
12d522f475Smrg
13d522f475Smrg*mainMenu.Label:  Main Options
14d522f475Smrg*mainMenu*toolbar*Label:  Toolbar
15d522f475Smrg*mainMenu*securekbd*Label:  Secure Keyboard
16d522f475Smrg*mainMenu*allowsends*Label:  Allow SendEvents
17d522f475Smrg*mainMenu*redraw*Label:  Redraw Window
18d522f475Smrg*mainMenu*logging*Label:  Log to File
19d522f475Smrg*mainMenu*print*Label:  Print Window
20d522f475Smrg*mainMenu*print-redir*Label:  Redirect to Printer
21d522f475Smrg*mainMenu*8-bit control*Label: 8-Bit Controls
22d522f475Smrg*mainMenu*backarrow key*Label: Backarrow Key (BS/DEL)
23d522f475Smrg*mainMenu*num-lock*Label: Alt/NumLock Modifiers
24d522f475Smrg*mainMenu*alt-esc*Label: Alt Sends Escape
25d522f475Smrg*mainMenu*meta-esc*Label: Meta Sends Escape
26d522f475Smrg*mainMenu*delete-is-del*Label: Delete is DEL
27d522f475Smrg*mainMenu*oldFunctionKeys*Label: Old Function-Keys
28d522f475Smrg*mainMenu*sunFunctionKeys*Label: Sun Function-Keys
29d522f475Smrg*mainMenu*sunKeyboard*Label: VT220 Keyboard
30d522f475Smrg*mainMenu*hpFunctionKeys*Label: HP Function-Keys
31d522f475Smrg*mainMenu*scoFunctionKeys*Label: SCO Function-Keys
32d522f475Smrg*mainMenu*tcapFunctionKeys*Label: Termcap Function-Keys
33d522f475Smrg*mainMenu*suspend*Label:  Send STOP Signal
34d522f475Smrg*mainMenu*continue*Label:  Send CONT Signal
35d522f475Smrg*mainMenu*interrupt*Label:  Send INT Signal
36d522f475Smrg*mainMenu*hangup*Label:  Send HUP Signal
37d522f475Smrg*mainMenu*terminate*Label:  Send TERM Signal
38d522f475Smrg*mainMenu*kill*Label:  Send KILL Signal
39d522f475Smrg*mainMenu*quit*Label:  Quit
40d522f475Smrg
41d522f475Smrg*vtMenu.Label:  VT Options
42d522f475Smrg*vtMenu*scrollbar*Label:  Enable Scrollbar
43d522f475Smrg*vtMenu*jumpscroll*Label:  Enable Jump Scroll
44d522f475Smrg*vtMenu*reversevideo*Label:  Enable Reverse Video
45d522f475Smrg*vtMenu*autowrap*Label:  Enable Auto Wraparound
46d522f475Smrg*vtMenu*reversewrap*Label:  Enable Reverse Wraparound
47d522f475Smrg*vtMenu*autolinefeed*Label:  Enable Auto Linefeed
48d522f475Smrg*vtMenu*appcursor*Label:  Enable Application Cursor Keys
49d522f475Smrg*vtMenu*appkeypad*Label:  Enable Application Keypad
50d522f475Smrg*vtMenu*scrollkey*Label:  Scroll to Bottom on Key Press
51d522f475Smrg*vtMenu*scrollttyoutput*Label:  Scroll to Bottom on Tty Output
52d522f475Smrg*vtMenu*allow132*Label: Allow 80/132 Column Switching
53d522f475Smrg*vtMenu*keepSelection*Label: Keep Selection
54d522f475Smrg*vtMenu*selectToClipboard*Label: Select to Clipboard
55d522f475Smrg*vtMenu*cursesemul*Label:  Enable Curses Emulation
56d522f475Smrg*vtMenu*visualbell*Label:  Enable Visual Bell
57d522f475Smrg*vtMenu*bellIsUrgent*Label:  Enable Bell Urgency
58d522f475Smrg*vtMenu*poponbell*Label:  Enable Pop on Bell
59d522f475Smrg*vtMenu*cursorblink*Label: Enable Blinking Cursor
60d522f475Smrg*vtMenu*titeInhibit*Label:  Enable Alternate Screen Switching
61d522f475Smrg*vtMenu*activeicon*Label: Enable Active Icon
62d522f475Smrg*vtMenu*softreset*Label:  Do Soft Reset
63d522f475Smrg*vtMenu*hardreset*Label:  Do Full Reset
64d522f475Smrg*vtMenu*clearsavedlines*Label:  Reset and Clear Saved Lines
65d522f475Smrg*vtMenu*tekshow*Label:  Show Tek Window
66d522f475Smrg*vtMenu*tekmode*Label:  Switch to Tek Mode
67d522f475Smrg*vtMenu*vthide*Label:  Hide VT Window
68d522f475Smrg*vtMenu*altscreen*Label:  Show Alternate Screen
69d522f475Smrg
70d522f475Smrg*fontMenu.Label:  VT Fonts
71d522f475Smrg*fontMenu*fontdefault*Label:	Default
72d522f475Smrg*fontMenu*font1*Label:	Unreadable
73d522f475Smrg*VT100.font1:		nil2
74d522f475Smrg*IconFont:		nil2
75d522f475Smrg*fontMenu*font2*Label:	Tiny
76d522f475Smrg*VT100.font2:		5x7
77d522f475Smrg*fontMenu*font3*Label:	Small
78d522f475Smrg*VT100.font3:		6x10
79d522f475Smrg*fontMenu*font4*Label:	Medium
80d522f475Smrg*VT100.font4:		7x13
81d522f475Smrg*fontMenu*font5*Label:	Large
82d522f475Smrg*VT100.font5:		9x15
83d522f475Smrg*fontMenu*font6*Label:	Huge
84d522f475Smrg*VT100.font6:		10x20
85d522f475Smrg*fontMenu*fontescape*Label:	Escape Sequence
86d522f475Smrg*fontMenu*fontsel*Label:	Selection
87d522f475Smrg!fontescape and fontsel overridden by application
88d522f475Smrg*fontMenu*font-linedrawing*Label: Line-Drawing Characters
89d522f475Smrg*fontMenu*font-doublesize*Label: Doublesized Characters
90d522f475Smrg*fontMenu*font-loadable*Label:	VT220 Soft Fonts
91d522f475Smrg*fontMenu*render-font*Label:	TrueType Fonts
92d522f475Smrg*fontMenu*utf8-mode*Label:	UTF-8
93d522f475Smrg*fontMenu*utf8-title*Label:	UTF-8 Titles
94d522f475Smrg
95b7c89284Ssnj*fontMenu*allow-tcap-ops*Label:	Allow Termcap Ops
96b7c89284Ssnj*fontMenu*allow-font-ops*Label:	Allow Font Ops
97b7c89284Ssnj*fontMenu*allow-title-ops*Label:	Allow Title Ops
98b7c89284Ssnj*fontMenu*allow-window-ops*Label:	Allow Window Ops
99b7c89284Ssnj
100d522f475Smrg*VT100.utf8Fonts.font2:	-misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
101d522f475Smrg*VT100.utf8Fonts.font:	-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
102d522f475Smrg*VT100.utf8Fonts.font3:	-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
103d522f475Smrg*VT100.utf8Fonts.font4:	-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
104d522f475Smrg*VT100.utf8Fonts.font5:	-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
105d522f475Smrg*VT100.utf8Fonts.font6:	-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
106d522f475Smrg
107d522f475Smrg*tekMenu.Label:  Tek Options
108d522f475Smrg*tekMenu*tektextlarge*Label:  Large Characters
109d522f475Smrg*tekMenu*tektext2*Label:  #2 Size Characters
110d522f475Smrg*tekMenu*tektext3*Label:  #3 Size Characters
111d522f475Smrg*tekMenu*tektextsmall*Label:  Small Characters
112d522f475Smrg*tekMenu*tekpage*Label:  PAGE
113d522f475Smrg*tekMenu*tekreset*Label:  RESET
114d522f475Smrg*tekMenu*tekcopy*Label:  COPY
115d522f475Smrg*tekMenu*vtshow*Label:  Show VT Window
116d522f475Smrg*tekMenu*vtmode*Label:  Switch to VT Mode
117d522f475Smrg*tekMenu*tekhide*Label:  Hide Tek Window
118d522f475Smrg
119d522f475Smrg*tek4014*fontLarge: 9x15
120d522f475Smrg*tek4014*font2: 8x13
121d522f475Smrg*tek4014*font3: 6x13
122d522f475Smrg*tek4014*fontSmall: 6x10
123d522f475Smrg
124d522f475Smrg! If xterm is built with a toolbar, the widget hierarchy looks like this,
125d522f475Smrg! showing widget name / class names.  The complete menu hierarchy is built
126d522f475Smrg! at startup because it is needed to make the layout work for the menubar:
127d522f475Smrg!
128d522f475Smrg!	xterm/XTerm
129d522f475Smrg!		form/Form
130d522f475Smrg!			menubar/Box
131d522f475Smrg!				mainMenuButton/MenuButton
132d522f475Smrg!					mainMenu/SimpleMenu
133d522f475Smrg!						menuLabel/SmeBSB
134d522f475Smrg!						toolbar/SmeBSB
135d522f475Smrg!						...
136d522f475Smrg!					vtMenu/SimpleMenu
137d522f475Smrg!						menuLabel/SmeBSB
138d522f475Smrg!						scrollbar/SmeBSB
139d522f475Smrg!						...
140d522f475Smrg!					fontMenu/SimpleMenu
141d522f475Smrg!						menuLabel/SmeBSB
142d522f475Smrg!						fontdefault/SmeBSB
143d522f475Smrg!						...
144d522f475Smrg!					tekMenu/SimpleMenu
145d522f475Smrg!						menuLabel/SmeBSB
146d522f475Smrg!						fontdefault/SmeBSB
147d522f475Smrg!						...
148d522f475Smrg!			vt100/VT100
149d522f475Smrg!			tektronix/TopLevelShell
150d522f475Smrg!				shellext/VendorShellExt
151b7c89284Ssnj!					tek4014/Tek4014
152d522f475Smrg!
153d522f475Smrg! If built without a toolbar, the widget hierarchy is simpler, because there
154d522f475Smrg! is no form, and the popup menu widgets are created only when they are first
155d522f475Smrg! used.
156d522f475Smrg!
157d522f475Smrg!	xterm/XTerm
158d522f475Smrg!		shellext/VendorShellExt
159d522f475Smrg!			mainMenu/SimpleMenu
160d522f475Smrg!				menuLabel/SmeBSB
161d522f475Smrg!				...
162d522f475Smrg!			...
163d522f475Smrg!		vt100/VT100
164d522f475Smrg!		tektronix/TopLevelShell
165d522f475Smrg!			shellext/VendorShellExt
166b7c89284Ssnj!				tek4014/Tek4014
167d522f475Smrg!
168d522f475Smrg! A more complete list of the widget/class names can be obtained using editres
169d522f475Smrg! to dump a file.  Some widget names are not available until the corresponding
170d522f475Smrg! menu has been created.
171d522f475Smrg
172d522f475Smrg! These resources reduce space around the menubar, by eliminating padding in
173d522f475Smrg! the enclosing form (Thickness) and the border of the Box which represents
174d522f475Smrg! the menubar widget.
175d522f475Smrg*form.Thickness: 0
176d522f475Smrg*menubar.borderWidth: 0
177d522f475Smrg
178d522f475Smrg! If we wanted to eliminate the border of the popup menus, we could do this
179d522f475Smrg! instead, since they are children of the menubar:
180d522f475Smrg!*menubar*borderWidth: 0
181d522f475Smrg
182d522f475Smrg! Eliminate the border of the buttons in the menubar, so the only line around
183d522f475Smrg! the text is for the highlighted button:
184d522f475Smrg*MenuButton*borderWidth: 0
185d522f475Smrg
186d522f475Smrg! Set a border for the menus to make them simpler to distinguish against the
187d522f475Smrg! vt100 widget:
188d522f475Smrg*SimpleMenu*borderWidth: 2
189d522f475Smrg
190d522f475Smrg! Here is a pattern that is useful for double-clicking on a URL:
191d522f475Smrg!*charClass: 33:48,35:48,37-38:48,43-47:48,58:48,61:48,63-64:48,95:48,126:48
192d522f475Smrg!
193d522f475Smrg! Alternatively,
194d522f475Smrg!*on2Clicks: regex [[:alpha:]]+://([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
195bcf4e684Schristos
196bcf4e684Schristos*allowWindowOps: false
1978a3bdf72Schristos*pointerMode: 0
198b7c89284Ssnj
199b7c89284Ssnj! VT100s and similar terminals recognize escape sequences and control
200b7c89284Ssnj! characters to which they reply to the host with other escape sequences,
201b7c89284Ssnj! to provide information.  The "resize" program uses this feature.
202b7c89284Ssnj!
203b7c89284Ssnj! In addition, xterm recognizes several escape sequences which can be used to
204b7c89284Ssnj! set fonts, window properties, return settings via escape sequences.  Some
205b7c89284Ssnj! find these useful; others are concerned with the possibility of unexpected
206b7c89284Ssnj! inputs.
207b7c89284Ssnj!
208b7c89284Ssnj! All of these features can be enabled or disabled via menus.
209b7c89284Ssnj!
210b7c89284Ssnj! Depending on your environment, you may wish to disable those by default by
211b7c89284Ssnj! uncommenting one or more of the resource settings below:
212b7c89284Ssnj!*allowFontOps: false
213b7c89284Ssnj!*allowTcapOps: false
214b7c89284Ssnj!*allowTitleOps: false
215b7c89284Ssnj!*allowWindowOps: false
216