Character processing for write terminal working