• Home
  • Raw
  • Download

Lines Matching refs:line

145 	struct string *line;  in tty3270_update_prompt()  local
148 line = tp->prompt; in tty3270_update_prompt()
150 line->string[5] = TF_INMDT; in tty3270_update_prompt()
152 line->string[5] = tp->inattr; in tty3270_update_prompt()
155 memcpy(line->string + 6, input, count); in tty3270_update_prompt()
156 line->string[6 + count] = TO_IC; in tty3270_update_prompt()
159 line->string[7 + count] = TO_RA; in tty3270_update_prompt()
160 line->string[10 + count] = 0; in tty3270_update_prompt()
162 raw3270_buffer_address(tp->view.dev, line->string+count+8, off); in tty3270_update_prompt()
163 line->len = 11 + count; in tty3270_update_prompt()
165 line->len = 7 + count; in tty3270_update_prompt()
176 struct string *line; in tty3270_create_prompt() local
179 line = alloc_string(&tp->freemem, in tty3270_create_prompt()
181 tp->prompt = line; in tty3270_create_prompt()
184 memcpy(line->string, blueprint, sizeof(blueprint)); in tty3270_create_prompt()
185 line->len = sizeof(blueprint); in tty3270_create_prompt()
188 raw3270_buffer_address(tp->view.dev, line->string + 1, offset); in tty3270_create_prompt()
190 raw3270_buffer_address(tp->view.dev, line->string + 8, offset); in tty3270_create_prompt()
218 struct string *line; in tty3270_create_status() local
221 line = alloc_string(&tp->freemem,sizeof(blueprint)); in tty3270_create_status()
222 tp->status = line; in tty3270_create_status()
224 memcpy(line->string, blueprint, sizeof(blueprint)); in tty3270_create_status()
227 raw3270_buffer_address(tp->view.dev, line->string + 1, offset); in tty3270_create_status()
235 tty3270_update_string(struct tty3270 *tp, struct string *line, int nr) in tty3270_update_string() argument
239 raw3270_buffer_address(tp->view.dev, line->string + 1, in tty3270_update_string()
241 cp = line->string + line->len - 4; in tty3270_update_string()
254 int line, nr_up; in tty3270_rebuild_update() local
262 line = tp->view.rows - 3; in tty3270_rebuild_update()
269 tty3270_update_string(tp, s, line); in tty3270_rebuild_update()
271 if (--line < 0) in tty3270_rebuild_update()
970 struct tty3270_line *line; in tty3270_put_character() local
973 line = tp->screen + tp->cy; in tty3270_put_character()
974 if (line->len <= tp->cx) { in tty3270_put_character()
975 while (line->len < tp->cx) { in tty3270_put_character()
976 cell = line->cells + line->len; in tty3270_put_character()
980 line->len++; in tty3270_put_character()
982 line->len++; in tty3270_put_character()
984 cell = line->cells + tp->cx; in tty3270_put_character()
996 struct tty3270_line *line; in tty3270_convert_line() local
1006 line = tp->screen + line_nr; in tty3270_convert_line()
1007 flen += line->len; in tty3270_convert_line()
1010 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_convert_line()
1024 if (line->len < tp->view.cols) in tty3270_convert_line()
1054 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_convert_line()
1079 if (line->len < tp->view.cols) { in tty3270_convert_line()
1145 struct tty3270_line *line; in tty3270_insert_characters() local
1148 line = tp->screen + tp->cy; in tty3270_insert_characters()
1149 while (line->len < tp->cx) { in tty3270_insert_characters()
1150 line->cells[line->len].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1151 line->cells[line->len].highlight = TAX_RESET; in tty3270_insert_characters()
1152 line->cells[line->len].f_color = TAC_RESET; in tty3270_insert_characters()
1153 line->len++; in tty3270_insert_characters()
1157 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); in tty3270_insert_characters()
1159 line->cells[tp->cx + n + k] = line->cells[tp->cx + k]; in tty3270_insert_characters()
1160 line->len += n; in tty3270_insert_characters()
1161 if (line->len > tp->view.cols) in tty3270_insert_characters()
1162 line->len = tp->view.cols; in tty3270_insert_characters()
1164 line->cells[tp->cx + n].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1165 line->cells[tp->cx + n].highlight = tp->highlight; in tty3270_insert_characters()
1166 line->cells[tp->cx + n].f_color = tp->f_color; in tty3270_insert_characters()
1176 struct tty3270_line *line; in tty3270_delete_characters() local
1179 line = tp->screen + tp->cy; in tty3270_delete_characters()
1180 if (line->len <= tp->cx) in tty3270_delete_characters()
1182 if (line->len - tp->cx <= n) { in tty3270_delete_characters()
1183 line->len = tp->cx; in tty3270_delete_characters()
1186 for (i = tp->cx; i + n < line->len; i++) in tty3270_delete_characters()
1187 line->cells[i] = line->cells[i + n]; in tty3270_delete_characters()
1188 line->len -= n; in tty3270_delete_characters()
1197 struct tty3270_line *line; in tty3270_erase_characters() local
1200 line = tp->screen + tp->cy; in tty3270_erase_characters()
1201 while (line->len > tp->cx && n-- > 0) { in tty3270_erase_characters()
1202 cell = line->cells + tp->cx++; in tty3270_erase_characters()
1220 struct tty3270_line *line; in tty3270_erase_line() local
1224 line = tp->screen + tp->cy; in tty3270_erase_line()
1226 line->len = tp->cx; in tty3270_erase_line()
1229 cell = line->cells + i; in tty3270_erase_line()
1234 if (line->len <= tp->cx) in tty3270_erase_line()
1235 line->len = tp->cx + 1; in tty3270_erase_line()
1237 line->len = 0; in tty3270_erase_line()