Syntax: #CAP number windowname
Related: Editor window

Captures the last number lines of text, and copies them into another window. If number is missing, the last line is copied. If number is -1, all lines are copied. If windowname is specified, the lines are sent to the named window (the window is created if it doesn't exist). If windowname is omitted, the lines are sent to the command editor window.

CAPTURE examples

capture the last line from the server and copy it into the editor window.

#TRIGGER {tells you} {#CAP tell;#GAG}

When a line containing the string 'tells you' is received from the server, the capture command copies the line to the tell window, and the gags it from the current window.

Add comment

Login or register to post comments