After about an hour of Googling this, I can't believe nobody has actually asked this question before...
So I've got a script running on TTY1. How do I make that script launch some arbitrary program on TTY2?
- I found
tty, which tells you which TTY you're currently on. - I found
writevt, which writes a single line of text onto a different TTY. - I found
chvt, which changes which TTY is currently displayed.
I don't want to display TTY2. I just want the main script to continue executing normally, but if I manually switch to TTY2 I can interact with the second program.