XTerm.ad revision bcf4e684
1d522f475Smrg! $XTermId: XTerm.ad,v 1.85 2007/11/26 18:42:37 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 95d522f475Smrg*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1 96d522f475Smrg*VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 97d522f475Smrg*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 98d522f475Smrg*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1 99d522f475Smrg*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 100d522f475Smrg*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1 101d522f475Smrg 102d522f475Smrg*tekMenu.Label: Tek Options 103d522f475Smrg*tekMenu*tektextlarge*Label: Large Characters 104d522f475Smrg*tekMenu*tektext2*Label: #2 Size Characters 105d522f475Smrg*tekMenu*tektext3*Label: #3 Size Characters 106d522f475Smrg*tekMenu*tektextsmall*Label: Small Characters 107d522f475Smrg*tekMenu*tekpage*Label: PAGE 108d522f475Smrg*tekMenu*tekreset*Label: RESET 109d522f475Smrg*tekMenu*tekcopy*Label: COPY 110d522f475Smrg*tekMenu*vtshow*Label: Show VT Window 111d522f475Smrg*tekMenu*vtmode*Label: Switch to VT Mode 112d522f475Smrg*tekMenu*tekhide*Label: Hide Tek Window 113d522f475Smrg 114d522f475Smrg*tek4014*fontLarge: 9x15 115d522f475Smrg*tek4014*font2: 8x13 116d522f475Smrg*tek4014*font3: 6x13 117d522f475Smrg*tek4014*fontSmall: 6x10 118d522f475Smrg 119d522f475Smrg! If xterm is built with a toolbar, the widget hierarchy looks like this, 120d522f475Smrg! showing widget name / class names. The complete menu hierarchy is built 121d522f475Smrg! at startup because it is needed to make the layout work for the menubar: 122d522f475Smrg! 123d522f475Smrg! xterm/XTerm 124d522f475Smrg! form/Form 125d522f475Smrg! menubar/Box 126d522f475Smrg! mainMenuButton/MenuButton 127d522f475Smrg! mainMenu/SimpleMenu 128d522f475Smrg! menuLabel/SmeBSB 129d522f475Smrg! toolbar/SmeBSB 130d522f475Smrg! ... 131d522f475Smrg! vtMenu/SimpleMenu 132d522f475Smrg! menuLabel/SmeBSB 133d522f475Smrg! scrollbar/SmeBSB 134d522f475Smrg! ... 135d522f475Smrg! fontMenu/SimpleMenu 136d522f475Smrg! menuLabel/SmeBSB 137d522f475Smrg! fontdefault/SmeBSB 138d522f475Smrg! ... 139d522f475Smrg! tekMenu/SimpleMenu 140d522f475Smrg! menuLabel/SmeBSB 141d522f475Smrg! fontdefault/SmeBSB 142d522f475Smrg! ... 143d522f475Smrg! vt100/VT100 144d522f475Smrg! tektronix/TopLevelShell 145d522f475Smrg! shellext/VendorShellExt 146d522f475Smrg! tek4014/Tek4014 147d522f475Smrg! 148d522f475Smrg! If built without a toolbar, the widget hierarchy is simpler, because there 149d522f475Smrg! is no form, and the popup menu widgets are created only when they are first 150d522f475Smrg! used. 151d522f475Smrg! 152d522f475Smrg! xterm/XTerm 153d522f475Smrg! shellext/VendorShellExt 154d522f475Smrg! mainMenu/SimpleMenu 155d522f475Smrg! menuLabel/SmeBSB 156d522f475Smrg! ... 157d522f475Smrg! ... 158d522f475Smrg! vt100/VT100 159d522f475Smrg! tektronix/TopLevelShell 160d522f475Smrg! shellext/VendorShellExt 161d522f475Smrg! tek4014/Tek4014 162d522f475Smrg! 163d522f475Smrg! A more complete list of the widget/class names can be obtained using editres 164d522f475Smrg! to dump a file. Some widget names are not available until the corresponding 165d522f475Smrg! menu has been created. 166d522f475Smrg 167d522f475Smrg! These resources reduce space around the menubar, by eliminating padding in 168d522f475Smrg! the enclosing form (Thickness) and the border of the Box which represents 169d522f475Smrg! the menubar widget. 170d522f475Smrg*form.Thickness: 0 171d522f475Smrg*menubar.borderWidth: 0 172d522f475Smrg 173d522f475Smrg! If we wanted to eliminate the border of the popup menus, we could do this 174d522f475Smrg! instead, since they are children of the menubar: 175d522f475Smrg!*menubar*borderWidth: 0 176d522f475Smrg 177d522f475Smrg! Eliminate the border of the buttons in the menubar, so the only line around 178d522f475Smrg! the text is for the highlighted button: 179d522f475Smrg*MenuButton*borderWidth: 0 180d522f475Smrg 181d522f475Smrg! Set a border for the menus to make them simpler to distinguish against the 182d522f475Smrg! vt100 widget: 183d522f475Smrg*SimpleMenu*borderWidth: 2 184d522f475Smrg 185d522f475Smrg! Here is a pattern that is useful for double-clicking on a URL: 186d522f475Smrg!*charClass: 33:48,35:48,37-38:48,43-47:48,58:48,61:48,63-64:48,95:48,126:48 187d522f475Smrg! 188d522f475Smrg! Alternatively, 189d522f475Smrg!*on2Clicks: regex [[:alpha:]]+://([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+ 190bcf4e684Schristos 191bcf4e684Schristos*allowWindowOps: false 192bcf4e684Schristos*pointerMode: never 193