src/TerminalObject/Dynamic/Animation.php
protected function getLineFormatted($line, $key, $last_frame_count)
    {
        // If this is the first thing we're writing, just return the line
        if ($last_frame_count == 0) {
            return $line;
        }

        $content = '';

        // If this is the first line of the frame,
        // move the cursor up the total number of previous lines from the previous frame
        if ($key == 0) {
            $content .= $this->util->cursor->up($last_frame_count);
        }

        $content .= $this->util->cursor->startOfCurrentLine();
        $content .= $this->util->cursor->deleteCurrentLine();
        $content .= $line;

        return $content;
    }
protected function getLineFormatted($line, $key, $last_frame_count)
    {
        // If this is the first thing we're writing, just return the line
        if ($last_frame_count == 0) {
            return $line;
        }

        $content = '';

        // If this is the first line of the frame,
        // move the cursor up the total number of previous lines from the previous frame
        if ($key == 0) {
            $content .= $this->util->cursor->up($last_frame_count);
        }

        $content .= $this->util->cursor->startOfCurrentLine();
        $content .= $this->util->cursor->deleteCurrentLine();
        $content .= $line;

        return $content;
    }
protected function getLineFormatted ( $ line , $ key , $ last_frame_count ) { // If this is the first thing we're writing, just return the line if ( $ last_frame_count == 0 ) { return $ line ; } $ content = '' ; // If this is the first line of the frame, // move the cursor up the total number of previous lines from the previous frame if ( $ key == 0 ) { $ content .= $ this -> util -> cursor -> up ( $ last_frame_count ) ; } $ content .= $ this -> util -> cursor -> startOfCurrentLine ( ) ; $ content .= $ this -> util -> cursor -> deleteCurrentLine ( ) ; $ content .= $ line ; return $ content ; }
Format the line to re-write previous lines, if necessary

@param string $line
@param integer $key
@param integer $last_frame_count

@return string
Format the line to re - write previous lines if necessary