Sir Salman Rushdie has described in graphic detail the moment in 2022 when a masked man rushed at him on a stage in western New York and repeatedly slashed him with a knife, leaving him with life-threatening injuries.

The 77-year-old author addressed jurors on the second day of evidence at the trial of Hadi Matar, 27, who has pleaded not guilty to attempted murder and assault in the attack.

“I only saw him at the last minute,” Sir Salman said.

“I was aware of someone wearing black clothes, or dark clothes and a black face mask. I was very struck by his eyes, which were dark and seemed very ferocious.”

Sir Salman said he first thought his knife-wielding attacker was striking him with a fist.

“But I saw a large quantity of blood pouring onto my clothes,” he said. “He was hitting me repeatedly. Hitting and slashing.”

Sir Salman said he was struck more times in his chest and torso and stabbed in his chest as he struggled to get away.

“I was very badly injured. I couldn’t stand up any more. I fell down,” he said.

While lying on the stage, he recalled “a sense of great pain and shock, and aware of the fact that there was an enormous quantity of blood that I was lying in”.

“It occurred to me that I was dying. That was my predominant thought,” he said.

Hadi Matar is escorted into court (Gene J Puskar/AP)

His wife, Rachel Eliza Griffiths, cried from her seat in the court’s second row.

Sir Salman was blinded in one eye in the attack and spent months recovering, a process he detailed in a memoir released last year. A speaker who was to appear with Sir Salman also was wounded.

Jurors heard opening statements on Monday, followed by evidence from staff at the Chautauqua Institution, the non-profit art and education centre where the attack happened about 75 miles south of Buffalo.

The trial is expected to last up to two weeks.

Jurors are unlikely to hear about a fatwa issued by the late Iranian leader Ayatollah Ruhollah Khomeini calling for Sir Salman’s death, according to district attorney Jason Schmidt.

Sir Salman, the author of Midnight’s Children and Victory City, spent years in hiding after Khomeini announced the fatwa in 1989 following publication of the novel The Satanic Verses, which some Muslims consider blasphemous.

In this courtroom sketch, lawyer Lynn Shaffer asks her client Hadi Matar, left, to stand while giving her opening statement in court (Elizabeth Williams via AP)

Mr Schmidt has said discussing motive will be unnecessary in the state trial, given the attack was seen by a live audience that was expecting to hear Sir Salman present a lecture on keeping writers safe.

“This is not a case of mistaken identity,” Mr Schmidt said during opening statements on Monday. “Mr Matar is the person who attacked Mr Rushdie without provocation.”

A public defender representing Matar told jurors that the case is not as straightforward as prosecutors have made it out to be.

“The elements of the crime are more than ‘something really bad happened’ — they’re more defined,” Lynn Schaffer said. “Something bad did happen, something very bad did happen, but the district attorney has to prove much more than that.”