Actions
$line » History » Revision 1
Revision 1/12
| Next »
Per Amundsen, 08/11/2015 01:22 PM
Added in 1.9.0
$line(@name,N,[T])
Returns the Nth line of text in the specified window.
Parameters
@name - The window to retrieve text from.
N - If N = 0 number of lines, otherwise the Nth line.
[T] - If T = 0 use display area (default) if T = 1, use side-listbox. (optional)
Example
; Create a custom window. /window @Example ; Add a few lines to the window. /aline @Example Test1 /aline @Example Test2 /aline @Example Test3 ; Print number of lines in the window. //echo -ag $line(@Example, 0) ; Print the second line in the window. //echo -ag $line(@Example, 2)
Updated by Per Amundsen over 9 years ago · 1 revisions