A man who once shared a cell with accused killer Kalen Schlatter fumed, sighed and swore in the witness box Wednesday as his cross-examination by Schlatter's defence lawyer stretched into its second day.

The mood in the courtroom was exceptionally tense as the witness, who can only be referred to as E.S. because of a publication ban, was questioned by lawyer Lydia Riva, who asked him about his lengthy criminal record over and over again.

E.S. was very clearly agitated, and repeatedly insinuated that Riva was a bad lawyer. He said everyone he knows who has used a female defence lawyer "gets shafted."

"That's because you hate women, right?" Riva shot back.

At some points the judge, witness and both sets of lawyers ended up talking over each other as objections flew.

"You're wasting everybody's time here ... you don't have to make me look like a bad person. I'm a bad person," the witness said. "I'm not the bad guy for this trial."

"My record is horrible," the witness later said. "I commit crimes, I don't kill people."

After an hour, the witness raised both his arms in celebration when Riva said she had no more questions.

WATCH: Security footage shows Schlatter and Richey in alley before he leaves alone

This footage of Kalen Schlatter and Tess Richey was played at Schlatter's first-degree murder trial. The two can be seen walking together down an alleyway. Schlatter leaves on his own some time later. 0:24

The informant, who court heard Tuesday has a "huge criminal record" spanning decades, previously testified that Schlatter confessed to him that he strangled Richey with a scarf when she refused to have sex with him hours after they met.

Richey, 22, went missing after a night out with a friend in November 2017. Her body was found in a stairwell days later by her mother and a family friend. Schlatter has pleaded not guilty to first-degree murder.

Court previously heard the witness and Schlatter shared a cell at a Toronto detention centre for roughly two months in 2018.

E.S. said Tuesday that Schlatter told him about meeting Richey at Crews and Tangos in the city's gay village and going to a hot dog stand with her and her friend afterwards. Schlatter said he took Richey down an alley after her friend left, the informant said.

Richey, 22, went missing in 2017 after a night out with a high school friend. Her body was found four days later. (Tess Richey/Facebook)

He said Schlatter recalled making out with Richey in a stairwell, then losing control when she told him she didn't want to go any further.

"He was sexually aroused, he wanted to keep going, she wanted to stop," E.S. said Schlatter told him.

"He tied a scarf around her neck. She was on the ground and it excited him. He was past the point of no control. He ejaculated on her."

The informant testified Schlatter said that Richey was dead when he removed the scarf. Schlatter described finding Richey's purse at the top of the stairs and taking $60 from her, E.S. told the court Tuesday.

He said Schlatter reported having consumed ecstasy, cannabis edibles and alcohol that night.

It's expected the Crown could finish up its case Thursday.

adam.carter@cbc.ca