On Mon, Jan 07, 2013 at 08:47:08AM +0100, Roberto E. Vargas Caballero wrote:
> On Sun, Jan 06, 2013 at 09:43:49PM +0400, p37si...@lavabit.com wrote:
> > This patch "fixes" it for me.  Don't know how to fix it correctly yet.
>
> Please take a look to this message in the list:
>
>        http://lists.suckless.org/dev/1212/13848.html
>
>
> Maybe we should add the information in the FAQ.


And here is the patch.
>From 5fc234fb9674ded207fb39964b23d9eeec94bd8f Mon Sep 17 00:00:00 2001
From: "Roberto E. Vargas Caballero" <k...@shike2.com>
Date: Mon, 7 Jan 2013 09:07:52 +0100
Subject: Add info about Del key in the FAQ.

---
 FAQ |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/FAQ b/FAQ
index b624145..e630d9f 100644
--- a/FAQ
+++ b/FAQ
@@ -37,4 +37,35 @@ back mode aka “copy mode”, it’s C-a ESC. You probably want defscrollback
 [0] http://en.wikipedia.org/wiki/GNU_Screen
 [1] http://en.wikipedia.org/wiki/Tmux
 --
+Why Del key doesn't work in some programs?
 
+Taken from terminfo:
+
+	If the terminal has a keypad that transmits codes when the keys
+	are pressed, this information can be given. Note that it is not
+	possible to handle terminals where the keypad only works in
+	local (this applies, for example, to the unshifted HP 2621 keys).
+	If the keypad can be set to transmit or not transmit, give these
+	codes as smkx and rmkx. Otherwise the keypad is assumed to
+	always transmit.
+
+
+In our case smkx=\E[?1h\E= and rmkx=\E[?1l\E>, so it is mandatory that
+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
+
+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
+		application keypad when it is called. Some systems
+		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.
+--
-- 
1.7.10.4

Reply via email to