NAME

shiftpressed - detect if shift key pressed

SYNOPSIS

/usr/sbin/shiftpressed

DESCRIPTION

This command tests if the shift key is pressed on the console connected to the stdin. It returns an exit status of 0 if the key is pressed, 2 if it is not, and 1 if the stdout is not a console or the state cannot be determined for some other reason.

PLATFORMS

Redhat7, Redhat9

AUTHOR

Paul Anderson <dcspaul@inf.ed.ac.uk>