def cmdline_del_to_start_of_line(w, size, key):
    pos = self.cmdline_edit.edit_pos
    self.cmdline_edit.edit_text = self.cmdline_edit.edit_text[pos:]
    self.cmdline_edit.edit_pos = 0
def cmdline_del_to_start_of_line(w, size, key):
    pos = self.cmdline_edit.edit_pos
    self.cmdline_edit.edit_text = self.cmdline_edit.edit_text[pos:]
    self.cmdline_edit.edit_pos = 0