!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html_v5_10/vendor/laravel/prompts/src/Concerns/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Scrolling.php (2.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Laravel\Prompts\Concerns;

use 
Laravel\Prompts\Themes\Contracts\Scrolling as ScrollingRenderer;

trait 
Scrolling
{
    
/**
     * The number of items to display before scrolling.
     */
    
public int $scroll;

    
/**
     * The index of the highlighted option.
     */
    
public ?int $highlighted;

    
/**
     * The index of the first visible option.
     */
    
public int $firstVisible 0;

    
/**
     * Initialize scrolling.
     */
    
protected function initializeScrolling(?int $highlighted null): void
    
{
        
$this->highlighted $highlighted;

        
$this->reduceScrollingToFitTerminal();
    }

    
/**
     * Reduce the scroll property to fit the terminal height.
     */
    
protected function reduceScrollingToFitTerminal(): void
    
{
        
$reservedLines = ($renderer $this->getRenderer()) instanceof ScrollingRenderer $renderer->reservedLines() : 0;

        
$this->scroll max(1min($this->scroll$this->terminal()->lines() - $reservedLines));
    }

    
/**
     * Highlight the given index.
     */
    
protected function highlight(?int $index): void
    
{
        
$this->highlighted $index;

        if (
$this->highlighted === null) {
            return;
        }

        if (
$this->highlighted $this->firstVisible) {
            
$this->firstVisible $this->highlighted;
        } elseif (
$this->highlighted $this->firstVisible $this->scroll 1) {
            
$this->firstVisible $this->highlighted $this->scroll 1;
        }
    }

    
/**
     * Highlight the previous entry, or wrap around to the last entry.
     */
    
protected function highlightPrevious(int $totalbool $allowNull false): void
    
{
        if (
$total === 0) {
            return;
        }

        if (
$this->highlighted === null) {
            
$this->highlight($total 1);
        } elseif (
$this->highlighted === 0) {
            
$this->highlight($allowNull null : ($total 1));
        } else {
            
$this->highlight($this->highlighted 1);
        }
    }

    
/**
     * Highlight the next entry, or wrap around to the first entry.
     */
    
protected function highlightNext(int $totalbool $allowNull false): void
    
{
        if (
$total === 0) {
            return;
        }

        if (
$this->highlighted === $total 1) {
            
$this->highlight($allowNull null 0);
        } else {
            
$this->highlight(($this->highlighted ?? -1) + 1);
        }
    }

    
/**
     * Center the highlighted option.
     */
    
protected function scrollToHighlighted(int $total): void
    
{
        if (
$this->highlighted $this->scroll) {
            return;
        }

        
$remaining $total $this->highlighted 1;
        
$halfScroll = (int) floor($this->scroll 2);
        
$endOffset max(0$halfScroll $remaining);

        if (
$this->scroll === 0) {
            
$endOffset--;
        }

        
$this->firstVisible $this->highlighted $halfScroll $endOffset;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]--