Use the tsl and fsl terminfo(5) capabilities to update terminal title