Finally a total solution to xterm/emacs behaving like Terminal.app with Option as meta and more. . .
Finally a total solution to xterm/emacs behaving like Terminal.app with Option as meta and more. . .
- Subject: Finally a total solution to xterm/emacs behaving like Terminal.app with Option as meta and more. . .
- From: mark lacas <email@hidden>
- Date: Tue, 21 Jan 2003 09:44:44 -0800
For everyone who responded and everyone who wants to get X11, emacs and
xterm working as it does in Terminal.app. . .
Here is what I finally had to do to get it all working properly:
First of all, here is my .xinitrc file:
(I took out all of the blank lines for compactness)
______________________________
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
# . /sw/bin/init.sh - I removed Fink for the time being. . .
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
xterm -bg black -fg white -geometry 140x40+1+26 -ls -sb -rightbar -sl
10000 &
exec quartz-wm
______________________________________________________________
My .Xmodmap file:
______________________________
clear mod1
clear mod2
keycode 66 = Meta_L
keycode 63 = Alt_L
add mod1 = Alt_L Alt_R
add mod2 = Meta_L
keycode 59 = Delete
______________________________________________________________
My .Xresources file:
(the last line is really important. . .)
______________________________
XTerm*DeleteIsDEL: true
XTerm*BackarrowKey: false
XTerm*TtyModes: erase ^?
XTerm*VT100.metaSendsEscape: True
## 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\
Meta <KeyPress> K: clear-saved-lines() \n\
Meta <KeyUp> K: send-signal(int) \n\
Meta <KeyPress> P: print() \n\
Meta <KeyPress> minus: smaller-vt-font() \n\
Meta <KeyPress> KP_Subtract: smaller-vt-font() \n\
Meta <KeyPress> plus: larger-vt-font() \n\
Meta <KeyPress> KP_Add: larger-vt-font() \n\
Meta <KeyPress> M: iconify() \n\
Alt <KeyPress> V: insert-selection(PRIMARY,
CUT_BUFFER0) \n\
______________________________________________________________
Had to add this to my .emacs file:
______________________________
(setq mac-command-key-is-meta nil)
______________________________________________________________
Finally, I had to do this:
______________________________
1) open /Applications/X11.app/Contents/Resources/English.lproj/main.nib
in interface builder.
2) select the main menu instance and from there the edit menu. in the
inspector remove the key equivalent 'v' for 'paste' so that there is no
more key assigned to 'paste'
3) save the .nib
______________________________________________________________
Wow, that was really a lot to get the terminal and emacs in X11 to be
exactly like the Terminal.app, but it's all now working.
Again, thanks for all your help!
ml
On Monday, January 13, 2003, at 02:56 PM, Sean Fagan wrote:
On Monday, January 13, 2003, at 02:53 PM, mark lacas wrote:
Let me play with this a little and if I don't get it working, I'll
get back to you and let you know.
Well, let me know if you *do* get it working :).
Thanks so much for your quick replys,
No sweat. I just hope it ends up being easily solved :).
Sean.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.