JargonFile/original/html/T/TECO.html
2014-03-27 18:54:56 +00:00

44 lines
4.8 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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> </td><th width="60%" align="center">T</th><td width="20%" align="right"> <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´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, J. Random<br/>
Quux, The Great<br/>
Dick, 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 Dick<br/>
J. Random Loser<br/>
The Great Quux<br/>
</p></div><p>The program is</p><div class="literallayout"><p><br/>
[1 J^P$L$$<br/>
J &lt;.-Z; .,(S,$ -D .)FX1 @F^B $K :L I $ G1 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> </td><td width="20%" align="center"><a accesskey="u" href="../T.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="tee.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">TCP/IP </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> tee</td></tr></table></div></body></html>