Demonstrating a somewhat tacky invocation of Twin from BASIC.

by gerph
macOS ◆ xterm-256color ◆ fish 740 views

The ‘TWIN’ editor was able to edit a BASIC program left in memory, and then return to BASIC afterward. It was a very limited tool.

An incredibly simple implementation of a command in a pymodule provides the ‘Twin’ command, and invokes an editor (‘nano’) on the BASIC program. Then on return from the edit, BASIC re-invoked to load the edited file. It’s really not that good, and it seems to - more often than not - lose the program that you were editing. However, it does show that interaction between the host system and the emulated one is relatively easy.