Prisoners were usually allowed to spend a bit of time under open sky per day. They were kept in isolated small courtyards.