Subject: Re: pkg/8277 rlogin + vi + cursorkeys problem
To: None <tech-userlevel@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-userlevel
Date: 04/30/2002 12:08:34
This problem, that of "vi" failing, at times, to recognize the
mappings that start with <escape>, is common enough that there's
already a work-around in the "vi" binary, it's just not well
documented. There is something about it in viref.13, but it's not that
clear, and viref.13 isn't very accesible. So how about if I add the
following to the "vi" manpage?

Index: vi.1
===================================================================
RCS file: /cvsroot/basesrc/usr.bin/vi/docs/USD.doc/vi.man/vi.1,v
retrieving revision 1.7
diff -u -r1.7 vi.1
--- vi.1	2002/02/08 01:36:37	1.7
+++ vi.1	2002/04/30 16:43:49
@@ -1107,6 +1107,18 @@
 only.
 Announce error messages with a bell.
 .TP
+.B "escapetime [1]"
+The 10th's of a second
+.I ex/vi
+waits for a subsequent key to complete an
+\*[Lt]escape\*[Gt]
+key mapping.
+Over a link with high latency,
+the default may cause arrow and function keys
+to introduce artifacts.
+If that's the case,
+try increasing this to a value between 3 and 6.
+.TP
 .B "exrc, ex [off]"
 Read the startup files in the local directory.
 .TP

This should close the PR, too. Comments? Objections?

Frederick