'Updates the window title using different methods, according to the given platform.
:param title: The new window title.
:type title: string
:param platform: The platform string.
:type platform: string
:return: Nothing.
:rtype: None
:raise: RuntimeError: When the given platform isn\'t supported.'

def _update_title(self, title, platform):

    try:
        if ((platform == 'linux') or (platform == 'linux2') or (platform == 'cygwin')):
            stdout.write('\x1b]2;{}\x07'.format(title))
            stdout.flush()
        elif ((platform == 'darwin') or (platform == 'freebsd10')):
            stdout.write('\x1b]0;{}\x07'.format(title))
            stdout.flush()
        elif (platform == 'win32'):
            ctypes.windll.kernel32.SetConsoleTitleA(title.encode())
        else:
            self.bot.logger.warn('Unable    to    set    window    title.    OS    {}    not    supported.'.format(platform))
    except AttributeError:
        self.emit_event('log_stats', level='error', formatted='Unable    to    write    window    title')
        self.terminal_title = False
    self._compute_next_update()
