Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site yetti.UUCP Path: utzoo!mnetor!yetti!mike From: mike@yetti.UUCP (Mike Clarkson ) Newsgroups: comp.emacs Subject: Flow control by termcap Message-ID: <491@yetti.UUCP> Date: Sat, 4-Jul-87 16:33:38 EDT Article-I.D.: yetti.491 Posted: Sat Jul 4 16:33:38 1987 Date-Received: Sat, 4-Jul-87 20:43:48 EDT Reply-To: mike@yetti.UUCP (Mike Clarkson ) Organization: York University Computer Science Lines: 126 I'm glad that someone pointed out that termcap entries are designed for the problem of syncing terminals and hosts. If you have your termcap entry set right, you can run without flow control quite happily. Though I strongly agree that binding ^S and ^Q to commonly used functions is a bad idea, and just asks for trouble. Just as important, someone pointed out that correct termcap are essential for the proper functionality of any emacs: the display updating algorithms depend on knowing how long it is going to take to carry out a certain action. Based on the termcap values, Emacs decides whether to re-write the text, or to scroll, or choose from whatever other possibilities the terminal has to offer. It is therefore with mild anxiety that I note that: 1) Every termcap file I have ever seen is different. and 2) The chances of agreement between, and in some cases within, a termcap file for any given entry is vanishingly small. Take for example the much maligned, and ever present vt100. In the current Emacs distribution, the scroll region capabilities (sr: sf:) are disabled. Does this mean that in all of these years someone hasn't figured out a way of making vt100's use scroll regions? You've got to admit that it *is* an important functional requirement for an Emacs. Which brings me to the question (a feeble attempt to add light rather than heat to this discussion). Does anyone have a good termcap entry for a vt100 in Smooth Scroll mode? If anything needs padding, this sucker does! I have appended the termcap entry that I am using. It was derived from a posting by Jeff Siegal, and is appended below. The delays were arrived at empirically, and may have no real validity. If anyone would care to swap termcap recipes, I would be interested. Mike Clarkson, allegra \ SYMALG@YUSOL.BITNET C.R.E.S.S., decvax \ York University, ihnp4 > !utzoo!yetti!mike.UUCP 4700 Keele Street, linus / North York, Ontario, watmath / +1 (416) 736-2100 x 7767 M3J 1P3 Canada. ------------------------------------------------------------------------------- From: Jeff Siegal Subject: Much-improved Termcap Entries Optimized termcap entries for common DEC terminals follow. # modified by mike@yetti.UUCP to do smooth scroll d0|vt100-80ss|vt100ss|vt100 with 80 columns - smooth scroll:\ :co#80:li#24:cl=50\E[;H\E[J:\ :do=2\ED:le=^H:bs:am:cm=45\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\ :ce=45\E[K:cd=50\E[J:so=5\E[7m:se=5\E[m:us=5\E[4m:ue=5\E[m:\ :md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:\ :ks=\E=:ke=\E>:\ :kl=2\E[D:kr=2\E[C:ku=2\E[A:kd=2\E[B:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ :ho=25\E[H:pt:sr=95\EM:sf=95\ED:vt#3:xn:\ :sc=\E7:rc=\E8:cs=55\E[%i%d;%dr: #Note: this is not really a generic vt200 entry, since vt240's need lots #of padding and vt220's don't (see below) d0|vt200-80ss|vt220-80ss|VT200 series with 80 columns - smooth scroll:\ :im=\E[4h:ei=\E[4l:ip=3:mi:dc=\E[P:dm=:ed=:al=4\E[L:dl=4\E[M:\ :ce=\E[K:cl=\E[H\E[J:cd=\E[J:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ :AL=1*\E[%dL:DL=1*\E[%dM:DC=\E[%dP:\ :tc=vt100-80ss: # original entries from Jeff Siegal #From: Jeff Siegal #Subject: Much-improved Termcap Entries #Optimized termcap entries for common DEC terminals follow. Replace #the top of your EMACSVAR_TERMCAP file and watch your terminal do #magic. #For some reason, the entries for 132 column mode don't seem to work--I #think it may be an Emacs bug, but I haven't tested with the termcap #entries from Harvard. ## For VMS, make sure not to use \n or ^J for nl or anything else. # d0|vt100-80|vt100|vt100 with 80 columns:\ :co#80:li#24:cl=50\E[;H\E[J:\ :do=2\ED:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\ :ce=3\E[K:cd=50\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\ :md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:\ :ks=\E=:ke=\E>:\ :kl=\E[D:kr=\E[C:ku=\E[A:kd=\E[B:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ :ho=\E[H:pt:sr=5\EM:sf=\ED:vt#3:xn:\ :sc=\E7:rc=\E8:cs=\E[%i%d;%dr: #Note: this is not really a generic vt200 entry, since vt240's need lots #of padding and vt220's don't (see below) d0|vt200-80|vt220-80|VT200 series with 80 columns:\ :im=\E[4h:ei=\E[4l:ip=3:mi:dc=\E[P:dm=:ed=:al=4\E[L:dl=4\E[M:\ :ce=\E[K:cl=\E[H\E[J:cd=\E[J:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ :AL=1*\E[%dL:DL=1*\E[%dM:DC=\E[%dP:\ :tc=vt100-80: d0|vt200-132|vt220-132|vt200 with 132 columns:\ :co#132:tc=vt200-80: d3|vt132-80|vt102-80|vt240-80|vt100avo-80|vt series plus avo 80col:\ :al=99\E[L:dl=99\E[M:\ :ei=\E[4l:im=\E[4h:ip=7:dc=7\E[P:tc=vt100-80: d3|vt132-132|vt102-132|vt240-132|vt100avo-132|vt series plus avo, 132col:\ :co#132:tc=vt132-80: ## For VMS, make sure not to use \n for nl or anything else. ## The entry for vt200-80 disables sr and sf, they don't ## seem for work right.l d0|vt200-80|vt100-80|vt125-80|VT 200/100/125 with 80 columns:\ :co#80:li#24:am:bs:pt:xn:cl=45\E[H\E[2J:\ :cm=%i\E[%d;%dH:nd=\E[C:up=\EM:ho=\E[H:ce=2\E[K:cd=2*\E[J:\ :nl=\E[B:cr=\r:s-r=10\EM:s-f=10\ED:\ :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:LC:\ :kl=\E[D:kr=\E[C:ku=\E[A:kd=\E[B:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ :ks=\E=:ke=\E>: d0|vt200-132|vt100-132|vt125-132|VT 200/100/125 with 132 columns:\ :co#132:li#24:am:bs:pt:xn:cl=45\E[H\E[2J:\ :cm=%i\E[%d;%dH:nd=\E[C:up=\EM:ho=\E[H:ce=2\E[K:cd=2*\E[J:\ :nl=\E[B:cr=\r:sr=5\EM:sf=30\E7\E[200H\ED\E8:\ :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:LC:\ :kl=\E[D:kr=\E[C:ku=\E[A:kd=\E[B:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS: -- Mike Clarkson, ...!allegra \ BITNET: mike@YUYETTI or CRESS, York University, ...!decvax \ SYMALG@YUSOL 4700 Keele Street, ...!ihnp4 > !utzoo!yetti!mike North York, Ontario, ...!linus / CANADA M3J 1P3. ...!watmath / Phone: +1 (416) 736-2100 x 7767 "...the most inevitable business communications system on the planet." - ROLM magazine advertisement which planet?