$screen » History » Version 1
Per Amundsen, 08/11/2015 10:53 AM
| 1 | 1 | Per Amundsen | _Added in 1.8.2_ |
|---|---|---|---|
| 2 | |||
| 3 | *$screen* |
||
| 4 | |||
| 5 | Returns the name of the first screen found. |
||
| 6 | |||
| 7 | ----------------------------------------------------------------------------- |
||
| 8 | |||
| 9 | *$screen(N)* |
||
| 10 | |||
| 11 | Returns the name of the Nth screen found. |
||
| 12 | |||
| 13 | *Parameters* |
||
| 14 | |||
| 15 | N - If N = 0, the number of screens found, otherwise the Nth screen. |
||
| 16 | |||
| 17 | <pre> |
||
| 18 | ; Print number of screens. |
||
| 19 | //echo -ag $screen(0) |
||
| 20 | |||
| 21 | ; Print the name of the first screen found. |
||
| 22 | //echo -ag $screen(1) |
||
| 23 | </pre> |