Wow, looks like I missed the obvious. Only looked at channel related commands, but not window related ones. Thanks!
Edit: Hm, that leaves me with the problem of keeping track of channel state, since on TEXT is too late (sbcolor has already changed to
message by then) - but at least something I can work with