def METHOD_NAME(self, text: str) -> None:
    if self.current_input:
        x = truncate_point_for_length(self.current_input, self.cursor_pos) if self.cursor_pos else 0
        self.current_input = self.current_input[:x] + text + self.current_input[x:]
    else:
        self.current_input = text
    self.cursor_pos += wcswidth(text)