TTY

Steps by steps for a TTY Shell

1. Spawn TTY shell

python -c 'import pty; pty.spawn("/bin/bash")'

2. Background the shell

^Z
stty raw -echo

3. Switch to the shell again

fg

4. On a new terminal (get TERM variable and size of window)

echo $TERM
stty size

5. On the shell

export TERM=xterm-256color
stty rows 67 columns 318

Spawning TTY Shells

Interactive

/bin/sh -i

Perl To Shell

Ruby To Shell

Lua To Shell

AWK To Shell

Using Find For A Shell

Using Exec to Launch A Shell

Vim To Shell

Vim Escape

Last updated