|
|
|
|
#1 |
|
Prospect
Join Date: May 2005
Posts: 15
|
Hi X11 users,
I have been using the Apple Aqua X11 but found the default font size (14) for xterm too small. So I would like to set it to be "Large" (in VT fonts menu) as default. I have been looking at the file /usr/X11R6/lib/X11/app-defaults/XTerm but couldn't find out how to change the default font size. Does anybody know how to do it? It would also be great if I could change some default settings in the Main Options Menu (like **** sends Escape, Delete is DEL, etc..). Thanks, Liang |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,233
|
lhuang,
1- You can try 'Ctrl-Apple-Click' on the xterm window to call the font menu to change the size from there. Or write in your ~/.xinitrc file, for example: xterm -geometry 72x34+100+40 -fn *-fixed-*-*-*-20-* 2- Also, do 'Ctrl-click' on the xterm window to call the Main Options menu, and try selecting '****-esc' and 'delete-is-del'. Or write in your ~/.Xdefaults file, for example: Code:
*XTerm*deleteIsDEL: true XTerm*font: *-fixed-*-*-*-20-* XTerm*boldFont: *-fixed-*-*-*-20-* This is what I have in my ~/.Xdefaults file: Code:
## XTERM SETTINGS
## see /usr/X11R6/lib/X11/doc/html/xterm.1.html
## or man xterm
*XTerm*deleteIsDEL: true
xterm*saveLines: 10000
xterm*scrollBar: true
xterm*rightScrollBar: true
xterm*jumpScroll: true
xterm*cursorColor: red
xterm*colorBD: darkblue
xterm*colorBDMode: true
xterm*highlightColor: yellow
xterm*activeIcon: false
# xterm*awaitInput: true
xterm*scrollTtyOutput: false
xterm*scrollKey: true
xterm*Background: DarkSlateBlue
xterm*Foreground: black
## TERMINAL KEY SETTINGS
## Adjust to OSX Terminal.app behaviour
*VT100.translations: #override\
<Key>Prior: scroll-back(1,pages) \n\
<Key>Next: scroll-forw(1,pages)\n\
**** <Key> K: send-signal(int) clear-saved-lines() \n\
**** <Key> P: print() \n\
**** <Key> minus: smaller-vt-font() \n\
**** <Key> KP_Subtract: smaller-vt-font() \n\
**** <Key> plus: larger-vt-font() \n\
**** <Key> KP_Add: larger-vt-font() \n\
**** <Key> C: select-cursor-start() \
select-cursor-end(PRIMARY, CUT_BUFFER0) \n\
**** <Key> V: insert-selection(PRIMARY, CUT_BUFFER0) \n\
**** <Key> M: iconify() \n\
## EXTRA SETTINGS FOR XAW SCROLLBAR
## see /usr/X11R6/include/X11/Xaw/Scrollbar.h
## for full reference of available recources
*Scrollbar.background: gray50
*Scrollbar.foreground: gray50
*Scrollbar.borderWidth: 0
*Scrollbar.shadowWidth: 0
*Scrollbar.thickness: 14
*Scrollbar.minimumThumb: 20
*Scrollbar.backgroundPixmap: gradient:horizontal?dimension=14&start=gray80&end=white
*Scrollbar.borderPixmap: gradient:horizontal?dimension=14&start=white&end=grey80
*Scrollbar.translations: #override\
<Btn2Down>: StartScroll(Forward) \n\
<Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
<Btn3Down>: StartScroll(Backward) \n\
<Btn1Motion>: MoveThumb() NotifyThumb() \n\
<BtnUp>: NotifyScroll(Proportional) EndScroll()
|
|
|
|
|
|
#3 |
|
Prospect
Join Date: May 2005
Posts: 15
|
Hi sao,
Your solution works pretty well! Thanks! Just... the <****> V (for paste) still doesn't work on X11 xterm. It seems the Menu item "Paste" has been disabled by Apple. and I wish I could get the list of resource names like "XTerm*deleteIsDel"... e.g., I want to set "MetaSendsEscape" to be true and I tried to add a line in .Xdefaults: *XTerm*metaSendsEscape: true |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,233
|
lhuang,
Try including the following line in ~/.Xdefaults: XTerm*VT100.metaSendsEscape: True (will take effect for the next xterm that's started) Please, read the following old posts with similar subject: http://www.mail-archive.com/fink-beg.../msg14131.html http://forums.macosxhints.com/archiv...hp/t-8451.html . Last edited by sao; 05-23-2005 at 12:27 PM. |
|
|
|
|
|
#5 | |||||||||||||||||||||||
|
Prospect
Join Date: May 2005
Posts: 15
|
Hi sao, I tried and found this line should actually be inserted to ~/.Xresources, not ~/.Xdefaults. Thanks anyway1 |
|||||||||||||||||||||||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|