Faf du Plessis hit a solid half-century as South Africa made steady progress on the second day of the third and final Test against the West Indies at Newlands on Saturday.
South Africa were 135 for two at tea in reply to the West Indian first innings total of 329. Du Plessis was unbeaten on 51.
The hosts suffered a setback when Dean Elgar was leg before wicket to Jason Holder for eight in the last over before lunch.
But Du Plessis and Alviro Petersen put on 56 for the second wicket before opening batsman Petersen was run out by a direct hit from Jermaine Blackwood at point for 42.
It was a cruel blow for Petersen, whose place is under threat after a string of modest scores.
Fast bowlers Dale Steyn and Morne Morkel took two wickets each as South Africa wrapped iup the West Indian first innings inside the first hour.
Resuming at 276 for six, the West Indies lost their remaining four wickets amid a flurry of strokes.
Jerome Blackwood reached his third Test half-century with a cover drive for four off Steyn but was then trapped in front of his stumps with a full, swinging delivery after making top score of 56.
Jason Holder and Jerome Taylor both went for their shots before perishing to mistimed blows. Holder top-edged a pull and was caught at mid-on and Taylor was caught at fine leg when he hooked a ball from Morkel.
Suleiman Benn was last man out, driving Morkel to mid-off.
Steyn finished with four for 78 and Morkel two for 83.
Taylor and Gabriel both built up plenty of pace at the start of the South African innings, with Gabriel recorded at over 150kmh.
But they bowled some loose deliveries as they tried to unsettle the batsmen with short-pitched deliveries.
Both fast bowlers conceded wides with balls that climbed over wicketkeeper Denesh Ramdin`s head for four extra runs.
The tall Holder conceded 12 runs in his first over after replacing Gabriel but followed up with a maiden before Elgar played across a full delivery and was out for eight.
Petersen was looking good until Du Plessis played a ball to backward point and Petersen called for the run, only to be beaten by a superb throw from Blackwood.
Du Plessis reached his half-century off 81 balls with six fours.