Praying in Pajamas

If there is someone in your presence not dressed in a צנוע way, can you merely turn your head while reciting Shema? Is closing your eyes enough? If it's dark is there any need to turn your head at all?