Still on the fence with this one. I think it's safe to say that I know the state of my console at all times, but if for some reason you don't this could be useful.

Anyway, if getConsoleState is added, you could write a wrapper for setconsole

code:
 
function setconsole2($state)
$setconsole2 = getConsoleState()
setconsole($state)
endfunction

_________________________
Eric