![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/gositeme.com/public_html/whmcs/vendor/league/climate/src/Util/ |
<?php
namespace League\CLImate\Util;
class Cursor
{
/**
* Move the cursor up in the terminal x number of lines.
*
* @param int $lines
*
* @return string
*/
public function up($lines = 1)
{
return "\e[{$lines}A";
}
/**
* Move the cursor down in the terminal x number of lines.
*
* @param int $lines
*
* @return string
*/
public function down($lines = 1)
{
return "\e[{$lines}B";
}
/**
* Move the cursor right in the terminal x number of columns.
*
* @param int $cols
*
* @return string
*/
public function right($columns = 1)
{
return "\e[{$columns}C";
}
/**
* Move the cursor left in the terminal x number of columns.
*
* @param int $cols
*
* @return string
*/
public function left($cols = 1)
{
return "\e[{$cols}D";
}
/**
* Move cursor to the beginning of the current line.
*
* @return string
*/
public function startOfCurrentLine()
{
return "\r";
}
/**
* Delete the current line to the end.
*
* @return string
*/
public function deleteCurrentLine()
{
return "\e[K";
}
/**
* Get the style for hiding the cursor
*
* @return string
*/
public function hide()
{
return "\e[?25l";
}
/**
* Get the style for returning the cursor to its default
*
* @return string
*/
public function defaultStyle()
{
return "\e[?25h";
}
}