Added in 1.8.2

$screen

Returns the name of the first screen found.


$screen(N)

Returns the name of the Nth screen found.

Parameters

N - If N = 0, the number of screens found, otherwise the Nth screen.

; Print number of screens.
//echo -ag $screen(0)

; Print the name of the first screen found.
//echo -ag $screen(1)