I dunno how the data in your window looks like in detail, but I guess you want to do something like:
menu @glines {
$iif(($sline($active,1)),REMOVE $sline($active,0) selected gline(s)) : {
while ($sline($active,1)) {
ECHO -s gline - $+ $v1
dline $active $sline($active,1).ln
}
}
}
note that I prefixed the actual gline-removal command with an "echo -s" so you can test it...
You may use token identifiers to get only the mask part of $v1 = currently processed line, e.g.: (echo -s) gline - $+
$gettok($v1,2,32)