Man blames knife attack on SMS from ex-lover

A TEXT message from a jilted ex-lover allegedly pushed a Urangan man to terrorise his flatmates and "best friend" with a kitchen knife, a court has heard.

Eric Roger Frederick Heuer is on trial in the Supreme Court in Brisbane after pleading not guilty to attempting to murder his two flatmates at Urangan.

Crown Prosecutor Brendan Campbell told the court yesterday that Mr Pettitt and Mr Drury invited Heuer to move into their two-storey townhouse a few weeks before the attack.

The trio played poker together and had been at the Hervey Bay Golf Club on the night of November 17, 2011.

Mr Campbell said Heuer cooked the men dinner once they returned home from poker before Mr Drury "crashed" on the couch.

Mr Campbell told the jury they would hear from Mr Drury, who would recall waking up from a deep sleep with someone he thought was punching him.

The Crown alleges, in fact, it was Heuer stabbing Mr Drury.

The court heard the mother of Heuer's daughter had sent him a text message 10 days prior telling him to stay out of her life.

"I know all about your lies, I deserve better," she wrote in the text.

Defence barrister Jack Pappas told the jury Heuer's mental health state was the central issue in the case.

"It's the one issue that you will have to grapple with at the end of the evidence," he said.

"Was he in fact insane as defined by law?"

The trial continues.