Re: Finally a total solution to xterm/emacs behaving like Terminal.app with Option as meta and more. . .
Re: Finally a total solution to xterm/emacs behaving like Terminal.app with Option as meta and more. . .
- Subject: Re: Finally a total solution to xterm/emacs behaving like Terminal.app with Option as meta and more. . .
- From: mathias meyer <email@hidden>
- Date: Wed, 22 Jan 2003 23:12:04 +0100
marc
i somehow reckognise a few lines i posted to the forum a week or so ago
in your mail. first of all i'm happy that this was of any use for
someone. additionaly, as i have found out a little improvement on that,
have some more comments and a question myself, i will just write a few
lines again...
## 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\
the two lines:
Meta <KeyPress> K: clear-saved-lines() \n\
Meta <KeyUp> K: send-signal(int) \n\
should better be written as:
Meta <Key> K: send-signal(int) clear-saved-lines() \n\
still i'm not too happy myself with that. what i wanted is the apple-k
effect from terminal app. this one first resets the whole terminal,
this means that the commend you were just typing will be lost. in
terminal.app only the scrollback is cleared. anyone can help me here?
anyone annoyed that with a one button mouse (working lots on a laptop
like me?) you can't (without modifier key) scroll the xterm scrollbar
continuously? here's the trick:
*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()
this just swaps button 1 and 2. note: this does not affect the ability
to pase with button 2 as before!
and in case you want to make the scrollbar look terminal.app-ish do
that:
## EXTRA SETTINGS FOR XAW SCROLLBAR
## see /usr/X11R6/include/X11/Xaw/Scrollbar.h
*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
this all goes in your .Xdefaults file as well. if you now set the
default font in terminal.app (monaco 10pt) to use a vertical spacing of
only 0.9 (can be done in the window settings dialog) xterm and
terminal. app are the same size, nearly look the same and on my ti-book
i can place two terminals in a column without interferring with the
dock.
and as i said: if anyone comes up with better solutions i'd be happy to
know...
mathias
_______________________________________________
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.