CmdID / Commands
Print the number of the foreground virtual terminal. tldr-pages
On Linux
Opens CmdID with your command. It is read in your browser and sent nowhere.
Print current terminal number or serial if the terminal is serial
fgconsole
Print the next unallocated virtual terminal
fgconsole --next-available
chvt