Skip to content

Instantly share code, notes, and snippets.

@Rajchowdhury420
Created February 22, 2021 03:01
Show Gist options
  • Save Rajchowdhury420/270d1e8af5e380bbeb2789a12cb730db to your computer and use it in GitHub Desktop.
Save Rajchowdhury420/270d1e8af5e380bbeb2789a12cb730db to your computer and use it in GitHub Desktop.
Upgrade Shell
python3 -c'import pty; pty.spawn("/bin/bash")'
Background Session with ctrl + z
stty raw -echo
stty -a
get row & col
stty rows X columns Y
Set rows and cols
Foreground Session again
fg #jobnumber
export XTERM=xterm-color
enable clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment