def set_title(title, mode=<NUM_LIT:0>):
if os.name == '<STR_LIT>':<EOL><INDENT>from .windows import set_title<EOL>return set_title(title)<EOL><DEDENT>else:<EOL><INDENT>if _CHOSEN_PALETTE:<EOL><INDENT>text = f'<STR_LIT>'<EOL>_write(text)<EOL>return text<EOL><DEDENT><DEDENT>
Set the title of the terminal window/tab/icon.

        Arguments:
            title:  str
            mode:  | 0 | 'both'   - Set icon/taskbar and window/tab title
                   | 1 | 'icon'   - Set only icon/taskbar title
                   | 2 | 'title'  - Set only window/tab title