TTY
Steps by steps for a TTY Shell
1. Spawn TTY shell
python -c 'import pty; pty.spawn("/bin/bash")'2. Background the shell
^Zstty raw -echo3. Switch to the shell again
fg4. On a new terminal (get TERM variable and size of window)
echo $TERM
stty size5. On the shell
export TERM=xterm-256color
stty rows 67 columns 318Spawning TTY Shells
/bin/sh -iLast updated