upgrade shell to full tty code example
Example 1: upgrade shell tty
python -c 'import pty; pty.spawn("/bin/bash")'
Example 2: upgrade shell tty
stty raw -echo
$ export SHELL=bash
$ export TERM=xterm256-color
$ stty rows 38 columns 116
python -c 'import pty; pty.spawn("/bin/bash")'
stty raw -echo
$ export SHELL=bash
$ export TERM=xterm256-color
$ stty rows 38 columns 116