xxxxxxxxxx
#background shell process
Ctrl-Z
#check number of rows and columns in host terminal
stty -a
#setting basic terminal settings
stty raw -echo
#return to shell
fg + ENTER
#declaring environment variables to be able to use reserved commands and set colors
reset
export SHELL=bash
export TERM=xterm-256color
#setting the terminal rows and columns based on the host configuration
stty rows <num> columns <cols>