예제 #1
0
 def strip(self, line, space=1):
     text = XM.ansiToRaw(line)
     #statusWindow().write("Type: \"" + str(type(text)) + "\"\n")
     #statusWindow().write("str(text): \"" + str(text) + "\"\n")
     #statusWindow().write("text: \"" + text + "\"\n")
     stripped = line
     prompt = 0
     if re.match(ur'^>', text) != None:
         prompt = 1
         stripped = re.sub(ur'[^>]*> ', '', stripped)