[Frontend-STFL] Detect xterm and rxvt variants properly