Cline » History » Revision 19
Revision 18 (Per Amundsen, 02/15/2023 09:28 PM) → Revision 19/20 (Per Amundsen, 11/15/2023 06:36 PM)
_Added in 1.9.3_
*/cline [-bhlmrSW] [c] <#channel|@name> <N|nick>*
Changes the color of the Nth line or nick to color [c].
If [c] is not defined, the line will be reset to default color.
*Switches*
table(ktable).
|*Switch*|*Description*|
| -b | Indicates the [c] color is in [[$rgb]] format. *(AdiIRC only)* |
| -h | Highlights the window's button. (if window is not active) |
| -l | Apply to side-listbox. |
| -m | *TODO* |
| -r | Reset an item in the side-listbox to default; [c] parameter must be omitted. |
| -t | Apply to text buffer. *(AdiIRC only)* |
| -S | Use status window. *(AdiIRC only)* |
| -W | Allow using a channel or query window name for @name. *(AdiIRC only)* |
*Parameters*
table(ktable).
|*Parameter*|*Description*|
| [c] | Optional line color. |
| <@name> | Custom window name. |
| <notextile><N|nick></notextile> | Line number or matching side-listbox item to color. |
*Example*
<pre>
alias example {
; Open a custom window.
/window @Example
; Add a 'Hello World' line to the custom window.
/aline @Example Hello World
; Change the color of the first line to red (4).
/cline 4 @Example 1
; Change the color of the first line to rgb color blue
/cline -b $rgb(0,0,255) 1
}
</pre>