Fix terminal title and pegasus support.