Go Back   The macosxhints Forums > OS X Help Requests > UNIX - X11



Reply
 
Thread Tools Rate Thread Display Modes
Old 05-22-2005, 11:08 PM   #1
lhuang
Prospect
 
Join Date: May 2005
Posts: 15
Question how to set the default font size in Aqua xterm?

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
lhuang is offline   Reply With Quote
Old 05-23-2005, 03:06 AM   #2
sao
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()
sao is offline   Reply With Quote
Old 05-23-2005, 10:44 AM   #3
lhuang
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
lhuang is offline   Reply With Quote
Old 05-23-2005, 12:11 PM   #4
sao
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.
sao is offline   Reply With Quote
Old 05-25-2005, 12:55 PM   #5
lhuang
Prospect
 
Join Date: May 2005
Posts: 15
Quote:
Originally Posted by sao
lhuang,

Try including the following line in ~/.Xdefaults:

XTerm*VT100.metaSendsEscape: True

.

Hi sao,

I tried and found this line should actually be inserted to ~/.Xresources, not ~/.Xdefaults.

Thanks anyway1
lhuang is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.