Text editor/emacs clone

Now that the disk juggling between host OS and terminal is worked out, and with the button scripting working, I find myself needing to tweak scripts. This is still a bit of a pain point (disconnect terminal, edit file, reconnect terminal).

This popped up on the forum a while back. It’s a tiny buffer gap text editor with a stub of vt100 ncursus functions.

There are a few mallocs and reallocs, but not so many that it looks difficult to port. The shared 128K big buffer could be used to edit files up to 100k or so, which is way too big anyways.

License is public domain. Any thoughts?