File:  [Research Unix] / researchv9 / cmd / emacs / macros / tconv
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

Rep

Version 4.0 to Version 4.2 terminal file conversion package.

To convert a version 4.0 terminal file to version 4.2, run emacs
(version 4.0 or 4.2 will do), load (^X^L) tconv, read the old
description, and invoke meta-x fixterm.  This will convert the
terminal description, and display it on the screen.  Everything
except padding information should be propperly converted.  If you
are satisfied with the conversion, type ^Z, and you will be returned
to normal emacs.


Meta-x tfix will fix all of the terminal files in the terminals directory
DO NOT DO THIS WITH VERSION 4.2 terminal files!!!!


�|��2-��
tfix

Convert Version 4.0 Terminal Files to Version 4.1

Should be invoked in the emacs source directory to convert all
descriptions in the terminals directory.


<.exec
<ls -l terminals
��		Execute, and remove last newline
�^�		While more terminals
�conv_tfile
�
conv_tfile -- convert entry
�< 
<terminals/
+�Pick up terminal name
<Terminals
	Read terminal description
�fixterm

fixterm -- fix a single terminal description.

This macro fixes a single terminal description.  The buffer is assumed
to contain one terminal description, which is fixed and saved.  Recursive
edit is invoked for approval of the updated description.
Everything but delay specifications is fixed.

cr=

�<CO
co�inc
			Increment co, and change name.
<ic
<IC
�Rep
<ei
<OC
�Rep
<sf
<sr
�Rep
<SR
|��cs
	<sr
	<al
	�Rep
	��
<bx
<XB
�Rep
<by
<YB
�Rep
<vc
<VC
�Rep
<rc
<RC
�Rep
<.exec

inc -- increment number


!�	Switch on character
	�01�	zero
	�12�	one
	�23�	two
	�34�	three
	�45�	four
	�56�	five
	�67�	six
	�78�	seven
	�89�	eight
	�90�inc
		�	nine (carry into previous digit
�

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.