PTM_U: Implemented the GetShellState function.

Uses a new miscellaneous setting for the shell state, default to true.