Project: Auto-Shrinking xterm
Most people just use X resources to make simple modifications to colors or fonts. Even then, they generally just copy the X resources from another user without ever really understanding what the resources are doing. In this short project, we'll investigate an interesting set of resources in xterm: Translations.
Translations in xterm enable you to execute certain actions in response to events. Often these events are key presses or mouse clicks (a good way to build macros), but there are other events such as when the mouse enters or leaves the window.
Say you want the xterm to shrink whenever the mouse leaves it and then grow when the mouse enters. This way, you could have many xterms on the screen and could somewhat ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access