Move new function 'get_match_children' from deepin-terminal.