System.Console.ANSI in Haskell, Reset Terminal Title.
<p>I am using System.Console.ANSI in my Haskell program to set the terminal title, but when my program exits the title of the terminal is persistent. </p>

<p>I can only assume this would be a slight annoyance to those using my program who wish to work on something else in the same terminal.</p>

<p>I can cheat and reset it to 'Terminal' but that is under the assumption that the terminal used, is by default called 'Terminal' which I know is not always the case.</p>

<p>I am wondering if there is a way of setting or resetting the title when the user selects to quit my program? </p>