...and 3 for closed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90506\"][{POST_SNAPBACK}][/a][/div]
Couldn't resist the urge to test :
if you press the little button closest to the keyboard which is pressed when the shell is closed while running this in a console (you can't type anything on the keyboard when this button is pressed) :
"while true; do clear; chkhinge; echo $?; sleep 1; done" you'll get "1" : a bit is set when a button is pressed, the closest is the less significant bit, the other is the most significant.