Path: utzoo!attcan!uunet!lll-winken!lll-lcc!lll-tis!helios.ee.lbl.gov!ace.ee.lbl.gov!leres
From: leres@ace.ee.lbl.gov (Craig Leres)
Newsgroups: comp.windows.x
Subject: insert character optimization for xterm termcap entry
Message-ID: <777@helios.ee.lbl.gov>
Date: 18 Aug 88 05:02:36 GMT
Sender: usenet@helios.ee.lbl.gov
Reply-To: leres@helios.ee.lbl.gov (Craig Leres)
Organization: Lawrence Berkeley Laboratory, Berkeley
Lines: 13
Index: etc/termcap/termcap.src 4.3BSD

Description:
	Both the X10 and X11 versions of xterm support the ANSI
	standard IRM (insertion-replacement) mode. Meanwhile, the xterm
	termcap uses insert-character which is not (as) optimal when
	insert-mode is available.

Repeat-By:
	Enter vi and append "foo" to the first line. Position the
	cursor at the beginning of the line. Insert 60 k's using the
	command "60ik\E". Notice that the k's are inserted slowly.

Fix:
	Switch from insert-character to insert-mode; change "ic=\E[@"
	to "im=\E[4h:ei=\E[4l:mi"