Home
last modified time | relevance | path

Searched refs:cCOLS (Results 1 – 25 of 63) sorted by relevance

123

/dports/news/tin/tin-2.4.5/src/
H A Dstring.c1684 if (cCOLS > min_cols && !(flags & LINE_NUMBER)) { in parse_format_string()
1769 if (cnt > (size_t) cCOLS - 1) { in parse_format_string()
1782 fmt->len_grpname_max = cCOLS - cnt - 1; in parse_format_string()
1808 fmt->len_from = (cCOLS - cnt - 1) / 3; in parse_format_string()
1810 fmt->len_from = (cCOLS - cnt - 1); in parse_format_string()
1812 fmt->len_subj = cCOLS - fmt->len_from - cnt - 1; in parse_format_string()
1815 fmt->len_grpname_max = cCOLS - cnt - 1; in parse_format_string()
1820 if (flags & DATE && fmt->len_date > (cCOLS - cnt - 1)) in parse_format_string()
1821 fmt->len_date = (cCOLS - cnt - 1); in parse_format_string()
1831 fmt->len_from = (cCOLS - fmt->len_date_max - cnt - 1) / 3; in parse_format_string()
[all …]
H A Dpage.c1074 line[cCOLS - 1] = '\0'; in print_message_page()
1228 buf2 = strunc(buf, cCOLS - 1); in draw_page()
1373 if (right_len > cCOLS / 3 + 1) in draw_page_header()
1374 right_len = cCOLS / 3 + 1; in draw_page_header()
1409 center_pos = (cCOLS - len) / 2; in draw_page_header()
1566 wtmp2 = wstrunc(wtmp, cCOLS - 1); in draw_page_header()
1637 center_pos = (cCOLS - len) / 2; in draw_page_header()
1758 tmp = strunc(buf, cCOLS - 1); in draw_page_header()
2033 space = cCOLS - 1; in toggle_raw()
2557 int len = cCOLS - 9; in build_url_line()
[all …]
H A Dscreen.c155 msg = strunc(from, cCOLS - 1); in wait_message()
161 msg = strunc(buf, cCOLS - 1); in wait_message()
280 if (cCOLS >= len) in center_line()
281 pos = (cCOLS - len) / 2; in center_line()
292 if (len >= cCOLS) { in center_line()
295 buffer = strunc(ln, cCOLS - 2); in center_line()
422 col = cCOLS - strwidth(_(txt_type_h_for_help)); in show_title()
H A Dtcurses.c62 int cCOLS; variable
80 TRACE(("vw_printw[%d/%d,%d/%d]:%s", y, cLINES, x, cCOLS, buffer)); in vw_printw()
105 set_win_size(&cLINES, &cCOLS); in setup_screen()
126 cCOLS = COLS; in InitScreen()
389 my_innstr(tmp, cCOLS); in highlight_string()
442 my_innstr(tmp, cCOLS); in word_highlight_string()
H A Dprompt.c273 if (message_len + choice_len > cCOLS - 1) { in prompt_yn_redraw()
274 buf = strunc(prompt_yn_message, cCOLS - choice_len - 1); in prompt_yn_redraw()
332 if (offset + width >= cCOLS) in prompt_list()
333 width = cCOLS - offset - 1; in prompt_list()
654 …max_len = cCOLS - strwidth(format) + 2 - 1; /* The formatting info (%s) wastes 2 chars, but our pr… in sized_message()
H A Dsignal.c254 repaint |= set_win_size(&cLINES, &cCOLS); in handle_resize()
257 if (cLINES < MIN_LINES_ON_TERMINAL || cCOLS < MIN_COLUMNS_ON_TERMINAL) { in handle_resize()
269 resizeterm(cLINES + 1, cCOLS); in handle_resize()
H A Dcook.c229 wrap_column = ((tinrc.wrap_column > -cCOLS) ? cCOLS + tinrc.wrap_column : cCOLS); in put_cooked()
232 wrap_column = ((tinrc.wrap_column > 0) ? tinrc.wrap_column : cCOLS); in put_cooked()
234 …ap_column = (((tinrc.wrap_column > 0) && (tinrc.wrap_column < cCOLS)) ? tinrc.wrap_column : cCOLS); in put_cooked()
H A Dfeed.c633 …prompt = fmt_string(_(txt_mail_art_to), cCOLS - (strwidth(_(txt_mail_art_to)) > cCOLS - 30 ? cCOLS in feed_articles()
644 …prompt = fmt_string(_(txt_pipe_to_command), cCOLS - (strwidth(_(txt_pipe_to_command)) > cCOLS - 30… in feed_articles()
H A Dsave.c1575 …tmp_len = cCOLS - 13 - MIN((cCOLS - 13) / 2 + 10, max_depth * 2 + 1 + strwidth(_(txt_attachment_no… in show_attachment_page()
1842 sptr = my_malloc(cCOLS * MB_CUR_MAX + 2); in build_attachment_line()
1844 sptr = my_malloc(cCOLS + 2); in build_attachment_line()
1851 namelen = MIN(cCOLS - 13 - info_len - 8, strwidth(_(txt_attachment_no_name))); in build_attachment_line()
1867 treelen = cCOLS - 13 - info_len - namelen; in build_attachment_line()
1873 if (namelen + len + info_len + 8 <= cCOLS) in build_attachment_line()
1874 namelen = cCOLS - 8 - info_len - len; in build_attachment_line()
1879 …snprintf(sptr, cCOLS * MB_CUR_MAX, " %s %s%*s%*s%s", tin_ltoa(i + 1, 4), buf2, namelen, BlankIfNu… in build_attachment_line()
1883 …snprintf(sptr, cCOLS, " %s %s%-*.*s%*.*s%s", tin_ltoa(i + 1, 4), buf2, namelen, namelen, name, in… in build_attachment_line()
2397 …prompt = fmt_string(_(txt_pipe_to_command), cCOLS - (strlen(_(txt_pipe_to_command)) + 30), tinrc.d… in pipe_part()
H A Doptions_menu.c395 size_t option_width = MAX(35, cCOLS / 2 - 9); in fmt_option_prompt()
430 wbuf2 = wstrunc(wbuf, cCOLS - 3); in fmt_option_prompt()
432 buf = strunc(_(option_table[option].txt->opt), cCOLS - 3); in fmt_option_prompt()
496 if ((buf = spart(temp, cCOLS - 1, FALSE)) != NULL) { in print_any_option()
501 my_printf("%.*s", cCOLS - 1, temp); in print_any_option()
506 if (x < cCOLS) in print_any_option()
510 my_printf("%.*s", cCOLS - 1, temp); in print_any_option()
513 strncpy(screen[row - INDEX_TOP].col, temp, cCOLS - 1); in print_any_option()
515 snprintf(screen[row - INDEX_TOP].col, cCOLS, "%-*s", cCOLS - 1, temp); in print_any_option()
2819 int len = cCOLS - 11; in build_scope_line()
[all …]
/dports/chinese/tin/tin-2.4.5/src/
H A Dstring.c1684 if (cCOLS > min_cols && !(flags & LINE_NUMBER)) { in parse_format_string()
1769 if (cnt > (size_t) cCOLS - 1) { in parse_format_string()
1782 fmt->len_grpname_max = cCOLS - cnt - 1; in parse_format_string()
1808 fmt->len_from = (cCOLS - cnt - 1) / 3; in parse_format_string()
1810 fmt->len_from = (cCOLS - cnt - 1); in parse_format_string()
1812 fmt->len_subj = cCOLS - fmt->len_from - cnt - 1; in parse_format_string()
1815 fmt->len_grpname_max = cCOLS - cnt - 1; in parse_format_string()
1820 if (flags & DATE && fmt->len_date > (cCOLS - cnt - 1)) in parse_format_string()
1821 fmt->len_date = (cCOLS - cnt - 1); in parse_format_string()
1831 fmt->len_from = (cCOLS - fmt->len_date_max - cnt - 1) / 3; in parse_format_string()
[all …]
H A Dpage.c1074 line[cCOLS - 1] = '\0'; in print_message_page()
1228 buf2 = strunc(buf, cCOLS - 1); in draw_page()
1373 if (right_len > cCOLS / 3 + 1) in draw_page_header()
1374 right_len = cCOLS / 3 + 1; in draw_page_header()
1409 center_pos = (cCOLS - len) / 2; in draw_page_header()
1566 wtmp2 = wstrunc(wtmp, cCOLS - 1); in draw_page_header()
1637 center_pos = (cCOLS - len) / 2; in draw_page_header()
1758 tmp = strunc(buf, cCOLS - 1); in draw_page_header()
2033 space = cCOLS - 1; in toggle_raw()
2557 int len = cCOLS - 9; in build_url_line()
[all …]
H A Dscreen.c155 msg = strunc(from, cCOLS - 1); in wait_message()
161 msg = strunc(buf, cCOLS - 1); in wait_message()
280 if (cCOLS >= len) in center_line()
281 pos = (cCOLS - len) / 2; in center_line()
292 if (len >= cCOLS) { in center_line()
295 buffer = strunc(ln, cCOLS - 2); in center_line()
422 col = cCOLS - strwidth(_(txt_type_h_for_help)); in show_title()
H A Dtcurses.c62 int cCOLS; variable
80 TRACE(("vw_printw[%d/%d,%d/%d]:%s", y, cLINES, x, cCOLS, buffer)); in vw_printw()
105 set_win_size(&cLINES, &cCOLS); in setup_screen()
126 cCOLS = COLS; in InitScreen()
389 my_innstr(tmp, cCOLS); in highlight_string()
442 my_innstr(tmp, cCOLS); in word_highlight_string()
H A Dprompt.c273 if (message_len + choice_len > cCOLS - 1) { in prompt_yn_redraw()
274 buf = strunc(prompt_yn_message, cCOLS - choice_len - 1); in prompt_yn_redraw()
332 if (offset + width >= cCOLS) in prompt_list()
333 width = cCOLS - offset - 1; in prompt_list()
654 …max_len = cCOLS - strwidth(format) + 2 - 1; /* The formatting info (%s) wastes 2 chars, but our pr… in sized_message()
H A Dsignal.c254 repaint |= set_win_size(&cLINES, &cCOLS); in handle_resize()
257 if (cLINES < MIN_LINES_ON_TERMINAL || cCOLS < MIN_COLUMNS_ON_TERMINAL) { in handle_resize()
269 resizeterm(cLINES + 1, cCOLS); in handle_resize()
H A Dcook.c229 wrap_column = ((tinrc.wrap_column > -cCOLS) ? cCOLS + tinrc.wrap_column : cCOLS); in put_cooked()
232 wrap_column = ((tinrc.wrap_column > 0) ? tinrc.wrap_column : cCOLS); in put_cooked()
234 …ap_column = (((tinrc.wrap_column > 0) && (tinrc.wrap_column < cCOLS)) ? tinrc.wrap_column : cCOLS); in put_cooked()
H A Dfeed.c633 …prompt = fmt_string(_(txt_mail_art_to), cCOLS - (strwidth(_(txt_mail_art_to)) > cCOLS - 30 ? cCOLS in feed_articles()
644 …prompt = fmt_string(_(txt_pipe_to_command), cCOLS - (strwidth(_(txt_pipe_to_command)) > cCOLS - 30… in feed_articles()
H A Dsave.c1575 …tmp_len = cCOLS - 13 - MIN((cCOLS - 13) / 2 + 10, max_depth * 2 + 1 + strwidth(_(txt_attachment_no… in show_attachment_page()
1842 sptr = my_malloc(cCOLS * MB_CUR_MAX + 2); in build_attachment_line()
1844 sptr = my_malloc(cCOLS + 2); in build_attachment_line()
1851 namelen = MIN(cCOLS - 13 - info_len - 8, strwidth(_(txt_attachment_no_name))); in build_attachment_line()
1867 treelen = cCOLS - 13 - info_len - namelen; in build_attachment_line()
1873 if (namelen + len + info_len + 8 <= cCOLS) in build_attachment_line()
1874 namelen = cCOLS - 8 - info_len - len; in build_attachment_line()
1879 …snprintf(sptr, cCOLS * MB_CUR_MAX, " %s %s%*s%*s%s", tin_ltoa(i + 1, 4), buf2, namelen, BlankIfNu… in build_attachment_line()
1883 …snprintf(sptr, cCOLS, " %s %s%-*.*s%*.*s%s", tin_ltoa(i + 1, 4), buf2, namelen, namelen, name, in… in build_attachment_line()
2397 …prompt = fmt_string(_(txt_pipe_to_command), cCOLS - (strlen(_(txt_pipe_to_command)) + 30), tinrc.d… in pipe_part()
H A Doptions_menu.c395 size_t option_width = MAX(35, cCOLS / 2 - 9); in fmt_option_prompt()
430 wbuf2 = wstrunc(wbuf, cCOLS - 3); in fmt_option_prompt()
432 buf = strunc(_(option_table[option].txt->opt), cCOLS - 3); in fmt_option_prompt()
496 if ((buf = spart(temp, cCOLS - 1, FALSE)) != NULL) { in print_any_option()
501 my_printf("%.*s", cCOLS - 1, temp); in print_any_option()
506 if (x < cCOLS) in print_any_option()
510 my_printf("%.*s", cCOLS - 1, temp); in print_any_option()
513 strncpy(screen[row - INDEX_TOP].col, temp, cCOLS - 1); in print_any_option()
515 snprintf(screen[row - INDEX_TOP].col, cCOLS, "%-*s", cCOLS - 1, temp); in print_any_option()
2819 int len = cCOLS - 11; in build_scope_line()
[all …]
H A Dgetline.c109 tprompt = strunc(prompt, cCOLS - 6);
113 gl_width = cCOLS - MIN(cCOLS - 6, strwidth(tprompt));
/dports/net/c3270/suite3270-4.0/c3270/
H A Dscreen.c1232 bool same_row = ((baddr / cCOLS) == (cursor_addr / cCOLS)); in crosshair_blank()
1233 bool same_col = ((baddr % cCOLS) == (cursor_addr % cCOLS)); in crosshair_blank()
1379 for (col = 0; col < cCOLS; col++) { in screen_disp()
1392 flipped? (cCOLS-1 - col): col, in screen_disp()
1428 baddr = row*cCOLS+col; in screen_disp()
1591 cCOLS-1 - (cursor_addr % cCOLS)); in screen_disp()
1594 cursor_addr % cCOLS); in screen_disp()
1731 } else if (m.x < cCOLS && in kybd_input()
1736 (cCOLS - m.x)); in kybd_input()
2530 for (j = cCOLS; j < cursesCOLS; j++) { in draw_oia()
[all …]
/dports/x11/x3270/suite3270-4.0/c3270/
H A Dscreen.c1232 bool same_row = ((baddr / cCOLS) == (cursor_addr / cCOLS)); in crosshair_blank()
1233 bool same_col = ((baddr % cCOLS) == (cursor_addr % cCOLS)); in crosshair_blank()
1379 for (col = 0; col < cCOLS; col++) { in screen_disp()
1392 flipped? (cCOLS-1 - col): col, in screen_disp()
1428 baddr = row*cCOLS+col; in screen_disp()
1591 cCOLS-1 - (cursor_addr % cCOLS)); in screen_disp()
1594 cursor_addr % cCOLS); in screen_disp()
1731 } else if (m.x < cCOLS && in kybd_input()
1736 (cCOLS - m.x)); in kybd_input()
2530 for (j = cCOLS; j < cursesCOLS; j++) { in draw_oia()
[all …]
/dports/net/c3270/suite3270-4.0/wc3270/
H A Dscreen.c1784 bool same_row = ((baddr / cCOLS) == (cursor_addr / cCOLS)); in crosshair_blank()
1785 bool same_col = ((baddr % cCOLS) == (cursor_addr % cCOLS)); in crosshair_blank()
1828 cCOLS-1 - (cursor_addr % cCOLS)); in screen_disp()
1831 cursor_addr % cCOLS); in screen_disp()
1928 for (col = 0; col < cCOLS; col++) { in screen_disp()
1941 flipped? (cCOLS-1 - col): col, in screen_disp()
1955 baddr = row*cCOLS+col; in screen_disp()
2117 cCOLS-1 - (cursor_addr % cCOLS)); in screen_disp()
2120 cursor_addr % cCOLS); in screen_disp()
3154 for (j = cCOLS; j < maxCOLS; j++) { in draw_oia()
[all …]
/dports/x11/x3270/suite3270-4.0/wc3270/
H A Dscreen.c1784 bool same_row = ((baddr / cCOLS) == (cursor_addr / cCOLS)); in crosshair_blank()
1785 bool same_col = ((baddr % cCOLS) == (cursor_addr % cCOLS)); in crosshair_blank()
1828 cCOLS-1 - (cursor_addr % cCOLS)); in screen_disp()
1831 cursor_addr % cCOLS); in screen_disp()
1928 for (col = 0; col < cCOLS; col++) { in screen_disp()
1941 flipped? (cCOLS-1 - col): col, in screen_disp()
1955 baddr = row*cCOLS+col; in screen_disp()
2117 cCOLS-1 - (cursor_addr % cCOLS)); in screen_disp()
2120 cursor_addr % cCOLS); in screen_disp()
3154 for (j = cCOLS; j < maxCOLS; j++) { in draw_oia()
[all …]

123