Defines a new progress bar with the given information.
        :param command: The command object that holds all the necessary information from the remote process.

def set_task(self, command):
        """
        Defines a new progress bar with the given information.
        :param command: The command object that holds all the necessary information from the remote process.
        """
        self.tasks[command.task_id] = command.task

        self.longest_bar_prefix_size = self.longest_bar_prefix_value()

        # Redraw
        self.changes_made = True
        self.redraw()