A GREENOCK man turned up at his panic-stricken ex-girlfriend's front door four months after their brief three-week fling had ended.

David Kane managed to get into the common close where the young mum lives after bombarding her with text messages.

The town's sheriff court heard how the distressed woman felt trapped in her own home as Kane, 23, lurked outside and told her he knew she was there.

Prosecutor Frankie Morgan said: "The accused continued to text the complainer and he made reference about her keys being on the other side of the lock, so he knew she was inside.

"The complainer was now panicking that he was at her front door.

"She contacted the police and said that she felt bombarded and with no way out and nowhere to go.

"She said that she didn't know what to do."

Kane, of Bannockburn Street, had earlier sent numerous text messages to his ex, which she ignored along with his phone calls to her.

He then sent another text telling her that he was standing outside her flat and wanted in.

Fiscal depute Mr Morgan said: "She looked out and saw him in the street.

"He continued to constantly text her, and she continued to ignore him.

"The accused gained entry to the common close, but how he did this is unclear, and made his way to her door and began to knock."

Kane — who has been recalled to prison after being released on licence on another matter — committed the offence on February 26.

His relationship with the woman ended last October.

Defence lawyer Aidan Gallagher said: "He now accepts that the relationship is at an end and accepts his behaviour and the distress it caused to his former partner."

Sheriff Linda Smith told Kane: "This must have been a very frightening experience for this young lady."

The sheriff imposed a two-month prison sentence.

Kane is due to remain locked up until March next year.