Subject: Re: curses!
To: NetBSD current-users mailing list <current-users@netbsd.org>
From: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
List: current-users
Date: 05/31/2000 13:58:59
> Right again! And now I even have the pretty arrows in mutt

Pretty arrows?

> I even removed all remapping. My impression was that backspace/delete/rubout
> or whatever the options are would give ^H or ^?, whereas I get ^[[3;5~
> This happens with sh and csh in new xterm, not with 1st May xterm.

Hmm, I guess this is to do with the 'kD' (sent by delete-character key) entry
in our termcap.  Most entries have 'kD=\E[3~', which is the combination sent
by the 'Del' key (below 'Insert').  However, the xterm-xf86-v32 entry has
'kD=\177', which (I guess) is sent by a keyboard with a \real\ 'Delete' key.

I did wonder whether we should change our entry, as there seems to be no way
to distinguish between 'Delete' and 'Del' keys if they send different
sequences.  Of course, this only bites people who use 'Delete' to delete, as
opposed to those who use backspace (cue long discussion ;-).

I'm inclined to change our xterm-xf86-v32 termcap entry :

--- /usr/cvs/sharesrc/share/termcap/termcap.src      Fri May 12 12:23:01 2000
+++ termcap.src Wed May 31 13:19:56 2000
@@ -1758,7 +1758,7 @@
	:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:\
	:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:\
	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
-	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\177:kI=\E[2~:\
+	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:\
	:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\EOH:\
	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:\
	:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:\

Does this fix the problem?

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/