Glamorgan captain Jacques Rudolph says the side is building confidence after battling back against Leicestershire.
Leicestershire are 75 for three, chasing 324 to win on the final day, even though the target looked as though it could be under 200 at one stage.
Glamorgan are in sight of a fourth straight Championship win and Rudolph was pleased with their efforts in Cardiff.
"We've fought really hard from tough situations," Rudolph said.
"There's a very strong courage of conviction and a strong confidence that whatever the scoreboard says, we will always fight out of it."
Rudolph made a patient 74 but the tail-end hitting led by Andrew Salter with 54 not out allowed Glamorgan to recover from 105 for 6 to make 298 in their second innings.
"We've put ourselves in a position to win the game if we can get early poles, I think it'll be difficult for them if we bowl well," Rudolph added.
The captain's innings lasted 230 balls as he helped Glamorgan to survive the damage caused by Leicestershire seamer Ben Raine,
Raine's spell of four for two left Glamorgan in deep trouble with four ducks in the scorebook.
"It's potentially the best bowling we've faced this season with hardly any balls to score from," Rudolph said.
"We managed to get a few partnerships going with myself and Colin (Ingram), myself and Waggy (Graham Wagg), and I thought that Andrew Salter played out of his skin."
Salter's innings was his maiden half-century for the county, adding 70 for the ninth wicket with Michael Hogan in just eight overs as the pair went for their shots.
"I'm chuffed to get that first fifty," Salter said.
"I've been working really hard in the nets to try to get a peformance like that so I'm definitely happy it happened today
"But Jacques Rudolph played absolutely brilliantly, his knock was the anchor to our innings.
"It's exciting (having the chance of a fourth straight win) and we've played good cricket. We've had similar wins and if we execute our skills well I'm sure we can do it."
Glamorgan's last sequence of four consecutive victories was in 2004, with the last of those also coming against Leicestershire in Cardiff.