$cb » History » Version 4
Per Amundsen, 08/09/2015 06:09 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$cb* |
||
4 | |||
5 | Returns the clipboard contents. |
||
6 | |||
7 | 3 | Per Amundsen | ----------------------------------------------------------------------------- |
8 | |||
9 | 1 | Per Amundsen | *$cb(N)* |
10 | |||
11 | Returns a line of text from the clipboard. |
||
12 | |||
13 | *Parameters* |
||
14 | |||
15 | 4 | Per Amundsen | N - If N = 0 returns total number of lines in the clipboard otherwise return the Nth line in the clipboard. |
16 | 1 | Per Amundsen | |
17 | *Properties* |
||
18 | |||
19 | 4 | Per Amundsen | .len - If N = 0 returns total length of all lines in the clipboard otherwise return length of the Nth line. |
20 | 1 | Per Amundsen | |
21 | *Êxample* |
||
22 | |||
23 | <pre> |
||
24 | ;Return number of lines in the clipboard |
||
25 | //echo -ag $cb(0) |
||
26 | |||
27 | ;Return 5th line in the clipboard |
||
28 | //echo -ag $cb(5) |
||
29 | |||
30 | ;Return length of the 5th line in the clipboard |
||
31 | //echo -ag $cb(5).len |
||
32 | </pre> |