[comp.emacs] gnu emacs termcap for SunView

sxm@philabs.Philips.Com (Sandeep Mehta) (02/13/88)

This question may have been asked on this group before, but I just
resubscribed to this group after a long time so here it is anyway.

In a Sun window if I "scroll-up" (ctrl-v) in emacs, it repaints the buffer
reasonably fast. However if I move the "point-up" a line or 
"scroll-down-in-place", when the cursor is already at the top of the screen, 
emacs resizes my current window to half the size and then repaints 
the entire window, expanding the window the full size. Thus :

	-----------------     ---------------
	|#              |     |#            |
	|               | C-p |             |
	|               |     ---------------  then goes to first buffer size
	|               |     |     ^       |
	|---------------|     |     ^       |
	----------------      --------------

This does NOT happen with the "scroll-down"  command.
I believe it is a termcap problem. In either event I would really
appreciate some help, as this problem is real thorn in my side !!

Thanks in advance

sandeep
-- 
Sandeep Mehta                                   TEL : (914)-945-6478
Robotics & Flexible Automation                  UUCP: uunet!philabs!sxm	
Philips Laboratories                            ARPA: sxm@philabs.philips.com

aslam@uiucdcsp.cs.uiuc.edu (02/15/88)

The following was posted by wohler@spam.istc.sri.com in comp.emacs in January.


> Here is the problem. When it becomes time to scroll the scrolling
>takes about half an hour.

  this is asked periodically.  the "magic incantation" is to add this
  to your .defaults file (only helps under suntools):

	/Tty/Retained	"Yes"

  also add the following your entry for "sun" in /etc/termcap:

	:AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:

							--bw

jk3k+@ANDREW.CMU.EDU ("Joseph G. Keane") (02/15/88)

Here is the sun termcap with the _right_ delays (don't ask me why they're 
different).  You can setenv it in your .login or, better yet, get it installed 
in /etc/termcap.  You probably want to delete the backslash-newlines.

'Mu|sun|Sun Microsystems Workstation 
console:al=2.8*\E[L:am:bs:cd=\E[J:ce=\E[K:\
cl=^L:cm=\E[%i%d;%dH:co#80:dc=\E[P:dl=2.1*\E[M:ei=:ic=\E[@:im=:k1=\EOP:k2=
\EOQ:\
k3=\EOR:k4=\EOS:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:li#34:mi:ms:nd=\
E[C:\
se=\E[m:so=\E[7m:up=\E[A:'

--Joe

jk3k+@ANDREW.CMU.EDU ("Joseph G. Keane") (02/15/88)

If you don't care about the Sun console termcap, you can `fix' any termcap by 
putting `5*' before the `al' and `dl' operations.  This is conservative, so 
Emacs won't use them when it could.

--Joe

jr@LF-SERVER-2.BBN.COM (John Robinson) (02/17/88)

>>   this is asked periodically.

And the right answer is read the file etc/SUN-SUPPORT in the
distribution.  All aslam said and much more is there.

/jr