Skip to content

Instantly share code, notes, and snippets.

@nghialuffy
Created March 25, 2023 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nghialuffy/c2c16e9a116b8ed3765662f0c8492945 to your computer and use it in GitHub Desktop.
Save nghialuffy/c2c16e9a116b8ed3765662f0c8492945 to your computer and use it in GitHub Desktop.
0. Got shell
1. Ctrl + Z
==== /bin/bash
2. stty raw -echo
3. fg
4. reset
5.
```
export SHELL=bash
export TERM=xterm-256color
stty rows 50 columns 105
```
==== /bin/zsh
2. stty raw -echo; fg
3. reset
4
```
export SHELL=bash
export TERM=tmux-256color
stty rows 47 columns 105
```
6.
`python3 -c 'import pty; pty.spawn("/bin/bash")'`
7. Happy with beautiful shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment