/* Set output offsets to 3270 datastream fragment of a tty string. (TO_SBA offset at the start and TO_RA offset at the end of the string)  */
static void tty3270_update_string(struct tty3270 *tp, struct string *line, int nr)
/* Set output offsets to 3270 datastream fragment of a tty string. (TO_SBA offset at the start and TO_RA offset at the end of the string)  */
static void tty3270_update_string(struct tty3270 *tp, struct string *line, int nr)
{
	unsigned char *cp;
	raw3270_buffer_address(tp->view.dev, line->string + 1,
			       tp->view.cols * nr);
	cp = line->string + line->len - 4;
	if (*cp == TO_RA)
		raw3270_buffer_address(tp->view.dev, cp + 1,
				       tp->view.cols * (nr + 1));
}