alias testbuffer {
clear
var %a = $gettok($readini($mircini, options, n3), 1, 44)
while (%a) {
echo -a %a : $line($active,0)
dec %a
}
.timer -m 2 0 echo -a some line : $!line($active,0)
}
This works fine on 6.3 in a custom window, channel window and status window.
There may be a discrepancy between $line() and the window buffer size because wrapped lines are counted differently in these routines. Also, since lines are wrapped on-the-fly ie. only when they are actually visible, there may be a further discrepancy. The window buffer size is mainly used to limit memory usage for users who need it, so it's really a round-about number, not a precise line count.