man8

osctl(8)
Select which TTY to attach, defaults to 0.