Coding standards
Security in ResourceSpace
Developer reference
Database
User api session functions
Geolocation functions
Storage test functions
Cli functions
Lang translation functions

cli_is_interactive()

Description

Check whether the output supports an animated status line.

Parameters

ColumnTypeDefaultDescription
bool { :
$style: string

Return

bool True for interactive terminals that support ANSI controls.

Location

include/cli_functions.php lines 8 to 12

Definition

 
function cli_is_interactive(): bool
{
    static 
$interactive = null;
    return 
$interactive ??= defined('STDOUT') && stream_isatty(STDOUT) && getenv('TERM') !== 'dumb';
}

This article was last updated 27th November 2026 18:35 Europe/London time based on the source file dated 27th November 2026 17:15 Europe/London time.