Contrib method to set console title

Uses ANSI terminal escape sequences to send a string as the terminal
title.