A woman allegedly woke to discover her ex-boyfriend by her bedside holding a knife, the High Court heard today.
Christopher Bennett is accused of threatening to kill himself and her if she didn't get up and accompany him to another house, prosecutors said.
He also held a second knife to his throat before friends intervened and took it from him.
Bennett, 22, of Stiles Farm, Antrim, faces charges of aggravated burglary, attempted criminal damage, threats to kill, and possession of an offensive weapon with intent to commit and offence.
He was granted bail to live with an uncle in England on condition that he does not return to Northern Ireland until his trial.
The alleged offences relate to an incident in the Magherafelt area on April 26.
Fiona O'Kane, prosecuting, said Bennett's ex-girlfriend claimed she was asleep in a house when she woke and found him by the bed holding a knife.
The woman told police she feared for her life when she went with him to another property, the court heard.
According to Mrs O'Kane, Bennett allegedly slashed at banisters before grabbing a large kitchen knife which he put to his own throat amid threats of self-harm.
Friends who phoned police entered and managed to get the knife from him, she added.
Joe Brolly, defending, told the court that since the incident "tentative steps have been taken by the injured party" towards his client.
After being informed of the job offer Mr Justice Horner agreed to grant bail.
Imposing a ban on alcohol and on any contact with the alleged victim, the judge added: "He is not to return to Northern Ireland except for his trial."