[Frontend-STFL] merging this (xterm detection patch) for realsies