Former soldier Daniel Khalife marked a page in his diary with an asterisk after he decided he was going to break out of prison, a court has heard.