Project

General

Profile

Rline » History » Revision 2

Revision 1 (Per Amundsen, 08/03/2014 10:55 PM) → Revision 2/9 (Per Amundsen, 08/10/2014 04:09 AM)

_Added in 1.9.5_ 

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

 Replaces the 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. TODO 
 -h - Highlights the window's node in the treebar is the window is not active. TODO 
 -s - Clears the old selection in a listbox and selects the newly added item. TODO 
 -l - Specify the action to take place on the side-listbox, TODO 

 *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 a custom window. 
   /window -de @Foo 
 
   ;Add a line with the text "Line A" 
   /aline @Foo Line A 
 
   ;Add a line with the text "Line B" 
   /aline @Foo Line B 

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

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

 </pre>