JargonFile/original/html/T/TECO.html

44 lines
4.8 KiB
HTML
Raw Normal View History

2014-03-27 14:54:56 -04:00
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>TECO</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../T.html" title="T"/><link rel="previous" href="TCP-IP.html" title="TCP/IP"/><link rel="next" href="tee.html" title="tee"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">TECO</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="TCP-IP.html">Prev</a><EFBFBD></td><th width="60%" align="center">T</th><td width="20%" align="right"><EFBFBD><a accesskey="n" href="tee.html">Next</a></td></tr></table><hr/></div><dt><a id="TECO"/><dt xmlns="" id="TECO"><b>TECO</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="pronunciation">/tee<65>koh/</span>, <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">n.,v. obs.</span></dt></dt><dd><p> 1. [originally an acronym for &#8216;[paper] Tape Editor and
COrrector&#8217;; later, &#8216;Text Editor and COrrector&#8217;] <span class="grammar">n.</span> A text editor developed at MIT and modified by
just about everybody. With all the dialects included, TECO may have been
the most prolific editor in use before <a href="../E/EMACS.html"><i class="glossterm">EMACS</i></a>, to
which it was directly ancestral. Noted for its powerful
programming-language-like features and its unspeakably
<a href="../H/hairy.html"><i class="glossterm">hairy</i></a> syntax. It is literally the case that every
string of characters is a valid TECO program (though probably not a useful
one); one common game used to be mentally working out what the TECO
commands corresponding to human names did. </p></dd><dd><p> 2. <span class="grammar">vt.</span> Originally, to edit using
the TECO editor in one of its infinite variations (see below).</p></dd><dd><p> 3. vt.,obs. To edit even when TECO is <span class="emphasis"><em>not</em></span> the
editor being used! This usage is rare and now primarily historical.</p></dd><dd><p>As an example of TECO's obscurity, here is a TECO program that takes
a list of names such as:</p><div class="literallayout"><p><br/>
Loser,<2C>J.<2E>Random<br/>
Quux,<2C>The<68>Great<br/>
Dick,<2C>Moby<br/>
</p></div><p>sorts them alphabetically according to surname, and then puts the
surname last, removing the comma, to produce the following:</p><div class="literallayout"><p><br/>
Moby<EFBFBD>Dick<br/>
J.<2E>Random<6F>Loser<br/>
The<EFBFBD>Great<EFBFBD>Quux<br/>
</p></div><p>The program is</p><div class="literallayout"><p><br/>
[1<>J^P$L$$<br/>
J<EFBFBD>&lt;.-Z;<3B>.,(S,$<24>-D<>.)FX1<58>@F^B<>$K<>:L<>I<EFBFBD>$<24>G1<47>L&gt;$$<br/>
</p></div><p>(where ^B means &#8216;Control-B&#8217; (ASCII 0000010) and $ is
actually an <a href="../A/alt.html"><i class="glossterm">alt</i></a> or escape (ASCII 0011011)
character).</p><p>In fact, this very program was used to produce the second, sorted
list from the first list. The first hack at it had a
<a href="../B/bug.html"><i class="glossterm">bug</i></a>: GLS (the author) had accidentally omitted the
<b class="command">@</b> in front of <b class="command">F^B</b>, which as anyone can see is clearly the
<a href="../W/Wrong-Thing.html"><i class="glossterm">Wrong Thing</i></a>. It worked fine the second time. There
is no space to describe all the features of TECO, but it may be of interest
that <b class="command">^P</b> means &#8216;sort&#8217; and
<b class="command">J&lt;.-Z; ... L&gt;</b> is an idiomatic
series of commands for &#8216;do once for every line&#8217;.</p><p>In mid-1991, TECO is pretty much one with the dust of history, having
been replaced in the affections of hackerdom by
<a href="../E/EMACS.html"><i class="glossterm">EMACS</i></a>. Descendants of an early (and somewhat
lobotomized) version adopted by DEC can still be found lurking on VMS and a
couple of crufty <a href="../P/PDP-11.html"><i class="glossterm">PDP-11</i></a> operating systems, however, and ports of the more
advanced MIT versions remain the focus of some antiquarian interest. See
also <a href="../R/retrocomputing.html"><i class="glossterm">retrocomputing</i></a>,
<a href="../W/write-only-language.html"><i class="glossterm">write-only language</i></a>. </p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="TCP-IP.html">Prev</a><EFBFBD></td><td width="20%" align="center"><a accesskey="u" href="../T.html">Up</a></td><td width="40%" align="right"><EFBFBD><a accesskey="n" href="tee.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">TCP/IP<49></td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"><EFBFBD>tee</td></tr></table></div></body></html>