Lines Matching refs:line

137 	struct string *line;  in tty3270_update_prompt()  local
140 line = tp->prompt; in tty3270_update_prompt()
142 line->string[5] = TF_INMDT; in tty3270_update_prompt()
144 line->string[5] = tp->inattr; in tty3270_update_prompt()
147 memcpy(line->string + 6, input, count); in tty3270_update_prompt()
148 line->string[6 + count] = TO_IC; in tty3270_update_prompt()
151 line->string[7 + count] = TO_RA; in tty3270_update_prompt()
152 line->string[10 + count] = 0; in tty3270_update_prompt()
154 raw3270_buffer_address(tp->view.dev, line->string+count+8, off); in tty3270_update_prompt()
155 line->len = 11 + count; in tty3270_update_prompt()
157 line->len = 7 + count; in tty3270_update_prompt()
168 struct string *line; in tty3270_create_prompt() local
171 line = alloc_string(&tp->freemem, in tty3270_create_prompt()
173 tp->prompt = line; in tty3270_create_prompt()
176 memcpy(line->string, blueprint, sizeof(blueprint)); in tty3270_create_prompt()
177 line->len = sizeof(blueprint); in tty3270_create_prompt()
180 raw3270_buffer_address(tp->view.dev, line->string + 1, offset); in tty3270_create_prompt()
182 raw3270_buffer_address(tp->view.dev, line->string + 8, offset); in tty3270_create_prompt()
210 struct string *line; in tty3270_create_status() local
213 line = alloc_string(&tp->freemem,sizeof(blueprint)); in tty3270_create_status()
214 tp->status = line; in tty3270_create_status()
216 memcpy(line->string, blueprint, sizeof(blueprint)); in tty3270_create_status()
219 raw3270_buffer_address(tp->view.dev, line->string + 1, offset); in tty3270_create_status()
227 tty3270_update_string(struct tty3270 *tp, struct string *line, int nr) in tty3270_update_string() argument
231 raw3270_buffer_address(tp->view.dev, line->string + 1, in tty3270_update_string()
233 cp = line->string + line->len - 4; in tty3270_update_string()
246 int line, nr_up; in tty3270_rebuild_update() local
254 line = tp->view.rows - 3; in tty3270_rebuild_update()
261 tty3270_update_string(tp, s, line); in tty3270_rebuild_update()
263 if (--line < 0) in tty3270_rebuild_update()
1042 struct tty3270_line *line; in tty3270_put_character() local
1045 line = tp->screen + tp->cy; in tty3270_put_character()
1046 if (line->len <= tp->cx) { in tty3270_put_character()
1047 while (line->len < tp->cx) { in tty3270_put_character()
1048 cell = line->cells + line->len; in tty3270_put_character()
1052 line->len++; in tty3270_put_character()
1054 line->len++; in tty3270_put_character()
1056 cell = line->cells + tp->cx; in tty3270_put_character()
1068 struct tty3270_line *line; in tty3270_convert_line() local
1078 line = tp->screen + line_nr; in tty3270_convert_line()
1079 flen += line->len; in tty3270_convert_line()
1082 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_convert_line()
1096 if (line->len < tp->view.cols) in tty3270_convert_line()
1126 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_convert_line()
1151 if (line->len < tp->view.cols) { in tty3270_convert_line()
1217 struct tty3270_line *line; in tty3270_insert_characters() local
1220 line = tp->screen + tp->cy; in tty3270_insert_characters()
1221 while (line->len < tp->cx) { in tty3270_insert_characters()
1222 line->cells[line->len].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1223 line->cells[line->len].highlight = TAX_RESET; in tty3270_insert_characters()
1224 line->cells[line->len].f_color = TAC_RESET; in tty3270_insert_characters()
1225 line->len++; in tty3270_insert_characters()
1229 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); in tty3270_insert_characters()
1231 line->cells[tp->cx + n + k] = line->cells[tp->cx + k]; in tty3270_insert_characters()
1232 line->len += n; in tty3270_insert_characters()
1233 if (line->len > tp->view.cols) in tty3270_insert_characters()
1234 line->len = tp->view.cols; in tty3270_insert_characters()
1236 line->cells[tp->cx + n].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1237 line->cells[tp->cx + n].highlight = tp->highlight; in tty3270_insert_characters()
1238 line->cells[tp->cx + n].f_color = tp->f_color; in tty3270_insert_characters()
1248 struct tty3270_line *line; in tty3270_delete_characters() local
1251 line = tp->screen + tp->cy; in tty3270_delete_characters()
1252 if (line->len <= tp->cx) in tty3270_delete_characters()
1254 if (line->len - tp->cx <= n) { in tty3270_delete_characters()
1255 line->len = tp->cx; in tty3270_delete_characters()
1258 for (i = tp->cx; i + n < line->len; i++) in tty3270_delete_characters()
1259 line->cells[i] = line->cells[i + n]; in tty3270_delete_characters()
1260 line->len -= n; in tty3270_delete_characters()
1269 struct tty3270_line *line; in tty3270_erase_characters() local
1272 line = tp->screen + tp->cy; in tty3270_erase_characters()
1273 while (line->len > tp->cx && n-- > 0) { in tty3270_erase_characters()
1274 cell = line->cells + tp->cx++; in tty3270_erase_characters()
1292 struct tty3270_line *line; in tty3270_erase_line() local
1296 line = tp->screen + tp->cy; in tty3270_erase_line()
1298 line->len = tp->cx; in tty3270_erase_line()
1301 cell = line->cells + i; in tty3270_erase_line()
1306 if (line->len <= tp->cx) in tty3270_erase_line()
1307 line->len = tp->cx + 1; in tty3270_erase_line()
1309 line->len = 0; in tty3270_erase_line()