CUD.php 932 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * CUD - CURSOR DOWN
  4. *
  5. * CUD causes the active presentation position to be moved downwards
  6. * in the presentation component by n line positions if the character
  7. * path is horizontal, or by n character positions if the character
  8. * path is vertical, where n equals the value of Pn.
  9. */
  10. namespace Bramus\Ansi\ControlSequences\EscapeSequences;
  11. class CUD extends Base
  12. {
  13. // This EscapeSequence has ParameterByte(s)
  14. use \Bramus\Ansi\ControlSequences\Traits\HasParameterBytes;
  15. /**
  16. * CUD - CURSOR DOWN
  17. * @param mixed $parameterBytes The Parameter Bytes
  18. */
  19. public function __construct($parameterBytes = 1)
  20. {
  21. // Store the parameter bytes
  22. $this->setParameterBytes($parameterBytes);
  23. // Call Parent Constructor (which will store finalByte)
  24. parent::__construct(
  25. \Bramus\Ansi\ControlSequences\EscapeSequences\Enums\FinalByte::CUD
  26. );
  27. }
  28. }