public function clearScreen() {

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

        // escape sequences to clear screen and move it up
        $this->output(EscapeSequenceGenerator::generateClearScreenSequence());

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

        // chaining
        return $this;
    }
public function clearScreen() {

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

        // escape sequences to clear screen and move it up
        $this->output(EscapeSequenceGenerator::generateClearScreenSequence());

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

        // chaining
        return $this;
    }
public function clearScreen ( ) { // send out any escaping to implement anything sitting in the desired state $ this -> outputEscapeSequence ( ) ; // escape sequences to clear screen and move it up $ this -> output ( EscapeSequenceGenerator :: generateClearScreenSequence ( ) ) ; // fire the handler that indicates the cursor is sent to the left margin $ this -> carriageReturn ( ) ; // chaining return $ this ; }
Clear the screen and move cursor to the top.

@return $this
Clear the screen and move cursor to the top .