Bi-directional interface between the computer and printer