identifying terminal by escape codes?