'Set/get title.'

def title(self, txt=None):

    if txt:
        self.SetConsoleTitleA(txt)
    else:
        buffer = c_buffer(200)
        n = self.GetConsoleTitleA(buffer, 200)
        if (n > 0):
            return buffer.value[:n]
