screen

screen is a virtual terminal manager and a lot more besides. One of my (un)usual tricks is to use it as a replacement:

$ screen /dev/tty.Bluetooth-Modem 38400

Resources:

Relaunch last screen session via .bash_profile

if [[ `screen -list | grep Detached | wc -l` == 0 ]]; then
  if [ ! ${SSH_TTY} ]; then
    exec screen
  else
    screen
  fi
else
  if [ ! ${SSH_TTY} ]; then
    exec screen -dRR
  else
    screen -dRR
  fi
fi
clear
(via)

This page is referenced in: