The period-accurate way would be Telnet, right, and the fact that it's not secure doesn't matter in this case; everything's local
I went looking for a low effort embeddable telnet library and found this, but it's unmaintained. Looks like a nice API, though https://github.com/weston-embedded/uC-TELNETs/blob/develop/Examples/telnet-s_init.c