[net.emacs] Emacs on Sun Workstations

wmb@sun.uucp (Mitch Bradley) (12/23/83)

For you Gosling Emacs users with Sun Workstations:

Here is a modified termcap entry for the Sun Workstation, which provides
much faster Emacs screen updates.  This does not help if you are using
Emacs #264 in the "direct to framebuffer" mode, but it helps a lot if
Emacs is sending control codes to the Sun terminal emulator.

# This entry is useful for using the Sun with Emacs, since it speeds
# things up.  Emacs uses insert character frequently when it would be faster
# on the Sun just to redraw the whole line once and be done with it.
# For this reason this termcap pretends that the Sun doesn't have insert
# character capability.
MX|sune|Sun Microsystems Workstation console without insert character:\
	:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
	:am:bs:km:mi:ms:pt:\
	:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:\
	:kd=\E[B:kl=\E[D:ku=\E[A:kr=\E[C:kh=\E[H:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
	:al=\E[L:dl=\E[M:dc=\E[P:


How does this work?  Well, the "insert character" function on a bitmapped
display requires that the entire rest of the line be redrawn.  Doing two
"insert character"s is usually slower than redrawing the entire line once.

Of course, if you are running Emacs on another machine and talking to the
Sun terminal emulator over a slow link, it is probably better to use the
insert character function.

				Cheers,
				Mitch Bradley
				Sun Microsystems, Inc.
				decvax!decwrl!sun!wmb