def reconstruct_prompt(self): def prompter(lp, s): l, p = lp return self.color(l) + str(p) + s + self.term.NORMAL self.prompt = str_list(list(map(prompter, enumerate(self.prefixes), self.suffixes)), ' ')
def recursive_print(self, printer, msgs): return self(str_list(msgs, j=' ', printer=printer))