tin
2.6.1
About: TIN is a threaded NNTP and spool based UseNet newsreader.
![]() ![]() |
Go to the source code of this file.
Functions | |
static int | prompt_list (int row, int col, int var, constext *help_text, constext *prompt_text, constext *list[], int size) |
int | prompt_num (int ch, const char *prompt) |
t_bool | prompt_string (const char *prompt, char *buf, int which_hist) |
t_bool | prompt_default_string (const char *prompt, char *buf, int buf_len, char *default_prompt, int which_hist) |
t_bool | prompt_menu_string (int line, const char *prompt, char *var) |
int | prompt_yn (const char *prompt, t_bool default_answer) |
void | prompt_yn_redraw (void) |
t_bool | prompt_option_on_off (enum option_enum option) |
t_bool | prompt_option_list (enum option_enum option) |
t_bool | prompt_option_string (enum option_enum option) |
t_bool | prompt_option_num (enum option_enum option) |
t_bool | prompt_option_char (enum option_enum option) |
char * | prompt_string_default (const char *prompt, char *def, const char *failtext, int history) |
int | prompt_msgid (void) |
char * | sized_message (char **result, const char *format, const char *subject) |
t_function | prompt_slk_response (t_function default_func, const struct keylist keys, const char *fmt,...) |
void | prompt_slk_redraw (void) |
void | prompt_continue (void) |
Variables | |
static char * | prompt_slk_message |
static char * | prompt_yn_message |
static char * | prompt_yn_choice |
void prompt_continue | ( | void | ) |
Definition at line 803 of file prompt.c.
References _, cMain, cmd_line, cNone, cPromptCONT, ESC, FALSE, get_arrow_key(), info_message(), input_context, my_fputc, my_retouch, ReadCh(), signal_context, TRUE, and txt_return_key.
Referenced by feed_articles(), invoke_metamail(), pipe_part(), post_process_files(), read_keymap_file(), shell_escape(), show_intro_page(), start_viewer(), tin_done(), and upgrade_keymap_file().
t_bool prompt_default_string | ( | const char * | prompt, |
char * | buf, | ||
int | buf_len, | ||
char * | default_prompt, | ||
int | which_hist | ||
) |
Definition at line 108 of file prompt.c.
References buf, clear_message(), FALSE, tin_getline(), and TRUE.
Referenced by add_new_scope(), get_save_filename(), process_url(), prompt_string(), and rename_scope().
|
static |
Definition at line 302 of file prompt.c.
References _, buf, cCOLS, cursoroff(), cursoron(), ESC, get_arrow_key(), KEYMAP_DOWN, KEYMAP_UP, MAX, MoveCursor(), my_flush, my_printf, offset, ReadCh(), show_menu_help(), strcasecmp(), strwidth(), TRUE, and txt_default.
Referenced by prompt_option_list(), and prompt_option_on_off().
t_bool prompt_menu_string | ( | int | line, |
const char * | prompt, | ||
char * | var | ||
) |
Definition at line 135 of file prompt.c.
References FALSE, HIST_OTHER, MoveCursor(), tin_getline(), and TRUE.
Referenced by filter_menu(), and prompt_option_string().
int prompt_msgid | ( | void | ) |
Definition at line 621 of file prompt.c.
References _, ART_UNAVAILABLE, t_msgid::article, buf, find_msgid(), HIST_MESSAGE_ID, info_message(), LEN, prompt_string(), str_trim(), txt_art_unavailable, txt_enter_message_id, txt_no_last_message, and which_thread().
Referenced by group_page(), show_page(), and thread_page().
int prompt_num | ( | int | ch, |
const char * | prompt | ||
) |
Definition at line 65 of file prompt.c.
References atoi(), clear_message(), FALSE, HIST_OTHER, LEN, snprintf, STRCPY, and tin_getline().
Referenced by config_page(), prompt_item_num(), and prompt_response().
t_bool prompt_option_char | ( | enum option_enum | option | ) |
Definition at line 526 of file prompt.c.
References _, clear_message(), FALSE, fmt_option_prompt(), HIST_OTHER, info_message(), LEN, MoveCursor(), OPT_CHAR_list, option_row(), option_table, show_menu_help(), tin_getline(), TRUE, txt_info_enter_valid_character, and t_option::var_index.
Referenced by config_page().
t_bool prompt_option_list | ( | enum option_enum | option | ) |
Definition at line 443 of file prompt.c.
References fmt_option_prompt(), LEN, t_option::opt_list, option_row(), option_table, prompt_list(), TRUE, and t_option::variable.
Referenced by config_page().
t_bool prompt_option_num | ( | enum option_enum | option | ) |
Definition at line 494 of file prompt.c.
References atoi(), clear_message(), FALSE, fmt_option_prompt(), HIST_OTHER, LEN, MoveCursor(), option_row(), option_table, show_menu_help(), snprintf, STRCPY, tin_getline(), TRUE, and t_option::variable.
Referenced by config_page().
t_bool prompt_option_on_off | ( | enum option_enum | option | ) |
Definition at line 426 of file prompt.c.
References bool_equal, bool_not, FALSE, fmt_option_prompt(), LEN, OPT_ON_OFF_list, option_row(), option_table, prompt_list(), TRUE, txt_onoff, and t_option::var_index.
Referenced by config_page().
t_bool prompt_option_string | ( | enum option_enum | option | ) |
Definition at line 468 of file prompt.c.
References FALSE, fmt_option_prompt(), LEN, OPT_STRING_list, option_row(), option_table, prompt_menu_string(), show_menu_help(), STRCPY, TRUE, and t_option::var_index.
Referenced by config_page().
void prompt_slk_redraw | ( | void | ) |
Definition at line 783 of file prompt.c.
References cLINES, MoveCursor(), prompt_slk_message, strwidth(), and wait_message().
Referenced by handle_resize(), and prompt_slk_response().
t_function prompt_slk_response | ( | t_function | default_func, |
const struct keylist | keys, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 699 of file prompt.c.
References buf, clear_message(), cNone, cPromptSLK, ESC, FreeAndNull, FreeIfNeeded, func, func_to_key(), get_arrow_key(), input_context, key_to_func(), KEYMAP_DOWN, KEYMAP_END, KEYMAP_HOME, KEYMAP_LEFT, KEYMAP_PAGE_DOWN, KEYMAP_PAGE_UP, KEYMAP_RIGHT, KEYMAP_UP, LEN, my_malloc, NOT_ASSIGNED, prompt_slk_message, prompt_slk_redraw(), ReadCh(), snprintf, and vsnprintf.
Referenced by cancel_article(), feed_articles(), filter_menu(), get_feed_key(), get_post_proc_type(), mail_to_author(), open_save_filename(), pickup_postponed_articles(), post_loop(), post_response(), prompt_rejected(), prompt_to_send(), repair_article(), and repost_article().
t_bool prompt_string | ( | const char * | prompt, |
char * | buf, | ||
int | which_hist | ||
) |
Definition at line 93 of file prompt.c.
References buf, and prompt_default_string().
Referenced by prompt_msgid(), prompt_string_default(), reposition_group(), shell_escape(), and subscribe_pattern().
char * prompt_string_default | ( | const char * | prompt, |
char * | def, | ||
const char * | failtext, | ||
int | history | ||
) |
Definition at line 587 of file prompt.c.
References clear_message(), error_message(), LEN, my_strncpy(), and prompt_string().
Referenced by choose_new_group(), create_normal_article_headers(), feed_articles(), get_feed_key(), get_search_pattern(), group_page(), pipe_part(), quick_post_article(), selection_page(), set_range(), and tag_pattern().
int prompt_yn | ( | const char * | prompt, |
t_bool | default_answer | ||
) |
Definition at line 165 of file prompt.c.
References bool_not, clear_message(), cmd_line, cNone, cPromptYN, ESC, FreeAndNull, func, func_to_key(), get_arrow_key(), GLOBAL_ABORT, input_context, key_to_func(), KEYMAP_DOWN, KEYMAP_LEFT, KEYMAP_RIGHT, KEYMAP_UP, MAX, MAXKEYLEN, my_flush, my_malloc, my_strdup(), my_toupper(), NOT_ASSIGNED, printascii(), prompt_keys, PROMPT_NO, PROMPT_YES, prompt_yn_choice, prompt_yn_message, prompt_yn_redraw(), ReadCh(), snprintf, and strwidth().
Referenced by catchup_group(), check_moderated(), decode_save_one(), delete_scope(), feed_articles(), group_catchup(), group_page(), load_article(), mail_loop(), pickup_postponed_articles(), select_done(), selection_page(), show_page(), submit_news_file(), thread_catchup(), and tin_done().
void prompt_yn_redraw | ( | void | ) |
Definition at line 266 of file prompt.c.
References buf, cCOLS, CleartoEOLN(), cLINES, cmd_line, cursoron(), MoveCursor(), my_flush, my_printf, prompt_yn_choice, prompt_yn_message, strunc(), and strwidth().
Referenced by handle_resize(), and prompt_yn().
char * sized_message | ( | char ** | result, |
const char * | format, | ||
const char * | subject | ||
) |
Definition at line 675 of file prompt.c.
References buf, cCOLS, fmt_string(), strunc(), and strwidth().
Referenced by cancel_article(), catchup_group(), feed_articles(), pickup_postponed_articles(), post_loop(), prompt_to_send(), repost_article(), and show_progress().
|
static |
Definition at line 49 of file prompt.c.
Referenced by prompt_slk_redraw(), and prompt_slk_response().
|
static |
Definition at line 51 of file prompt.c.
Referenced by prompt_yn(), and prompt_yn_redraw().
|
static |
Definition at line 50 of file prompt.c.
Referenced by prompt_yn(), and prompt_yn_redraw().