Rewrite terminal auto-title