Skip to content

Instantly share code, notes, and snippets.

@tankmek
Created January 7, 2018 15:36
Show Gist options
  • Save tankmek/e24c7079d1baef8b17fe16d4488f9dd4 to your computer and use it in GitHub Desktop.
Save tankmek/e24c7079d1baef8b17fe16d4488f9dd4 to your computer and use it in GitHub Desktop.
allows you to use history and tab completion.
python -c 'import pty; pty.spawn("/bin/bash")'
CTRL-Z
$ stty -a (grab rows/columns)
$ fg
$ stty raw -echo
$ reset
$ export SHELL=bash
$ export TERM=xterm-256color
$ stty rows 94 columns 189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment