|
|
Log in / Subscribe / Register

Configurability

Configurability

Posted Jun 5, 2004 13:12 UTC (Sat) by dan_b (guest, #22105)
Parent article: The Grumpy Editor's guide to terminal emulators

In the Unix tradition of cargo-culting configuration files, I've had this in my .Xdefaults for something over a decade now

XTerm*VT100*translations: #override \
Shift<Key>Return: string(" &") string(0x0A) \n\
Meta<Key>Return: string(" | less") string(0x0A) \n\
~Shift<Key>Prior: scroll-back(1,page) \n\
~Shift<Key>Next: scroll-forw(1,page) \n\
Shift<Key>Prior: scroll-back(1) \n\
Shift<Key>Next: scroll-forw(1) \n\
<Key>Delete: string(0x1b) string("[2~") \n\
<Key>BackSpace: string(0x7f)

(watch out for whitespace munging: all lines but the first are indented one tab)


The Delete and Backspace bindings are probably not doing anything useful any more on a modern system, but pressing shift+return to background a job is now bound so deeply into my finger macros that I'm unlikely to be moving from xterm any time soon just for that reason alone


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds