/usr/share/augeas/lenses/dist/tests/test_inputrc.aug is in augeas-lenses 1.10.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | (*
Module: Test_Inputrc
Provides unit tests and examples for the <Inputrc> lens.
*)
module Test_Inputrc =
(* Variable: conf *)
let conf = "# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, uncomment
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
# set convert-meta off
# try to enable the application keypad when it is called. Some systems
# need this to enable the arrow keys.
# set enable-keypad on
# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys
# do not bell on tab-completion
# set bell-style none
# set bell-style visible
# some defaults / modifications for the emacs mode
$if mode=emacs
# allow the use of the Home/End keys
\"\\e[1~\": beginning-of-line
\"\\e[4~\": end-of-line
# allow the use of the Delete/Insert keys
\"\\e[3~\": delete-char
\"\\e[2~\": quoted-insert
# mappings for \"page up\" and \"page down\" to step to the beginning/end
# of the history
# \"\\e[5~\": beginning-of-history
# \"\\e[6~\": end-of-history
# alternate mappings for \"page up\" and \"page down\" to search the history
# \"\\e[5~\": history-search-backward
# \"\\e[6~\": history-search-forward
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
\"\\e[1;5C\": forward-word
\"\\e[1;5D\": backward-word
\"\\e[5C\": forward-word
\"\\e[5D\": backward-word
\"\\e\\e[C\": forward-word
\"\\e\\e[D\": backward-word
$if term=rxvt
\"\\e[8~\": end-of-line
\"\\eOc\": forward-word
\"\\eOd\": backward-word
$else
\"\\e[G\": \",\"
$endif
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
# \"\\eOH\": beginning-of-line
# \"\\eOF\": end-of-line
# for freebsd console
# \"\\e[H\": beginning-of-line
# \"\\e[F\": end-of-line
$endif
"
(* Test: Inputrc.lns *)
test Inputrc.lns get conf =
{ "#comment" = "/etc/inputrc - global inputrc for libreadline" }
{ "#comment" = "See readline(3readline) and `info rluserman' for more information." }
{ }
{ "#comment" = "Be 8 bit clean." }
{ "input-meta" = "on" }
{ "output-meta" = "on" }
{ }
{ "#comment" = "To allow the use of 8bit-characters like the german umlauts, uncomment" }
{ "#comment" = "the line below. However this makes the meta key not work as a meta key," }
{ "#comment" = "which is annoying to those which don't need to type in 8-bit characters." }
{ }
{ "#comment" = "set convert-meta off" }
{ }
{ "#comment" = "try to enable the application keypad when it is called. Some systems" }
{ "#comment" = "need this to enable the arrow keys." }
{ "#comment" = "set enable-keypad on" }
{ }
{ "#comment" = "see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys" }
{ }
{ "#comment" = "do not bell on tab-completion" }
{ "#comment" = "set bell-style none" }
{ "#comment" = "set bell-style visible" }
{ }
{ "#comment" = "some defaults / modifications for the emacs mode" }
{ "@if" = "mode=emacs"
{ }
{ "#comment" = "allow the use of the Home/End keys" }
{ "entry" = "\\e[1~"
{ "mapping" = "beginning-of-line" }
}
{ "entry" = "\\e[4~"
{ "mapping" = "end-of-line" }
}
{ }
{ "#comment" = "allow the use of the Delete/Insert keys" }
{ "entry" = "\\e[3~"
{ "mapping" = "delete-char" }
}
{ "entry" = "\\e[2~"
{ "mapping" = "quoted-insert" }
}
{ }
{ "#comment" = "mappings for \"page up\" and \"page down\" to step to the beginning/end" }
{ "#comment" = "of the history" }
{ "#comment" = "\"\\e[5~\": beginning-of-history" }
{ "#comment" = "\"\\e[6~\": end-of-history" }
{ }
{ "#comment" = "alternate mappings for \"page up\" and \"page down\" to search the history" }
{ "#comment" = "\"\\e[5~\": history-search-backward" }
{ "#comment" = "\"\\e[6~\": history-search-forward" }
{ }
{ "#comment" = "mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving" }
{ "entry" = "\\e[1;5C"
{ "mapping" = "forward-word" }
}
{ "entry" = "\\e[1;5D"
{ "mapping" = "backward-word" }
}
{ "entry" = "\\e[5C"
{ "mapping" = "forward-word" }
}
{ "entry" = "\\e[5D"
{ "mapping" = "backward-word" }
}
{ "entry" = "\\e\\e[C"
{ "mapping" = "forward-word" }
}
{ "entry" = "\\e\\e[D"
{ "mapping" = "backward-word" }
}
{ }
{ "@if" = "term=rxvt"
{ "entry" = "\\e[8~"
{ "mapping" = "end-of-line" }
}
{ "entry" = "\\eOc"
{ "mapping" = "forward-word" }
}
{ "entry" = "\\eOd"
{ "mapping" = "backward-word" }
}
{ "@else"
{ "entry" = "\\e[G"
{ "mapping" = "\",\"" }
}
}
}
{ }
{ "#comment" = "for non RH/Debian xterm, can't hurt for RH/Debian xterm" }
{ "#comment" = "\"\\eOH\": beginning-of-line" }
{ "#comment" = "\"\\eOF\": end-of-line" }
{ }
{ "#comment" = "for freebsd console" }
{ "#comment" = "\"\\e[H\": beginning-of-line" }
{ "#comment" = "\"\\e[F\": end-of-line" }
{ }
}
|