Upgrading Shells to Interactive TTYs
TL;TR
python3 -c 'import pty; pty.spawn("/bin/bash")'[CTRL-Z]stty -afgresetexport SHELL=bashexport TERM=xterm-256colorstty rows [N] columns [M]N and M are defined in the output of stty -a (namely columns and rows).