def process_command(self, line):
    if (' | ' in line):
        (line, piping_command) = line.split(' | ', 1)
        piping_started = self.activate_piping(piping_command)
        if (not piping_started):
            return False
    processed = False
    if self.sub_processor:
        processed = self.delegate_to_sub_processor(line)
    if (not processed):
        if self.continuing_to:
            processed = self.continue_command(line)
        else:
            processed = self.parse_and_execute_command(line)
        if ((not self.continuing_to) and (not self.awaiting_keystroke) and (not self.is_done) and processed and (not self.sub_processor)):
            self.finish_piping()
            self.show_prompt()
    return processed
def process_command(self, line):
    if (' | ' in line):
        (line, piping_command) = line.split(' | ', 1)
        piping_started = self.activate_piping(piping_command)
        if (not piping_started):
            return False
    processed = False
    if self.sub_processor:
        processed = self.delegate_to_sub_processor(line)
    if (not processed):
        if self.continuing_to:
            processed = self.continue_command(line)
        else:
            processed = self.parse_and_execute_command(line)
        if ((not self.continuing_to) and (not self.awaiting_keystroke) and (not self.is_done) and processed and (not self.sub_processor)):
            self.finish_piping()
            self.show_prompt()
    return processed