> On Sun, Jan 29, 2023 at 3:01 PM Mart Zirnask <martzirn...@gmail.com> wrote:
> >
> > If I manage to build the command line mode of Rob Pike's sam editor
> > [1] for DOS, I could probably do a writeup on how to use it. Because
> > of the so-called structural regular expressions [2, 3], it is a really
> > interesting editor. Excellent for processing arbitrary strings that
> > spawn across multiple lines, since sam doesn't expect the input to be
> > full, terminated lines.

On Sun, Jan 29, 2023 at 4:30 PM Rugxulo <rugx...@gmail.com> wrote:
> I've heard of it but never used it. It's very interesting. Plan9's
> successor to Ed, right? (Grep and Sed both came from Ed. Even AWK took
> the regex code from Egrep, I think.)

Brian Kernighan uses SAM, and I've interviewed Brian a few times.
Brian describes SAM as "ed" or "vi" on steroids. And that's how the
SAM website describes it, so I guess that's not a surprise.

SAM is a window-based editor, so it uses graphics mode. To me, this
looks a lot like the window editor on the Apollo/DOMAIN system - I
managed a small Apollo/DOMAIN network in the mid 1990s. You can find a
screenshot of SAM on Wikipedia:

Compiling this for DOS would be an interesting exercise. Not sure if
it's possible, but give it a shot and let us know.

Freedos-user mailing list

Reply via email to