I wrote a bunch of shell script functions to switch between 3 different OSs I have on Raspberry Pi so that I could use Siri/homebridge to switch between them.
I was testing everything out while I was ssh'ed in and I watched things happen on the TV the RPi is connected to via HDMI.
Everything works great except when I use any of the "stop" functions to exit out of any of the 3 OSs to get back to the console. The OSs (either Kodi, emulationstation/retropie, or raspbian) all stop fine, but I'm not kicked out to the console. All I get is a black screen.
I discovered, after an inordinate amount of time to get the right google search terms, that I can type alt+F1 to be able to see the console on the TV.
My question is, what can I put in my shell script functions to do this programmatically? I.e. What's the command line equivalent of alt+F1?