Code Yarns ‍👨‍💻
Tech BlogPersonal Blog


📅 2017-Jul-27 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ xterm ⬩ 📚 Archive

  XTerm is a classic terminal emulator for the X window system. It is so old that it is in fact a bit older than the X window system itself! Today it ships as one of the quintessential programs of the X window system. Here are some factoids I discovered about XTerm that may interest you to use it:

! =============================================================================
! XTerm settings
! =============================================================================

! Use white-on-black colors
XTerm.vt100.reverseVideo: true
UXTerm.vt100.reverseVideo: true

! XTerm already has 256 colors support
! We ask it to set the correct $TERM
XTerm.termName: xterm-256color
UXTerm.termName: xterm-256color

! Start with maximized window
xterm*maximized: true

! Make Alt key behave like in other terminals
XTerm.vt100.metaSendsEscape: true
UXTerm.vt100.metaSendsEscape: true

! Number of lines to save for scrolling
XTerm.vt100.saveLines: 100000
UXTerm.vt100.saveLines: 100000

! Increase-decrease font size using Ctrl-/+
xterm*VT100.Translations: #override \
    Ctrl <Key> minus: smaller-vt-font() \n\
    Ctrl <Key> plus: larger-vt-font()

Note that the settings are applied to the app only at the start of the X server. If you want to apply them right now, use the xrdb app as described here. References:

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email