Stabilizing shell
Stabilize your shell:
Import pty module and spawn bash shell
python3 -c 'import pty;pty.spawn("/bin/bash")'
Press
CTRL + Z
to background process and get back to your host machineUse stty command to set terminal line settings and foreground back the target terminal
stty raw -echo; fg
Set the terminal emulator to xterm:
export TERM=xterm
Press Enter
Last updated