Decoding SC tab flags
Posted: 02 Sep 2024 08:34
Don I have been getting some confusing values returned from SC tab("get", "flags"), such as 16,17,18,20,21,24,29, I have deduced that having a LF active adds 8 to the flags return value (which isn't doc'd), but numbers this high have me confused.
So far I have only seen it happen occasionally in my main config, so is it just an anomaly, or are there more undoc'd flags to be aware of?
I knocked up a quick script to check open tabs if you were interested in seeing if it's repro-able.
So far I have only seen it happen occasionally in my main config, so is it just an anomaly, or are there more undoc'd flags to be aware of?
I knocked up a quick script to check open tabs if you were interested in seeing if it's repro-able.
Code: Select all
$r=; foreach(,"1|2") { $r .= "PANE <get pane> TAB FLAGS<br>"; while ($i++ < tab(, c)) { $r .= "Tab$i<tab>= " . tab(, "flags", $i) . <br>; } $i=; focus "PI"; } text $r;