def xtermTitle(mystr):
if havecolor and dotitles and os.environ.has_key("TERM") and sys.stderr.isatty():
myt=os.environ["TERM"]
legal_terms = ["xterm","Eterm","aterm","rxvt","screen","kterm","rxvt-unicode"]
for term in legal_terms:
if myt.startswith(term):
sys.stderr.write("\x1b]2;"+str(mystr)+"\x07")
sys.stderr.flush()
break
if myt.startswith("screen"):
sys.stderr.write("\x1bk"+str(mystr)+"\x1b\\")
sys.stderr.flush()

dmx.c:43:25: error: X11/Xlibint.h: No such file or directory
dmx.c:44:33: error: X11/extensions/Xext.h: No such file or directory
dmx.c:46:36: error: X11/extensions/extutil.h: No such file or directory