Decoding SC tab flags

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Decoding SC tab flags

Post by jupe »

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.

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;
You do not have the required permissions to view the files attached to this post.

admin
Site Admin
Posts: 66094
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Decoding SC tab flags

Post by admin »

Bit 16 (eTabFlagCacheStale) is an internal flag added in conjunction with this fix:

Code: Select all

v23.00.0315 - 2022-05-17 13:47
    ! Tabs: Fixed a couple of glitches related to switching find tabs, find results 
      caching, multi-location searches, and tab relocation.
I should probably mask it out in the return of SC tab.
And yes, 8 = eTabFlagLiveFiltered.

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Decoding SC tab flags

Post by jupe »

Ah, I see you already made the changes in .0412, thanks! :tup:

Post Reply