Interactive Shell
Using STTY options, run one of the followings:
python -c 'import pty;pty.spawn("/bin/bash")'
python3 -c 'import pty;pty.spawn("/bin/bash")'
echo os.system('/bin/bash')
/bin/sh -I
script -qc /bin/bash /dev/null
perl -e 'exec "/bin/sh";'Then, run:
ctrl-z
echo $TERM
stty raw -echo
fg
reset
export SHELL=bash
export TERM=screen-256color
stty rows 61 columns 205Using socat
Reference: https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/
Last updated