Beattie ed
==========

* Introduction
* Documentation
* Limitations
* Source code

Introduction
============

This is a DOS version of a *nix-style line editor by Brian Beattie.

Documentation
=============

* doc/ed.txt
* doc/tutorial.txt

Limitations
===========

ed.exe is compiled with Watcom and can only use 640kb conventional
memory and short 8+3 filenames.

ed32.exe compiled with DJGPP requires a DPMI server such as CWSDPMI.

Technical maximum limits:

16-bit ed.exe
-------------
Line: 256 characters long
Regex: 256 characters long
Filename: 256 characters long

32-bit ed.exe
-------------
Line: 8192 characters long
Regex: 1024 characters long
Filename: 1024 characters long

System command: 126 characters long (approximate)

Source Code
===========

src/ed.c
--------
wmake -f Makefile.watcom to compile ed.c into ed.exe
make -f Makefile.dj to compile ed.c into ed32.exe
Run build.bat or build.sh to compile ed.c into ed.com

I made minor changes:

* compile with dev86 bcc, djgpp, or watcom
* add 'n' command
* add '!' command % substitution
* add '!' end of output ! marker

src/ed.bak
----------
ed.bak is the original minix ed source code circa 2010.

<https://git.minix3.org/index.cgi?p=minix.git;a=tree;f=commands/ed;
h=4118bbb1bcbf475fdd547f5c0408f5f4766d338a;
hb=d65f6f70097893d1dfe5e389f081f247bf3df183>

Older versions
--------------
These were built with Borland Turbo-C.

<http://www.retroarchive.org/garbo/pc/editor/ed.zip>

<ftp://ftp.oldskool.org/pub/simtelnet/msdos/editor/ed_el.zip>