Clue: Hole, inside which pretty terrified inmate starts detention (9)
Answer: CAPTIVITY
Explanation: Definition: detention
An envelope ('inside which') of PTI ('**P**retty **T**errified **I**nmates starts') in CAVITY ('hole').