Good point. But think that is a different topic all together. As far as getConsoleState() goes, I would only need it if I call another script and don't know the state that script left it in.

Which in that case, i would just set it to what i want, rather than having an if-else to decide if i need to reset it. That's just me.

If setconsole returned the previous state, that still wouldn't help you if you don't know the state. You'd have to call setconsole to get the current state, which would just then be the previous state. And what is the point of that?
_________________________
Eric