public function newLine($count = 1) {

        // send out any escaping to implement anything sitting in the desired state
        $this->outputEscapeSequence();

        // if the $count is greater than one
        if (is_int($count) && $count > 1) {

            // send out the \n $count times
            for ($i=0; $i<$count; ++$i) {

                // echo the newline character
                $this->output("\n");
            }

        } else {
            // the parameter might be one or something crazy, just output one
            // echo the new line character
            $this->output("\n");
        }

        // fire the handler that indicates the cursor is sent to the left margin
        $this->carriageReturn();

        // chaining
        return $this;
    }
public function newLine($count = 1) {

        // send out any escaping to implement anything sitting in the desired state
        $this->outputEscapeSequence();

        // if the $count is greater than one
        if (is_int($count) && $count > 1) {

            // send out the \n $count times
            for ($i=0; $i<$count; ++$i) {

                // echo the newline character
                $this->output("\n");
            }

        } else {
            // the parameter might be one or something crazy, just output one
            // echo the new line character
            $this->output("\n");
        }

        // fire the handler that indicates the cursor is sent to the left margin
        $this->carriageReturn();

        // chaining
        return $this;
    }
public function newLine ( $ count = 1 ) { // send out any escaping to implement anything sitting in the desired state $ this -> outputEscapeSequence ( ) ; // if the $count is greater than one if ( is_int ( $ count ) && $ count > 1 ) { // send out the \n $count times for ( $ i = 0 ; $ i < $ count ; ++ $ i ) { // echo the newline character $ this -> output ( "\n" ) ; } } else { // the parameter might be one or something crazy, just output one // echo the new line character $ this -> output ( "\n" ) ; } // fire the handler that indicates the cursor is sent to the left margin $ this -> carriageReturn ( ) ; // chaining return $ this ; }
Move the cursor to the next line
This is not an ANSI sequence, but rather the ASCII code 12 or \n

@param int $count - the number of newlines to output
@return $this
Move the cursor to the next line This is not an ANSI sequence but rather the ASCII code 12 or \ n