Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!wivax!decvax!harpo!seismo!presby!burdvax!hdj
From: hdj@burdvax.UUCP
Newsgroups: net.emacs
Subject: Re: Unix culture considered harmful...
Message-ID: <817@burdvax.UUCP>
Date: Mon, 13-Jun-83 21:40:38 EDT
Article-I.D.: burdvax.817
Posted: Mon Jun 13 21:40:38 1983
Date-Received: Thu, 16-Jun-83 06:35:59 EDT
Lines: 21

K.S. Bhaskar raises an interesting point about Emacs:

... I would like to make an emacs buffer look like a terminal to a program
like notesfile, so that the escape sequences coming out of Unix are
translated to appropriate mlisp commands so that the buffer looks reasonably
like a terminal screen (the program would have to be written in mlisp).

I had been thinking about this recently, and I have come up with a way
of doing it that would be compatible with the rest of Emacs; though I
haven't really investigated the implementation of this scheme, I have a
feeling it would not be too hard to do.

If we combine the ideas of "filtered processes" and keymaps, it becomes
clear that some sort of synthesis of the two ideas might be a solution to
the problem.  Output from a process would pass through a keymap; arbitrary
mlisp functions could be bound to the special character sequences of the
filtered process.  For instance, if a program output ctrl-L to clear the
screen, we could bind ctrl-L in the filter keymap to, say, erase-buffer.
And so on.

I welcome any and all comments on these somewhat half-baked ideas.