'Display a character at the current cursor position and advance
the cursor if :data:`~pyte.modes.DECAWM` is set.
:param str char: a character to display.'

def draw(self, char):

    char = char.translate([self.g0_charset, self.g1_charset][self.charset])
    if (self.cursor.x == self.columns):
        if (mo.DECAWM in self.mode):
            self.carriage_return()
            self.linefeed()
        else:
            self.cursor.x -= 1
    if (mo.IRM in self.mode):
        self.insert_characters(1)
    self.buffer[self.cursor.y][self.cursor.x] = self.cursor.attrs._replace(data=char)
    self.cursor.x += 1
