Assuming that you have ssh working, in terminal A:
ssh norns.local
cd dust/code
vim hello.lua
…in a second terminal B:
ssh norns.local
# shutdown the existing wrapped copy of matron
systemctl stop norns-matron
# run the raw matron command directly
norns/build/matron/matron
# while there is no prompt this is the lua repl
norns.script.load("code/hello.lua")
# to exit
^C
# to restore normal operation reboot norns or
systemctl start norns-matron
The play button in maiden is simply saving the current file to disk and then calling norns.script.load(<relative_path_under_dust_dir>) for you. The raw lua repl in matron doesn’t have any command history or line editing like the maiden repl does (that is done in the browser)
I have thought about a simple extension to the maiden backend (running on norns) which exposes the repl for either matron or sc by tapping into the existing sockets which the browser client uses thus allowing both to work side by side.
Hopefully that helps.