!
! XTerm
!

! Override $TERM to tell the shell we support color
XTerm.termName: xterm-256color

! Override builtin icon
XTerm.iconHint: mini.xterm

! Use a TrueType font
XTerm.vt100.faceName: Hack
XTerm.vt100.faceSize: 8
XTerm.vt100.faceSize1: 4
XTerm.vt100.faceSize2: 6
XTerm.vt100.faceSize3: 10
XTerm.vt100.faceSize4: 12
XTerm.vt100.faceSize5: 16
XTerm.vt100.faceSize6: 20
XTerm.vt100.faceSize7: 24

! Use Tango color palette from GNOME (nicer to the eyes)
XTerm.vt100.color0: rgb:2E/34/36
XTerm.vt100.color1: rgb:CC/00/00
XTerm.vt100.color2: rgb:4E/9A/06
XTerm.vt100.color3: rgb:C4/A0/00
XTerm.vt100.color4: rgb:34/65/A4
XTerm.vt100.color5: rgb:75/50/7B
XTerm.vt100.color6: rgb:06/98/9A
XTerm.vt100.color7: rgb:D3/D7/CF
XTerm.vt100.color8: rgb:55/57/53
XTerm.vt100.color9: rgb:EF/29/29
XTerm.vt100.color10: rgb:8A/E2/34
XTerm.vt100.color11: rgb:FC/E9/4F
XTerm.vt100.color12: rgb:72/9F/CF
XTerm.vt100.color13: rgb:AD/7F/A8
XTerm.vt100.color14: rgb:34/E2/E2
XTerm.vt100.color15: rgb:EE/EE/EC

! Disable using different colors for bold
XTerm.vt100.boldColors: false

! Enable cursor blinking
XTerm.vt100.cursorBlink: true

! Add keybindings:
! - Change font size with Ctrl++, Ctrl+-, Ctrl+0
! - Copy/paste with Ctrl+Shift+C/V
! - Open URI with Ctrl-Shift-Btn1
XTerm.vt100.Translations: #override \
  Ctrl <Key> minus:	smaller-vt-font() \n\
  Ctrl <Key> plus:	larger-vt-font() \n\
  Ctrl <Key> 0:		set-vt-font(d) \n\
  Ctrl Shift <Key>V:	insert-selection(CLIPBOARD) \n\
  Ctrl Shift <Key>C:	copy-selection(CLIPBOARD) \n\
  Ctrl Shift <Btn1Up>:	exec-formatted("xdg-open '%t'", PRIMARY)

! Increase scrolling buffer
XTerm.vt100.saveLines: 100000

! Display scroll bar
!XTerm.vt100.scrollBar: true
!XTerm.vt100.rightScrollBar: true

! Scroll on key press, not on TTY output
XTerm.vt100.scrollKey: true
XTerm.vt100.scrollTtyOutput: false
XTerm.vt100.autoScrollLock: true

! Send cursor up/down key when scrolling in alternate buffer screen
XTerm.vt100.alternateScroll: true
