]> code.delx.au - dotfiles/blobdiff - .Xresources
Fixed backspace key properly
[dotfiles] / .Xresources
index 93fef59f249487dee6072015456670d421b73cff..aa1a372af762a58166cf3a3616e7fa29c7141e78 100644 (file)
@@ -30,13 +30,19 @@ URxvt.shading: -10
 !URxvt.tintColor: #FFFFFF
 !URxvt.shading: 10
 
-! urxvt behaves identically to xterm-color and a lot more programs know about
-! xterm-color, so we fake it
+
+! This option sets the TERM environment variable:
+! TERM=rxvt-unicode won't work because systems don't have a terminfo file for
+! TERM=xterm because different systems have inconsistent terminfo files for it
+!            (differing ideas about what xterm sends as backspace)
+! TERM=xterm-color works well with the few key fixes below
 URxvt.termName: xterm-color
 
-! Make the home key work
+! Make the keys behave like the xterm-color terminfo says they should
 URxvt.keysym.Home: \033[1~
 URxvt.keysym.End: \033[4~
+URxvt.backspacekey: ^H
+URxvt.deletekey: \033[3~
 
 ! Scrollback buffer
 URxvt.saveLines: 8192