settitle.sh

Home   »   settitle.sh

# working on vt100 family (not sure which is the base model this works)

settitle ()
{
 typeset title="${1}"

 [ ! -z "${CURTITLE}" ] &&
   {
     export OLDTITLE="${CURTITLE}"
   }

 export CURTITLE="${title}"

 printf "\033]0;%s\007" "${title}"
}

Leave a Reply

Your email address will not be published. Required fields are marked *