--- FAQ | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/FAQ b/FAQ index e630d9f..f7476dc 100644 --- a/FAQ +++ b/FAQ _AT_@ -55,10 +55,11 @@ programs which want to test against keypad keys, have to send these sequences. But bugsy bash and irssi for example don't do it. A fast solution is write this command: - $ echo ^[?1h^[= >/dev/tty + $ printf "\033?1h\033=" >/dev/tty -And all the problems will be removed. In the case of bash reading the -manpage of readline you can see this text: +And all the problems will be removed. + +In the case of bash reading the manpage of readline you can see this text: enable-keypad (Off) When set to On, readline will try to enable the _AT_@ -66,6 +67,24 @@ manpage of readline you can see this text: need this to enable the arrow keys. so, adding this option in your .inputrc you will fix the problem with -all applications which use readline. In the case of irssi this tip will -not help. +all applications which use readline. + +You can read in the zsh FAQ (http://zsh.sourceforge.net/FAQ/zshfaq03.html#l25): + + It should be noted that the O / [ confusion can occur with other keys + such as Home and End. Some systems let you query the key sequences + sent by these keys from the system's terminal database, terminfo. + Unfortunately, the key sequences given there typically apply to the + mode that is not the one zsh uses by default (it's the "application" + mode rather than the "raw" mode). Explaining the use of terminfo is + outside the scope of this FAQ, but if you wish to use the key + sequences given there you can tell the line editor to turn on + "application" mode when it starts and turn it off when it stops: + + function zle-line-init () { echoti smkx } + function zle-line-finish () { echoti rmkx } + zle -N zle-line-init + zle -N zle-line-finish + +So putting these options in your .zshrc you will fix the problem. -- -- 1.7.10.4 --UugvWAfsgieZRqgk--Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Mon Jan 14 2013 - 21:36:02 CET