Lines Matching +full:num +full:- +full:cols

36  |     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
181 int local_COLS = 0; /* copy of COLS, to detect when win resizes */
184 int ee_chinese = FALSE; /* allows handling of multi-byte characters */
186 /* code recognizes a two-byte character */
191 unsigned char *u_srch_str; /* pointer to non-case sensitive search */
235 | item will be returned. If the third (argument) parameter is -1, no
340 {"", NULL, NULL, NULL, NULL, -1}, /* 1. tabs to spaces */
341 {"", NULL, NULL, NULL, NULL, -1}, /* 2. case sensitive search*/
342 {"", NULL, NULL, NULL, NULL, -1}, /* 3. margins observed */
343 {"", NULL, NULL, NULL, NULL, -1}, /* 4. auto-paragraph */
344 {"", NULL, NULL, NULL, NULL, -1}, /* 5. eightbit characters*/
345 {"", NULL, NULL, NULL, NULL, -1}, /* 6. info window */
346 {"", NULL, NULL, NULL, NULL, -1}, /* 7. emacs key bindings*/
347 {"", NULL, NULL, NULL, NULL, -1}, /* 8. right margin */
348 {"", NULL, NULL, NULL, NULL, -1}, /* 9. chinese text */
349 {"", NULL, NULL, NULL, dump_ee_conf, -1}, /* 10. save editor config */
350 {NULL, NULL, NULL, NULL, NULL, -1} /* terminator */
359 {"", NULL, NULL, NULL, NULL, -1},
360 {"", NULL, NULL, NULL, NULL, -1},
361 {NULL, NULL, NULL, NULL, NULL, -1}
365 {"", NULL, NULL, NULL, NULL, -1},
366 {"", NULL, NULL, NULL, finish, -1},
368 {NULL, NULL, NULL, NULL, NULL, -1}
376 {"", NULL, NULL, NULL, NULL, -1},
380 {"", NULL, NULL, NULL, print_buffer, -1},
381 {NULL, NULL, NULL, NULL, NULL, -1}
386 {"", NULL, NULL, NULL, search_prompt, -1},
388 {NULL, NULL, NULL, NULL, NULL, -1}
392 {"", NULL, NULL, NULL, NULL, -1},
393 {"", NULL, NULL, NULL, spell_op, -1},
394 {"", NULL, NULL, NULL, ispell_op, -1},
395 {NULL, NULL, NULL, NULL, NULL, -1}
399 {"", NULL, NULL, NULL, NULL, -1},
400 {"", NULL, NULL, NULL, Format, -1},
401 {"", NULL, NULL, NULL, shell_op, -1},
402 {"", menu_op, spell_menu, NULL, NULL, -1},
403 {NULL, NULL, NULL, NULL, NULL, -1}
407 {"", NULL, NULL, NULL, NULL, -1},
408 {"", NULL, NULL, NULL, leave_op, -1},
409 {"", NULL, NULL, NULL, help, -1},
410 {"", menu_op, file_menu, NULL, NULL, -1},
411 {"", NULL, NULL, NULL, redraw, -1},
412 {"", NULL, NULL, NULL, modes_op, -1},
413 {"", menu_op, search_menu, NULL, NULL, -1},
414 {"", menu_op, misc_menu, NULL, NULL, -1},
415 {NULL, NULL, NULL, NULL, NULL, -1}
556 d_char = malloc(3); /* provide a buffer for multi-byte chars */ in main()
561 dlt_line->line = d_line; in main()
562 dlt_line->line_length = 0; in main()
564 curr_line->line = point = malloc(10); in main()
565 curr_line->line_length = 1; in main()
566 curr_line->max_length = 10; in main()
567 curr_line->prev_line = NULL; in main()
568 curr_line->next_line = NULL; in main()
569 curr_line->line_number = 1; in main()
587 right_margin = COLS - 1; in main()
621 curr_line->line_number, scr_horz, absolute_lin); in main()
628 if (in == -1) in main()
674 rline->max_length += factor; in resiz_line()
675 rpoint = rline->line = realloc(rline->line, rline->max_length ); in resiz_line()
693 for (; counter > 0; counter--) in insert()
700 if ((curr_line->max_length - curr_line->line_length) < 5) in insert()
702 curr_line->line_length++; in insert()
705 while (counter < curr_line->line_length) /* find end of line */ in insert()
713 temp2=temp - 1; in insert()
715 temp--; in insert()
745 counter -= position; in insert()
752 if ((scr_horz - horiz_offset) > last_col) in insert()
763 draw_line(scr_vert, scr_horz, point, position, curr_line->line_length); in insert()
777 if (point != curr_line->line) /* if not at beginning of line */ in delete()
781 if ((ee_chinese) && (position >= 2) && (*(point - 2) > 127)) in delete()
785 tp -= del_width; in delete()
786 point -= del_width; in delete()
787 position -= del_width; in delete()
789 curr_line->line_length -= del_width; in delete()
793 scr_horz -= del_width; in delete()
806 while (temp_pos <= curr_line->line_length) in delete()
815 horiz_offset -= 8; in delete()
819 else if (curr_line->prev_line != NULL) in delete()
823 temp_buff = curr_line->next_line; in delete()
824 point = resiz_line(temp_buff->line_length, curr_line, position); in delete()
825 if (temp_buff->next_line != NULL) in delete()
826 temp_buff->next_line->prev_line = curr_line; in delete()
827 curr_line->next_line = temp_buff->next_line; in delete()
828 temp2 = temp_buff->line; in delete()
836 while (temp_pos < temp_buff->line_length) in delete()
838 curr_line->line_length++; in delete()
845 free(temp_buff->line); in delete()
857 temp_buff = temp_buff->next_line; in delete()
862 tp = temp_buff->line; in delete()
865 draw_line(last_line, 0, tp, 1, temp_buff->line_length); in delete()
866 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in delete()
869 draw_line(scr_vert, scr_horz, point, position, curr_line->line_length); in delete()
880 ptr = curr_line->line; in scanline()
901 if ((scr_horz - horiz_offset) > last_col) in scanline()
903 horiz_offset = (scr_horz - (scr_horz % 8)) - (COLS - 8); in scanline()
908 horiz_offset = max(0, (scr_horz - (scr_horz % 8))); in scanline()
923 return (9 - leftover); in tabshift()
926 /* output non-printing character */
938 (i2 < i1) && (((column+i2+1)-horiz_offset) < last_col); i2++) in out_char()
968 for (i2 = 0; (string[i2] != '\0') && (((column+i2+1)-horiz_offset) < last_col); i2++) in out_char()
1007 column = horiz - horiz_offset; in draw_line()
1045 wmove(text_win, vertical, (horiz - horiz_offset)); in draw_line()
1059 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in insert_line()
1062 temp_nod->line = extra= malloc(10); in insert_line()
1063 temp_nod->line_length = 1; in insert_line()
1064 temp_nod->max_length = 10; in insert_line()
1065 temp_nod->line_number = curr_line->line_number + 1; in insert_line()
1066 temp_nod->next_line = curr_line->next_line; in insert_line()
1067 if (temp_nod->next_line != NULL) in insert_line()
1068 temp_nod->next_line->prev_line = temp_nod; in insert_line()
1069 temp_nod->prev_line = curr_line; in insert_line()
1070 curr_line->next_line = temp_nod; in insert_line()
1073 if (temp_pos2 < curr_line->line_length) in insert_line()
1076 while (temp_pos2 < curr_line->line_length) in insert_line()
1078 if ((temp_nod->max_length - temp_nod->line_length)< 5) in insert_line()
1080 temp_nod->line_length++; in insert_line()
1089 temp = resiz_line((1 - temp_nod->line_length), curr_line, position); in insert_line()
1090 curr_line->line_length = 1 + temp - curr_line->line; in insert_line()
1092 curr_line->line_length = position; in insert_line()
1097 point= curr_line->line; in insert_line()
1121 curr_line->line_length); in insert_line()
1156 if ((position != 1) && ((point[-1] == ' ') || (point[-1] == '\t'))) in prev_word()
1184 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in control()
1216 move_rel('d', max(5, (last_line - 5))); in control()
1220 move_rel('u', max(5, (last_line - 5))); in control()
1248 | Emacs control-key bindings
1271 move_rel('u', max(5, (last_line - 5))); in emacs_control()
1292 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in emacs_control()
1310 move_rel('d', max(5, (last_line - 5))); in emacs_control()
1329 while (curr_line->next_line != NULL) in bottom()
1331 curr_line = curr_line->next_line; in bottom()
1334 point = curr_line->line; in bottom()
1346 while (curr_line->prev_line != NULL) in top()
1348 curr_line = curr_line->prev_line; in top()
1349 absolute_lin--; in top()
1351 point = curr_line->line; in top()
1363 curr_line = curr_line->next_line; in nextline()
1365 point = curr_line->line; in nextline()
1373 draw_line(last_line,0,point,1,curr_line->line_length); in nextline()
1383 curr_line = curr_line->prev_line; in prevline()
1384 absolute_lin--; in prevline()
1385 point = curr_line->line; in prevline()
1390 draw_line(0,0,point,1,curr_line->line_length); in prevline()
1393 scr_vert--; in prevline()
1394 while (position < curr_line->line_length) in prevline()
1405 if (point != curr_line->line) /* if not at begin of line */ in left()
1407 if ((ee_chinese) && (position >= 2) && (*(point - 2) > 127)) in left()
1409 point--; in left()
1410 position--; in left()
1412 point--; in left()
1413 position--; in left()
1415 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in left()
1418 else if (curr_line->prev_line != NULL) in left()
1422 absolute_lin--; in left()
1423 curr_line = curr_line->prev_line; in left()
1424 point = curr_line->line + curr_line->line_length; in left()
1425 position = curr_line->line_length; in left()
1432 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in left()
1440 if (position < curr_line->line_length) in right()
1443 ((curr_line->line_length - position) >= 2)) in right()
1451 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in right()
1454 else if (curr_line->next_line != NULL) in right()
1459 curr_line = curr_line->next_line; in right()
1460 point = curr_line->line; in right()
1471 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in right()
1482 while ((scr_horz < scr_pos) && (position < curr_line->line_length)) in find_pos()
1489 ((curr_line->line_length - position) >= 2)) in find_pos()
1500 if ((scr_horz - horiz_offset) > last_col) in find_pos()
1502 horiz_offset = (scr_horz - (scr_horz % 8)) - (COLS - 8); in find_pos()
1507 horiz_offset = max(0, (scr_horz - (scr_horz % 8))); in find_pos()
1510 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in find_pos()
1517 if (curr_line->prev_line != NULL) in up()
1520 point = curr_line->line; in up()
1529 if (curr_line->next_line != NULL) in down()
1553 move_rel('d', max( 5, (last_line - 5))); in function_key()
1555 move_rel('u', max(5, (last_line - 5))); in function_key()
1684 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in command_prompt()
1739 wprintw(com_win, line_num_str, curr_line->line_number); in command()
1740 wprintw(com_win, line_len_str, curr_line->line_length); in command()
1763 tmp_line = first_line->next_line; in command()
1766 tmp_line->line_number = tmp_line->prev_line->line_number + 1; in command()
1767 tmp_line = tmp_line->next_line; in command()
1890 if (in == -1) in get_string()
1895 g_pos--; in get_string()
1897 tmp_int = tmp_int - g_horz; in get_string()
1898 for (; 0 < tmp_int; tmp_int--) in get_string()
1900 if ((g_horz+tmp_int) < (last_col - 1)) in get_string()
1907 nam_str--; in get_string()
1911 if (in == '\026') /* control-v, accept next character verbatim */ in get_string()
1915 if (in == -1) in get_string()
1920 if (!isprint((unsigned char)in) && (g_horz < (last_col - 1))) in get_string()
1925 if (g_horz < (last_col - 1)) in get_string()
1991 i= i * 10 + (*ptr - '0'); in goto_line()
1997 while ((t_line->line_number > number) && (t_line->prev_line != NULL)) in goto_line()
2000 t_line = t_line->prev_line; in goto_line()
2003 while ((t_line->line_number < number) && (t_line->next_line != NULL)) in goto_line()
2007 t_line = t_line->next_line; in goto_line()
2021 absolute_lin -= i; in goto_line()
2024 point = curr_line->line; in goto_line()
2031 wprintw(com_win, line_num_str, curr_line->line_number); in goto_line()
2032 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in goto_line()
2044 for (i = 0; ((i < line) && (curr_line->prev_line != NULL)); i++) in midscreen()
2045 curr_line = curr_line->prev_line; in midscreen()
2052 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in midscreen()
2084 if (!strcmp("-i", buff)) in get_options()
2088 else if (!strcmp("-e", buff)) in get_options()
2092 else if (!strcmp("-h", buff)) in get_options()
2096 else if (!strcmp("-?", buff)) in get_options()
2110 else if (!(strcmp("--", buff))) in get_options()
2114 count--; in get_options()
2128 temp_names->next_name = name_alloc(); in get_options()
2129 temp_names = temp_names->next_name; in get_options()
2131 ptr = temp_names->name = malloc(strlen(buff) + 1); in get_options()
2139 temp_names->next_name = NULL; in get_options()
2160 in_file_name = tmp_file = top_of_stack->name; in check_fp()
2161 top_of_stack = top_of_stack->next_name; in check_fp()
2165 if ((temp != -1) && (buf.st_mode != 0100000) && (buf.st_mode != 0)) in check_fp()
2177 if ((get_fd = open(tmp_file, O_RDONLY)) == -1) in check_fp()
2186 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in check_fp()
2196 line_num = curr_line->line_number; in check_fp()
2203 point = curr_line->line; in check_fp()
2210 line_num = atoi(start_at_line) - 1; in check_fp()
2225 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in check_fp()
2254 if (curr_line->line_length > 1) /* if current line is not blank */ in get_file()
2263 while (((length = read(get_fd, in_string, 512)) != 0) && (length != -1)) in get_file()
2268 if ((can_read) && (curr_line->line_length == 1)) in get_file()
2270 temp_line = curr_line->prev_line; in get_file()
2271 temp_line->next_line = curr_line->next_line; in get_file()
2272 if (temp_line->next_line != NULL) in get_file()
2273 temp_line->next_line->prev_line = temp_line; in get_file()
2274 if (curr_line->line != NULL) in get_file()
2275 free(curr_line->line); in get_file()
2283 wprintw(com_win, file_read_lines_msg, in_file_name, curr_line->line_number); in get_file()
2288 else if (can_read) /* not input_file and file is non-zero size */ in get_file()
2303 int num; /* offset from start of string */ in get_line() local
2310 num = 0; in get_line()
2312 while (num < length) in get_line()
2316 if (num < length) in get_line()
2319 num++; in get_line()
2327 while ((*str2 != '\n') && (num < length)) in get_line()
2330 num++; in get_line()
2336 tline->line_number = curr_line->line_number + 1; in get_line()
2337 tline->next_line = curr_line->next_line; in get_line()
2338 tline->prev_line = curr_line; in get_line()
2339 curr_line->next_line = tline; in get_line()
2340 if (tline->next_line != NULL) in get_line()
2341 tline->next_line->prev_line = tline; in get_line()
2343 curr_line->line = point = (unsigned char *) malloc(char_count); in get_line()
2344 curr_line->line_length = char_count; in get_line()
2345 curr_line->max_length = char_count; in get_line()
2349 point = resiz_line(char_count, curr_line, curr_line->line_length); in get_line()
2350 curr_line->line_length += (char_count - 1); in get_line()
2360 if ((num == length) && (*str2 != '\n')) in get_line()
2377 line_out = temp_line->line; in draw_screen()
2378 draw_line(temp_vert, 0, line_out, 1, temp_line->line_length); in draw_screen()
2380 temp_line = temp_line->next_line; in draw_screen()
2383 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in draw_screen()
2474 while (curr_line->next_line != NULL) in delete_text()
2475 curr_line = curr_line->next_line; in delete_text()
2478 free(curr_line->line); in delete_text()
2479 curr_line = curr_line->prev_line; in delete_text()
2480 absolute_lin--; in delete_text()
2481 free(curr_line->next_line); in delete_text()
2483 curr_line->next_line = NULL; in delete_text()
2484 *curr_line->line = '\0'; in delete_text()
2485 curr_line->line_length = 1; in delete_text()
2486 curr_line->line_number = 1; in delete_text()
2487 point = curr_line->line; in delete_text()
2542 tmp_point= out_line->line; in write_file()
2543 while (temp_pos < out_line->line_length) in write_file()
2549 charac += out_line->line_length; in write_file()
2550 out_line = out_line->next_line; in write_file()
2588 if (position < curr_line->line_length) in search()
2593 while ((iter < srch_line->line_length) && (!found)) in search()
2619 if (iter < srch_line->line_length) in search()
2626 srch_line = srch_line->next_line; in search()
2628 srch_1 = srch_line->line; in search()
2675 wmove(text_win, scr_vert,(scr_horz - horiz_offset)); in search()
2707 if (position < curr_line->line_length) /* if not end of line */ in del_char()
2710 ((curr_line->line_length - position) >= 2)) in del_char()
2757 d_word = malloc(curr_line->line_length); in del_word()
2764 while ((tposit < curr_line->line_length) && in del_word()
2772 while ((tposit < curr_line->line_length) && in del_word()
2781 d_wrd_len = difference = d_word2 - d_word; in del_word()
2783 while (tposit < curr_line->line_length) in del_word()
2790 curr_line->line_length -= difference; in del_word()
2792 draw_line(scr_vert, scr_horz,point,position,curr_line->line_length); in del_word()
2814 if ((curr_line->max_length - (curr_line->line_length + d_wrd_len)) < 5) in undel_word()
2816 tmp_ptr = tmp_space = malloc(curr_line->line_length + d_wrd_len); in undel_word()
2835 while (tposit < curr_line->line_length) in undel_word()
2843 curr_line->line_length += d_wrd_len; in undel_word()
2860 draw_line(scr_vert, scr_horz, point, position, curr_line->line_length); in undel_word()
2873 d_line = malloc(curr_line->line_length); in del_line()
2877 while (tposit < curr_line->line_length) in del_line()
2884 dlt_line->line_length = 1 + tposit - position; in del_line()
2887 curr_line->line_length = position; in del_line()
2889 if (curr_line->next_line != NULL) in del_line()
2905 if (dlt_line->line_length == 0) in undel_line()
2910 point = resiz_line(dlt_line->line_length, curr_line, position); in undel_line()
2911 curr_line->line_length += dlt_line->line_length - 1; in undel_line()
2915 while (tposit < dlt_line->line_length) in undel_line()
2923 draw_line(scr_vert, scr_horz,point,position,curr_line->line_length); in undel_line()
2930 while ((position < curr_line->line_length) && ((*point != 32) && (*point != 9))) in adv_word()
2932 while ((position < curr_line->line_length) && ((*point == 32) || (*point == 9))) in adv_word()
2956 for (i= 0;(i<5)&&(curr_line->prev_line != NULL); i++) in move_rel()
2969 if ((position != 1) && (curr_line->next_line != NULL)) in move_rel()
2985 if ((last_line > 10) && (scr_vert > (last_line - 5))) in move_rel()
2989 for (i=0; (i<5) && (curr_line->next_line != NULL); i++) in move_rel()
2993 absolute_lin -= i; in move_rel()
2994 scr_vert = scr_vert - i; in move_rel()
3000 wmove(text_win, scr_vert, (scr_horz - horiz_offset)); in move_rel()
3007 if (position < curr_line->line_length) in eol()
3009 while (position < curr_line->line_length) in eol()
3012 else if (curr_line->next_line != NULL) in eol()
3015 while (position < curr_line->line_length) in eol()
3024 if (point != curr_line->line) in bol()
3026 while (point != curr_line->line) in bol()
3029 else if (curr_line->prev_line != NULL) in bol()
3040 if ((point != curr_line->line) || (scr_pos > 0)) in adv_line()
3042 while (position < curr_line->line_length) in adv_line()
3046 else if (curr_line->next_line != NULL) in adv_line()
3062 tmpline = tmpline->next_line; in from_top()
3160 point = curr_line->line; in sh_command()
3198 execl(path, last_slash, "-c", string, NULL); in sh_command()
3200 exit(-1); in sh_command()
3214 write(pipe_out[1], line_holder->line, (line_holder->line_length-1)); in sh_command()
3216 line_holder = line_holder->next_line; in sh_command()
3225 while ((return_val != parent) && (return_val != -1)); in sh_command()
3278 if (((LINES > 15) && (COLS >= 80)) && info_window) in set_up_term()
3279 last_line = LINES - 8; in set_up_term()
3283 last_line = LINES - 2; in set_up_term()
3287 com_win = newwin(1, COLS, (LINES - 1), 0); in set_up_term()
3292 text_win = newwin((LINES - 1), COLS, 0, 0); in set_up_term()
3294 text_win = newwin((LINES - 7), COLS, 6, 0); in set_up_term()
3298 help_win = newwin((LINES - 1), COLS, 0, 0); in set_up_term()
3304 info_win = newwin(6, COLS, 0, 0); in set_up_term()
3309 last_col = COLS - 1; in set_up_term()
3311 local_COLS = COLS; in set_up_term()
3323 if ((LINES == local_LINES) && (COLS == local_COLS)) in resize_check()
3377 if (max_width > COLS) in menu_op()
3393 vert_size = max_height - 8; in menu_op()
3411 x_off = (COLS - max_width) / 2; in menu_op()
3412 y_off = (LINES - max_height - 1) / 2; in menu_op()
3422 wmove(temp_win, (1 + counter + top_offset - off_start), 3); in menu_op()
3424 wmove(temp_win, (counter + top_offset - off_start), 3); in menu_op()
3429 if (input == -1) in menu_op()
3436 temp = 1 + tolower(input) - 'a'; in menu_op()
3440 temp = (2 + 'z' - 'a') + (input - '0'); in menu_op()
3467 counter--; in menu_op()
3486 if (((list_size - off_start) >= (vert_size - 1)) && in menu_op()
3487 (counter > (off_start + vert_size - 3)) && in menu_op()
3491 off_start = (list_size - vert_size) + 2; in menu_op()
3500 (counter > (off_start + vert_size - 2))) in menu_op()
3503 off_start = 2 + (list_size - vert_size); in menu_op()
3535 if (menu_list[counter].argument != -1) in menu_op()
3570 for (counter = 0; counter < (max_width - 4); counter++) in paint_menu()
3571 waddch(menu_win, '-'); in paint_menu()
3574 wmove(menu_win, (max_height - 2), 1); in paint_menu()
3576 for (counter = 0; counter < (max_width - 4); counter++) in paint_menu()
3577 waddch(menu_win, '-'); in paint_menu()
3582 wmove(menu_win, (max_height - 3), 3); in paint_menu()
3600 wmove(menu_win, temp_int, (max_width - 2)); in paint_menu()
3617 ((temp_int + counter - off_start) < (vert_size - 1)); in paint_menu()
3621 (counter - off_start)), 3); in paint_menu()
3623 wprintw(menu_win, "%c) ", item_alpha[min((counter - 1), max_alpha_char)]); in paint_menu()
3627 wmove(menu_win, (top_offset + (vert_size - 1)), 3); in paint_menu()
3632 wprintw(menu_win, "%c) ", item_alpha[min((counter - 1), max_alpha_char)]); in paint_menu()
3642 wmove(menu_win, (top_offset + counter - 1), 3); in paint_menu()
3644 wprintw(menu_win, "%c) ", item_alpha[min((counter - 1), max_alpha_char)]); in paint_menu()
3669 if (counter == -1) in help()
3714 last_line = LINES - 2; in no_info_window()
3715 text_win = newwin((LINES - 1), COLS, 0, 0); in no_info_window()
3729 last_line = LINES - 8; in create_info_window()
3731 text_win = newwin((LINES - 7), COLS, 6, 0); in create_info_window()
3736 info_win = newwin(6, COLS, 0, 0); in create_info_window()
3861 /* test if line has any non-space characters */
3872 line = test_line->line; in Blank_Line()
3883 while (((*line == ' ') || (*line == '\t')) && (length < test_line->line_length)) in Blank_Line()
3888 if (length != test_line->line_length) in Blank_Line()
3946 temp2 = srch_str = (unsigned char *) malloc(1 + curr_line->line_length - position); in Format()
3949 offset -= position; in Format()
3952 …while ((*temp1 != '\0') && (*temp1 != ' ') && (*temp1 != '\t') && (counter < curr_line->line_lengt… in Format()
3962 while (!Blank_Line(curr_line->prev_line)) in Format()
3983 while (!Blank_Line(curr_line->prev_line)) in Format()
3994 while (!Blank_Line(curr_line->next_line)) in Format()
4018 while (position < curr_line->line_length) in Format()
4031 while (position < curr_line->line_length) in Format()
4056 while (position < curr_line->line_length) in Format()
4058 while ((scr_pos < right_margin) && (position < curr_line->line_length)) in Format()
4060 if (position < curr_line->line_length) in Format()
4074 while (!Blank_Line(curr_line->prev_line)) in Format()
4084 string_count--; in Format()
4093 offset--; in Format()
4284 if (stat(file_name, &buf) != -1) in dump_ee_conf()
4304 | Copy non-configuration info into new .init.ee file. in dump_ee_conf()
4309 string[length - 1] = '\0'; in dump_ee_conf()
4382 Counter = (8 * Counter) + (*temp - '0'); in echo_string()
4386 temp--; in echo_string()
4463 pnt = test_line->line; in first_word_len()
4530 tmp_d_line_length = dlt_line->line_length; in Auto_Format()
4534 …if ((position != 1) && ((*point == ' ') || (*point == '\t') || (position == curr_line->line_length… in Auto_Format()
4543 temp2 = srch_str = (unsigned char *) malloc(1 + curr_line->line_length - position); in Auto_Format()
4546 offset -= position; in Auto_Format()
4549 …while ((*temp1 != '\0') && (*temp1 != ' ') && (*temp1 != '\t') && (counter < curr_line->line_lengt… in Auto_Format()
4559 while (!Blank_Line(curr_line->prev_line)) in Auto_Format()
4575 while (!Blank_Line(curr_line->prev_line)) in Auto_Format()
4589 if (position != curr_line->line_length) in Auto_Format()
4607 while ((curr_line->next_line != NULL) && in Auto_Format()
4608 ((word_len = first_word_len(curr_line->next_line)) > 0) in Auto_Format()
4629 (curr_line->line[0] != '.') && in Auto_Format()
4630 (curr_line->line[0] != '>')) in Auto_Format()
4667 if (Blank_Line(curr_line->next_line)) in Auto_Format()
4681 if ((!Blank_Line(curr_line->next_line)) || (not_blank)) in Auto_Format()
4696 while ((counter-- > 0) || (!Blank_Line(curr_line->prev_line))) in Auto_Format()
4707 string_count--; in Auto_Format()
4716 offset--; in Auto_Format()
4744 dlt_line->line_length = tmp_d_line_length; in Auto_Format()
4851 /* a strchr() look-alike for systems without strchr() */
4909 buffer = malloc(strlen(user->pw_dir) + strlen(slash) + 1); in resolve_name()
4910 strcpy(buffer, user->pw_dir); in resolve_name()
5081 mode_strings[4] = catgetlocal( 5, "auto-paragraph format"); in strings_init()
5120 …help_text[9] = catgetlocal( 44, "^[ (escape) menu ESC-Enter: exit ee … in strings_init()
5128 …help_text[17] = catgetlocal( 52, "line : display line # 0-9 : go to line \"#… in strings_init()
5131 …help_text[20] = catgetlocal( 55, " ee [+#] [-i] [-e] [-h] [file(s)] … in strings_init()
5132 …help_text[21] = catgetlocal( 56, "+# :go to line # -i :no info window -e : don't expand tabs -h… in strings_init()
5137 …control_keys[4] = catgetlocal( 61, "^c command ^k delete char ^f undelete char ESC- in strings_init()
5139 …command_strings[1] = catgetlocal( 63, "read : read a file |char : ascii code of char |0-9… in strings_init()
5156 usage0 = catgetlocal( 80, "usage: %s [-i] [-e] [-h] [+line_number] [file(s)]\n"); in strings_init()
5157 usage1 = catgetlocal( 81, " -i turn off info window\n"); in strings_init()
5158 usage2 = catgetlocal( 82, " -e do not convert tabs to spaces\n"); in strings_init()
5159 usage3 = catgetlocal( 83, " -h do not use highlighting\n"); in strings_init()
5186 shell_echo_msg = catgetlocal( 110, "<!echo 'list of unrecognized words'; echo -=-=-=-=-=-"); in strings_init()
5251 …tgetlocal( 158, "^c command ^d delete char ^j undelete char ESC-Enter: exit"); in strings_init()