On 1/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The help documentation for /etc/inputrc is found in`man 3 readline'
> under section INITIALIZATION FILE and is quite extensive.  However I
> don't see any info regarding how to interpret the characters used in
> /etc/inputrc.
>
> Things like:
>   # for linux console and RH/Debian xterm
>   "\e[1~": beginning-of-line
>   "\e[4~": end-of-line
>   #"\e[5~": beginning-of-history
>   #"\e[6~": end-of-history
>   "\e[5~": history-search-backward
>   "\e[6~": history-search-forward
>   "\e[3~": delete-char
>   "\e[2~": quoted-insert
>
> I happen to know what some of those are from use but how can I tell
> what characters are being referred to, that is, what does:
>   "\e[2~"  mean in plain english?

The \e is an escape.  The other chars are exactly what you see.

For example, Ctrl-V will cause most terminals to print the next
character exactly as seen, without interpreting it.  Although there
the printout for the escape character is "^[".  So if on a linux
console you type Ctrl+v, then hit the Delete key, you should see
"^[[3~" appear on the screen.

-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to