This needs the OOB Command Handler to manage the client features bit.
#$# -- Local edit of ...
The client then starts logging, starting at that line. The server outputs the editor's buffer and finishes with:
#$# ledit end
which prompts the client to stop logging, and then waits. The client executes the editor. Which one is entirely up to it, and the user. Once the user has finished, the client dumps the file back to the server, finishing up with:
.
as per @program. The server replaces the editor's buffer contents with this.
Please note that the #$# lines being output to the client aren't OOB commands! These are output to the client, not the server.
The client-side code varies according to the client, of course. If you use TinyFugue, you can use the ledit.tf file. This has all the various triggers in it. Install it into your TinyFugue library and put:
/load ledit.tf
in your .tfrc. When you log in, it should automatically inform the server of its presence.
If anybody has an equivalent for any other client, I'd love to know!