🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.archives
Article #100

[alt.hackers] ESC -- a 27 bytes program.

#100
From: Yossi Gil
Date: Tue, 04 Aug 1992 02:38
43 lines
2093 bytes
Archive-name: auto/alt.hackers/ESC-a-27-bytes-program

The idea of the ESC.COM program is not mine; in fact I had such a
program a few years ago. The original author (PC MAG?) will probably
remain anonymous forever since a copyright message didn't fit within
the 27 bytes size limit.

Anyway, I lost my copy as I flew over the atlantic. It was real fun 
to rewrite it (while putting my initials in).

ESC.COM is a PC program which prints to standard output the ESC character
+ its arguments. Typical usage is:

	C:\USERS\KALANIOT> ESC [2J

or even
    
    C:\USERS\ARVINKA> ESC [4d > prn

(Challenge: can you do this on UNIX without using quotes?)

Naturally, the program size is exactly 27 bytes long.

My version of ESC.COM is part of the full distribution of Terse,
the 4096 bytes editor (which is a completely different hack).  And by
the way, the abridged distribution of terse (both distributions are in
cs.ubc.ca:/ftp/pickup) has yet another interesting hack: a program for
which all of the following DOS commands present the same message:

    CAT  S.COM
	LIST S.COM
	TYPE S.COM
    S.COM 





--
Joseph (Yossi) Gil                 {alberta,uw-beaver,uunet}!ubc-cs!yogi
Dept. of Computer Science          yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
6356 Agricultural Road., Univ. of B.C.,             Tel: +1-604-822-8175
Vancouver, British Columbia, V6T 1Z2, Canada.       Fax: +1-604-822-5485
Technical Details
Message-ID: <15kqjeINNjbl@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mips!swrinde!cs.utexas.edu!sun-barr!ames!agate!agate!usenet
References: <1992Aug3.092841.17048@cs.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mips!swrinde!cs.utexas.edu!sun-barr!ames!agate!agate!usenet
From: yogi@cs.ubc.ca (Yossi Gil)
Newsgroups: comp.archives
Subject: [alt.hackers] ESC -- a 27 bytes program.
Message-ID: <15kqjeINNjbl@agate.berkeley.edu>
Date: 4 Aug 92 02:38:38 GMT
References: <1992Aug3.092841.17048@cs.ubc.ca>
Followup-To: alt.hackers
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Lines: 43
Approved: adam@soda.berkeley.edu
NNTP-Posting-Host: soda.berkeley.edu
X-Original-Newsgroups: alt.hackers
X-Original-Date: Mon, 3 Aug 92 09:28:41 GMT