Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !Colour Settings
- xterm.vt100.reverseVideo: false
- xterm.vt100.background: Black
- xterm.vt100.foreground: White
- xterm.vt100.colorBD: Yellow
- xterm.vt100.colorUL: Green
- !xterm.vt100.veryBoldColors:4
- !xterm.vt100.colorRVMode:True
- !xterm.vt100.colorRV:XtDefaultForeground
- xterm.vt100.cursorColor: firebrick
- !hotpink
- xterm.vt100.cursorBlink: true
- xterm.vt100.highlightColorMode: true
- xterm.vt100.highlightReverse: true
- xterm.vt100.highlightColor: steelblue
- xterm.vt100.highlightTextColor: floralwhite
- !xterm.vt100.highlightSelection: False
- !xterm.vt100.reverseVideo:False
- !Mouse Pointer ( Does not seem to work!! )
- !xterm.vt100.pointerColor:Navy
- !xterm.vt100.pointerColorBackground:Green
- !xterm.vt100.pointerMode:0
- !xterm.vt100.pointerShape:bogosity
- !Allow XTerm to report the TERM variable correctly.
- xterm.termName: xterm-256color
- !xterm.termName: linux
- ! ALT and META keys
- ! Note that the Alt key is not necessarily the same as the Meta modifier.
- ! The xmodmap utility lists your key modifiers. X defines modifiers
- ! and XTerm inspects the same information.
- !
- ! Treat Alt-key as if it were the Meta-key
- ! (Default: False)
- !xterm.vt100.altIsNotMeta:False
- ! From Arch wiki on XTerm
- !
- ! Alt characters (a character combined with the modifier associated with
- ! left/right Alt-keys) are converted into a two-character sequence with
- ! the character itself preceded by ESC (Default: False)
- ! ( Only if altIsNotMeta is set )
- !xterm.vt100.altSendsEscape:False
- !
- ! Make 'Meta' key behave as on other terminal emulators
- ! ( Only if altIsNotMeta is set, i.e. is set to false (Default) )
- !xterm.vt100.metaSendsEscape:True
- ! NUMLOCK Key
- ! Check if it is a Modifier with xmodmap
- xterm.vt100.numLock: true
- ! Give preference to Mod Keys
- ! Override the numLock resource, telling xterm
- ! to use the Alt and Meta modifiers to construct
- ! parameters for function key
- !xterm.vt100.alwaysUseMods:False
- ! Fix the Backspace key
- ! On Arch Linux, xterm sends ^H key when backspace is pressed.
- ! This breaks the Ctrl+H key combination on Emacs
- !xterm.vt100.backarrowKey: false
- !xterm.vt100.ttyModes: erase ^?
- ! from Arch Wiki on XTerm
- !Bell
- xterm.vt100.visualBell: true
- xterm.vt100.visualBellLine: true
- !xterm.vt100.marginbell:False
- !Saved lines
- xterm.vt100.saveLines: 9000000
- !Geometry
- xterm.vt100.geometry: 86x40
- ! Try 85x because there is 5 columns reserved
- ! for line numbers set in vim man pager config
- !Scrollbar
- xterm.vt100.scrollBar: true
- xterm.vt100.scrollbar.width: 14
- xterm.vt100.scrollLines: 7
- xterm.vt100.scrollTtyOutput: false
- ! Faster scroll for XTerm (multiple lines per time)
- xterm.vt100.jumpScroll: true
- ! Modifies the effect of jump scroll (jumpScroll) by suppressing
- !screen refreshes for the special case when output to the screen
- !has completely shifted the contents off-screen.
- xterm.vt100.fastScroll: true
- !OBS: Set Keybinding: Shift+PgUp/PgDown
- ! Multi Scroll indicates XTerm may scroll asynchronously,
- ! meaning that the screen does not have to be kept completely up to date
- ! while scrolling. This allows XTerm to run faster when network latencies
- ! are very high and is typically useful when running across a very large
- ! internet or many gateways.
- xterm.vt100.multiScroll: true
- ! Control sequences that set/query the Scroll Lock key should be allowed,
- ! as well as whether the Scroll Lock key responds to user's keypress.
- xterm.vt100.allowScrollLock: true
- ! Whether to display a box outlining places where a character
- ! has been used that the font does not represent.
- xterm.vt100.showMissingGlyphs: true
- ! About XTerm Wrapping
- ! Because of the wrapping behavior, you would occasionally have to
- ! repaint the screen when using a text editor with the “ansi” description
- ! Check custom keybindings!
- !Border
- xterm.vt100.colorInnerBorder: true
- xterm.vt100.borderColor: #000030
- xterm.vt100.internalBorder: 4
- ! Enable/Disable ToolBar from appearing
- ! (Does not work, even with keybinding set!)
- ! ( Always set to True)
- ! xterm.vt100.toolBar: true
- ! Also should probably add an entry to tranlations:
- !Ctrl <key>8: set-toolbar(toggle)
- !Adjust line spacing
- ! ( May be a hack for certain fonts, too)
- !xterm.vt100.scaleHeight: 1.01
- !Fixed XTerm Title
- !Bash can also modify this setting
- !xterm.title
- ! Alternate Screen
- ! Check toggle in Keybindings
- ! Default is to Ctrl-middle-click and toggle Alternate Screen
- ! Bash Defaults:
- ! Ctrl+S stops output to screen but still receives inputs;
- ! Ctrl-Z suspend process and put in background
- ! Ctrl-Q resumes output to screen ( restarts flow-control)
- !FONTS
- ! Bitmap (.font) sets boldFont resource and is the deafult font used
- !
- xterm*font: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
- !! Good: -misc-hack-medium-r-normal--4-0-0-0-m-0-iso10646-1
- !! Plus: xterm*font: 7x14
- ! -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
- ! -misc-inconsolata-medium-r-normal--14-0-0-0-m-0-iso10646-1
- !-misc-ubuntu mono-medium-r-normal--14-0-0-0-m-0-iso10646-1
- ! -misc-dejavu sans mono-medium-r-normal--14-0-0-0-m-0-iso10646-1
- !xterm*font: *-fixed-*-*-18-*-*
- !xterm*font: 7x14
- !xlsfonts to check which bitmaps fonts are available
- !https://sites.google.com/site/ongytenes/code/xterm-configuration-tips
- ! Bitmap Font Sizes
- !Unreadable
- !xterm*font1: -xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso10646-1
- !Tiny
- xterm*font2: -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
- !Small
- xterm*font3: -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1
- !Medium
- xterm*font4: -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
- !Large
- xterm*font5: -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso10646-1
- !Huge
- xterm*font6: 9x15bold
- ! Use TTF Fonts instead
- !XTerm*faceName: TerminessTTF Nerd Font Mono
- !Noto Sans Mono Condensed
- !! Hack Nerd Font Mono
- !!GoMono Nerd Font Mono
- !Roboto Condensed
- ! DejaVuSansMono Nerd Font Mono
- !Cousine Nerd Font Mono
- ! BitstreamVeraSansMono Nerd Font Mono
- ! Inconsolata Nerd Font Mono
- !XTerm*faceSize: 12
- ! Warning on loading Fonts errors
- ! 0=never; 1=only if font is at Xresources (Default); 2=always
- xterm.vt100.fontWarnings: 2
- ! SELECTION
- !Selected text will use CLIPBOARD
- !Set to false uses PRIMARY by default
- !and SECONDARY with special keybings
- ! Programmes may also have a CUTBUFFER (eg. VIM)
- xterm.vt100.selectToClipboard: true
- !Select whole URL when double-clicking
- xterm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
- !https://debian-administration.org/article/66/Customizing_your_xterm
- !Triple-click select both filesystem paths and URL links
- !( Does not seem to work very well !)
- !xterm.vt100.on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
- !KEYBINDINGS
- ! If one keybindings is not well setup, none will work!
- xterm.vt100.translations: #override \n\
- Shift Ctrl <Key>c:copy-selection(CLIPBOARD) \n\
- Shift Ctrl <Key>v:insert-selection(CLIPBOARD) \n\
- Meta <Key>v:insert-selection(PRIMARY) \n\
- Meta <Key>Insert:insert-selection(PRIMARY) \n\
- Meta <Key>Prior:scroll-back(13,line) \n\
- Meta <Key>Next:scroll-forw(13,line) \n\
- Meta <Key>Up:scroll-back(2,line) \n\
- Meta <Key>Down:scroll-forw(2,line) \n\
- Meta <Key>Home:scroll-to(begin) \n\
- Meta <Key>End:scroll-to(end) \n\
- Meta <Key>minus:smaller-vt-font() \n\
- Meta <Key>plus:larger-vt-font() \n\
- Meta <Key>a:set-altscreen(toggle)
- ! Shift ~Ctrl ~Meta <Btn2Up>:insert-selection(CLIPBOARD) \n\
- ! ~Shift ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY) \n\
- !
- ! You 'could' set these next two bindings but Vim uses PgUp/Dn and doe snot work if you set these:
- ! <Key>Prior:scroll-back(13,line) \n\
- ! <Key>Next:scroll-forw(13,line) \n\
- ! Good ref: https://github.com/charnley/dotfiles.x/blob/master/Xresources
- ! OBS: Shift-Insert pastes from XTerm set default buffer
- ! Ctrl <Key>|:quit()
- ! Meta <Key>c:copy-selection(CLIPBOARD) \n\
- ! Meta <Key>v:insert-selection(CLIPBOARD) \n\
- ! OBS: Pg is Prior and PgDown is Next
- ! OBS: ~Alt means "Alt is not pressed".
- !
- ! Ref: https://askubuntu.com/questions/169054/make-terminal-use-pageup-pagedown-instead-of-shift-pageup-shift-pagedown
- ! Notes:Default behaviour of Home/End keys in Bash and Vim
- ! is to go to beginning/end of line
- ! Consider changing it to more usual behaviour of
- ! home/end keys after youlearn more in Vim
- ! Default Key Bindings
- ! The default bindings in the VTxxx window use the SELECT token, which is
- ! set by the selectToClipboard resource. These are for the vt100 widget:
- !
- ! Shift <KeyPress> Prior:scroll-back(1,halfpage) \n\
- ! Shift <KeyPress> Next:scroll-forw(1,halfpage) \n\
- ! Shift <KeyPress> Select:select-cursor-start() \
- ! select-cursor-end(SELECT, CUT_BUFFER0) \n\
- ! Shift <KeyPress> Insert:insert-selection(SELECT, CUT_BUFFER0) \n\
- ! Alt <Key>Return:fullscreen() \n\
- ! <KeyRelease> Scroll_Lock:scroll-lock() \n\
- ! Shift~Ctrl <KeyPress> KP_Add:larger-vt-font() \n\
- ! Shift Ctrl <KeyPress> KP_Add:smaller-vt-font() \n\
- ! Shift <KeyPress> KP_Subtract:smaller-vt-font() \n\
- ! ~Meta <KeyPress>:insert-seven-bit() \n\
- ! Meta <KeyPress>:insert-eight-bit() \n\
- ! !Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
- ! !Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
- ! !Lock Ctrl @Num_Lock <Btn1Down>:popup-menu(mainMenu) \n\
- ! ! @Num_Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
- ! ~Meta <Btn1Down>:select-start() \n\
- ! ~Meta <Btn1Motion>:select-extend() \n\
- ! !Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
- ! !Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
- ! !Lock Ctrl @Num_Lock <Btn2Down>:popup-menu(vtMenu) \n\
- ! ! @Num_Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
- ! ~Ctrl ~Meta <Btn2Down>:ignore() \n\
- ! Meta <Btn2Down>:clear-saved-lines() \n\
- ! ~Ctrl ~Meta <Btn2Up>:insert-selection(SELECT, CUT_BUFFER0) \n\
- ! !Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
- ! !Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
- ! !Lock Ctrl @Num_Lock <Btn3Down>:popup-menu(fontMenu) \n\
- ! ! @Num_Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
- ! ~Ctrl ~Meta <Btn3Down>:start-extend() \n\
- ! ~Meta <Btn3Motion>:select-extend() \n\
- ! Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
- ! Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
- ! Lock @Num_Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
- ! @Num_Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
- ! <Btn4Down>:scroll-back(5,line,m) \n\
- ! Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
- ! Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
- ! Lock @Num_Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
- ! @Num_Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
- ! <Btn5Down>:scroll-forw(5,line,m) \n\
- ! <BtnUp>:select-end(SELECT, CUT_BUFFER0) \n\
- ! <BtnDown>:ignore()
- !
- ! Nice one but disables
- ! line visual mode with mouse in VIM
- !Shift <Btn1Down>:scroll-to(end)
- !
- !Some Defaults
- !
- ! From Bash
- ! <Ctrl+J) Linefeed
- ! <Ctrl-H) Carriage Return
- !
- ! <F8> adds a tilda ( ~)
- !
- ! From Xterm Man
- ! <Btn5Down>: StartScroll(Forward) \n\
- ! <Btn1Down>: StartScroll(Forward) \n\
- ! <Btn2Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
- ! <Btn3Down>: StartScroll(Backward) \n\
- ! <Btn4Down>: StartScroll(Backward) \n\
- ! <Btn2Motion>: MoveThumb() NotifyThumb() \n\
- ! <BtnUp>: NotifyScroll(Proportional) EndScroll()
- ! Ctrl <Key>[: smaller-vt-font() \n\
- ! Ctrl <Key>]: larger-vt-font() \n\
- !https://www.linuxquestions.org/questions/linux-software-2/xterm-tabs-and-scrolling-700001/
- ! https://askubuntu.com/questions/161652/how-to-change-the-default-font-size-of-xterm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement