Text messages showing the response of a man accused of murdering his girlfriend’s baby while on night-time feed duty have been shown in court.