Re: Eliminating the xterm
Re: Eliminating the xterm
- Subject: Re: Eliminating the xterm
- From: Bill Campbell <email@hidden>
- Date: Sat, 17 Nov 2007 14:04:06 -0800
- Mail-followup-to: email@hidden
On Sat, Nov 17, 2007, Merton Campbell Crockett wrote:
>
>On 17 Nov 2007, at 10:15:27, Bill Campbell wrote:
>
>>On Sat, Nov 17, 2007, Francisco De La Cruz wrote:
>>
>>>Ok, it is not that I don't want the xterm to launch (I actually
>>>want it),
>>>after all it is the only way to know that X11 is running. It's
>>>just that I
>>>want it to honor my customizations in ~/.Xresources and if it does
>>>the same
>>>for my ~/.bash_profile great.
>>
>>As I have said repeatedly, any xterm will read your ~/XTerm file
>>when it starts, and it is a subset of the ~/.Xresources file with
>>entries specific to xterms.
>>
>>Try this, then stop and start X11 with the default xterm.
>>
>>grep -i xterm ~/.Xresources > ~/XTerm
>
>Where is this documented?
Documentation? We don't need no steeenkin documentation :-)
I first learned about this years ago when running SCO OpenDesktop
with the Motif Window Manager. One could create a ~/Mwm file
with the resources specific to mwm, an ~/XTerm file for xterms.
I suspect this in buried in the libX11 somewhere, and that any
program that understands the standard app-defaults setting of X
resources will look in ~/<class> where class is the primary name
for the program. I looked for occurrences of XTerm in the source
tree of xterm using this command:
find -type f | xargs pcregrep '\bXTerm\b' | less
>In addition, where is the documentation that describes the variables,
>their values, etc. that are reported by defaults for X11?
Most of what I've learned about the options come from e-mails to lists like
this where people gave examples. One can also look at the X11/app-
defaults/XTerm* files for information.
My ~/XTerm file is attached, most of which is commented out. My
localizations are near the bottom. The main things I'm doing are:
+ Set the font size to the largest available.
+ Change the default pointer shape to an arrow as I find it far easier
to see then the little vertical marker.
+ Change the cursor color to red so that I can read the characters in
reverse video sections (it's kinda hard to read black characters when
the background color is black :-).
+ Try to force the xterm to use ctrl-H for the backspace key instead of
the dreaded DECish DEL character.
+ The last charClass line enables double-clicking to highlight entire
*nix paths and similar things instead of stopping on the ``/''
characters. No, I don't understand what it means. I got it recently
from another mailing list, and it Just Works(tm).
Bill
--
INTERNET: email@hidden Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
We believe...that a mugger will kill you in the half-second it takes to
draw from the holster, but won't harm you while you dial the police on your
cell phone, talk to the dispatcher and wait half an hour for officers to
arrive. -- Gun-Control Net-work Credo
!
!!
!! SAMPLE .Xdefaults / app-defaults RESOURCE SPECIFICATIONS FOR XTERM
!!
!
!
!
!!
!! set default tty mode.
!!
!
!XTerm*ttyModes: intr ^? erase ^H kill ^U
!
!
!
!!
!! modify mouse functionality so that "Shift <Btn1Down>" has the same
!! functionality as "<Btn2Down>".
!!
!! The Ctrl<Btn2Down> xterm window menu CANNOT be popped up using
!! Shift Ctrl<Btn1Down>
!!
!
!*VT100*translations: #override\
! Shift <Btn1Down>: insert-selection(PRIMARY, CUT_BUFFER0) \n\
! Button1 <Btn3Down>: insert-selection(PRIMARY, CUT_BUFFER0)
!
!*VT100*Scrollbar*translations: #override\
! Shift <Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
! Shift <Btn1Motion>: MoveThumb() NotifyThumb() \n\
! Button1 <Btn3Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
! Button1 <Btn3Motion>: MoveThumb() NotifyThumb()
!
!
!
!!
!! menu resources
!!
!
!*SimpleMenu*BackingStore: NotUseful
!*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso*-*
!*SimpleMenu*menuLabel.vertSpace: 100
!*SimpleMenu*HorizontalMargins: 16
!*SimpleMenu*Sme.height: 16
!
!*SimpleMenu*Cursor: left_ptr
!*mainMenu.Label: Main Options
!*mainMenu*securekbd*Label: Secure Keyboard
!*mainMenu*allowsends*Label: Allow SendEvents
!*mainMenu*logging*Label: Log to File
!*mainMenu*redraw*Label: Redraw Window
!*mainMenu*suspend*Label: Send STOP Signal
!*mainMenu*continue*Label: Send CONT Signal
!*mainMenu*interrupt*Label: Send INT Signal
!*mainMenu*hangup*Label: Send HUP Signal
!*mainMenu*terminate*Label: Send TERM Signal
!*mainMenu*kill*Label: Send KILL Signal
!*mainMenu*quit*Label: Quit
!
!*vtMenu.Label: VT Options
!*vtMenu*scrollbar*Label: Enable Scrollbar
!*vtMenu*jumpscroll*Label: Enable Jump Scroll
!*vtMenu*reversevideo*Label: Enable Reverse Video
!*vtMenu*autowrap*Label: Enable Auto Wraparound
!*vtMenu*reversewrap*Label: Enable Reverse Wraparound
!*vtMenu*autolinefeed*Label: Enable Auto Linefeed
!*vtMenu*appcursor*Label: Enable Application Cursor Keys
!*vtMenu*appkeypad*Label: Enable Application Keypad
!*vtMenu*scrollkey*Label: Scroll to Bottom on Key Press
!*vtMenu*scrollttyoutput*Label: Scroll to Bottom on Tty Output
!*vtMenu*allow132*Label: Allow 80/132 Column Switching
!*vtMenu*cursesemul*Label: Enable Curses Emulation
!*vtMenu*visualbell*Label: Enable Visual Bell
!*vtMenu*marginbell*Label: Enable Margin Bell
!*vtMenu*altscreen*Label: Show Alternate Screen
!*vtMenu*softreset*Label: Do Soft Reset
!*vtMenu*hardreset*Label: Do Full Reset
!*vtMenu*tekshow*Label: Show Tek Window
!*vtMenu*tekmode*Label: Switch to Tek Mode
!*vtMenu*vthide*Label: Hide VT Window
!
!*fontMenu.Label: VT Fonts
!*fontMenu*fontdefault*Label: Default
!*fontMenu*font1*Label: 6x10
!*VT100*font1: 6x10
!*fontMenu*font2*Label: 6x12
!*VT100*font2: 6x12
!*fontMenu*font3*Label: 9x15
!*VT100*font3: 9x15
!*fontMenu*font4*Label: 10x20
!*VT100*font4: 10x20
!*fontMenu*fontescape*Label: Escape Sequence
!*fontMenu*fontsel*Label: Selection
!!fontescape and fontsel overridden by application
!
!*tekMenu.Label: Tek Options
!*tekMenu*tektextlarge*Label: Large Characters
!*tekMenu*tektext2*Label: #2 Size Characters
!*tekMenu*tektext3*Label: #3 Size Characters
!*tekMenu*tektextsmall*Label: Small Characters
!*tekMenu*tekpage*Label: PAGE
!*tekMenu*tekreset*Label: RESET
!*tekMenu*tekcopy*Label: COPY
!*tekMenu*vtshow*Label: Show VT Window
!*tekMenu*vtmode*Label: Switch to VT Mode
!*tekMenu*tekhide*Label: Hide Tek Window
!
*tek4014*fontLarge: 10x20
*tek4014*font2: 9x15
*tek4014*font3: 6x13
*tek4014*fontSmall: 6x10
XTerm*font: 10x20
XTerm*pointerShape: arrow
XTerm*termName: xterm
XTerm*blink: true
XTerm*loginShell: true
XTerm*scrollBar: true
! XTerm*cursorColor: SlateBlue
XTerm*cursorColor: red3
XTerm*backarrowKeyIsErase: false
!XTerm*termName: xterm-color
XTerm*background: Grey95
!XTerm*background: AntiqueWhite
!XTerm*background: seashell2
!XTerm*background: ivory2
XTerm*appkeypad: false
XTerm*charClass: 33:48,37:48,43:48,45-47:48,64:48,126:48,95:48
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden