Project

General

Profile

Rline » History » Revision 3

Revision 2 (Per Amundsen, 08/10/2014 04:09 AM) → Revision 3/9 (Per Amundsen, 08/10/2015 09:02 AM)

_Added in 1.9.5_ 

 */rline [-ahsl] [c] <@name> <N> <text>*  

 Replaces the Nth N'th line in a custom @window with a new line.  

 *Switches* 

 -a - Selects the newly added item while keeping the old selection in a listbox. 
 -h - Highlights the window's node in the treebar is the window is not active. 
 -s - Clears the old selection in a listbox and selects the newly added item. 
 -l - Specify the action to take place on the side-listbox, 

 *Parameter* 

 [c] - An optional color number for the line  
 <@name> - Name of the custom window. 
 <N> - The line to change. 
 <text> - Text to insert. 

 *Example* 

 <pre> 
 alias example { 
   ; Open ;Open a custom window. 
   /window -de @Example @Foo 
 
   ; Add ;Add a line with the text 'Line A'. "Line A" 
   /aline @Example @Foo Line A 
 
   ; Add ;Add a line with the text 'Line B'. "Line B" 
   /aline @Example @Foo Line B 

   ; Add ;Add a line with the text 'Line C'. "Line C" 
   /aline @Example @Foo Line C 

   ; Change ;Change the text of the second line to 'Line D'. "Line D" 
   /dline @Example @Foo 2 Line D 
 } 

 </pre>