tin  2.4.4
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.4.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

keymap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  keynode
 
struct  keylist
 

Macros

#define MAXKEYLEN   17
 
#define ctrl(c)   ((c) & 0x1F)
 
#define ESC   27
 
#define iKeyAbort   ESC
 
#define iKeyQuitTin   'Q'
 
#define iKeyQuit   'q'
 

Typedefs

typedef enum defined_functions t_function
 

Enumerations

enum  defined_functions {
  NOT_ASSIGNED = 0, DIGIT_0, DIGIT_1, DIGIT_2,
  DIGIT_3, DIGIT_4, DIGIT_5, DIGIT_6,
  DIGIT_7, DIGIT_8, DIGIT_9, ATTACHMENT_PIPE,
  ATTACHMENT_SAVE, ATTACHMENT_SELECT, ATTACHMENT_TAG, ATTACHMENT_TAG_PATTERN,
  ATTACHMENT_TOGGLE_TAGGED, ATTACHMENT_UNTAG, SPECIAL_CATCHUP_LEFT, SPECIAL_MOUSE_TOGGLE,
  CATCHUP, CATCHUP_NEXT_UNREAD, CONFIG_RESET_ATTRIB, CONFIG_SCOPE_MENU,
  CONFIG_SELECT, CONFIG_NO_SAVE, CONFIG_TOGGLE_ATTRIB, FEED_ARTICLE,
  FEED_THREAD, FEED_HOT, FEED_PATTERN, FEED_RANGE,
  FEED_TAGGED, FEED_KEY_REPOST, FEED_SUPERSEDE, FILTER_EDIT,
  FILTER_SAVE, GLOBAL_ABORT, GLOBAL_BUGREPORT, GLOBAL_DISPLAY_POST_HISTORY,
  GLOBAL_EDIT_FILTER, GLOBAL_FIRST_PAGE, GLOBAL_HELP, GLOBAL_LAST_PAGE,
  GLOBAL_LAST_VIEWED, GLOBAL_LINE_DOWN, GLOBAL_LINE_UP, GLOBAL_LOOKUP_MESSAGEID,
  GLOBAL_MENU_FILTER_KILL, GLOBAL_MENU_FILTER_SELECT, GLOBAL_OPTION_MENU, GLOBAL_PAGE_DOWN,
  GLOBAL_PAGE_UP, GLOBAL_PIPE, GLOBAL_POST, GLOBAL_POSTPONED,
  GLOBAL_PRINT, GLOBAL_QUICK_FILTER_KILL, GLOBAL_QUICK_FILTER_SELECT, GLOBAL_QUIT,
  GLOBAL_QUIT_TIN, GLOBAL_REDRAW_SCREEN, GLOBAL_SCROLL_DOWN, GLOBAL_SCROLL_UP,
  GLOBAL_SEARCH_BODY, GLOBAL_SEARCH_REPEAT, GLOBAL_SEARCH_AUTHOR_BACKWARD, GLOBAL_SEARCH_AUTHOR_FORWARD,
  GLOBAL_SEARCH_SUBJECT_BACKWARD, GLOBAL_SEARCH_SUBJECT_FORWARD, GLOBAL_SET_RANGE, GLOBAL_SHELL_ESCAPE,
  GLOBAL_TOGGLE_HELP_DISPLAY, GLOBAL_TOGGLE_INFO_LAST_LINE, GLOBAL_TOGGLE_INVERSE_VIDEO, GLOBAL_VERSION,
  GROUP_AUTOSAVE, GROUP_CANCEL, GROUP_DO_AUTOSELECT, GROUP_GOTO,
  GROUP_LIST_THREAD, GROUP_MAIL, GROUP_MARK_THREAD_READ, GROUP_MARK_UNSELECTED_ARTICLES_READ,
  GROUP_NEXT_GROUP, GROUP_NEXT_UNREAD_ARTICLE, GROUP_NEXT_UNREAD_ARTICLE_OR_GROUP, GROUP_PREVIOUS_GROUP,
  GROUP_PREVIOUS_UNREAD_ARTICLE, GROUP_READ_BASENOTE, GROUP_REPOST, GROUP_REVERSE_SELECTIONS,
  GROUP_SAVE, GROUP_SELECT_PATTERN, GROUP_SELECT_THREAD, GROUP_SELECT_THREAD_IF_UNREAD_SELECTED,
  GROUP_TAG, GROUP_TAG_PARTS, GROUP_TOGGLE_GET_ARTICLES_LIMIT, GROUP_TOGGLE_READ_UNREAD,
  GROUP_TOGGLE_SUBJECT_DISPLAY, GROUP_TOGGLE_SELECT_THREAD, GROUP_TOGGLE_THREADING, GROUP_UNDO_SELECTIONS,
  GROUP_UNTAG, MARK_ARTICLE_UNREAD, MARK_THREAD_UNREAD, MARK_FEED_READ,
  MARK_FEED_UNREAD, PAGE_AUTOSAVE, PAGE_BOTTOM_THREAD, PAGE_CANCEL,
  PAGE_EDIT_ARTICLE, PAGE_FOLLOWUP, PAGE_FOLLOWUP_QUOTE, PAGE_FOLLOWUP_QUOTE_HEADERS,
  PAGE_GOTO_PARENT, PAGE_GROUP_SELECT, PAGE_LIST_THREAD, PAGE_MAIL,
  PAGE_MARK_THREAD_READ, PAGE_NEXT_ARTICLE, PAGE_NEXT_THREAD, PAGE_NEXT_UNREAD,
  PAGE_NEXT_UNREAD_ARTICLE, PAGE_PREVIOUS_ARTICLE, PAGE_PREVIOUS_UNREAD_ARTICLE, PAGE_REVEAL,
  PAGE_REPLY, PAGE_REPLY_QUOTE, PAGE_REPLY_QUOTE_HEADERS, PAGE_REPOST,
  PAGE_SAVE, PAGE_SKIP_INCLUDED_TEXT, PAGE_TAG, PAGE_TOGGLE_HEADERS,
  PAGE_TOGGLE_HIGHLIGHTING, PAGE_TOGGLE_RAW, PAGE_TOGGLE_ROT13, PAGE_TOGGLE_TABS,
  PAGE_TOGGLE_TEX2ISO, PAGE_TOGGLE_UUE, PAGE_TOP_THREAD, PAGE_VIEW_ATTACHMENTS,
  PAGE_VIEW_URL, POST_ABORT, POST_CANCEL, POST_CONTINUE,
  POST_EDIT, POST_IGNORE_FUPTO, POST_MAIL, POST_POSTPONE,
  POST_SEND, POST_SUPERSEDE, POSTPONE_ALL, POSTPONE_OVERRIDE,
  POSTPROCESS_NO, POSTPROCESS_SHAR, POSTPROCESS_YES, PROMPT_NO,
  PROMPT_YES, SAVE_APPEND_FILE, SAVE_OVERWRITE_FILE, SCOPE_ADD,
  SCOPE_DELETE, SCOPE_EDIT_ATTRIBUTES_FILE, SCOPE_MOVE, SCOPE_RENAME,
  SCOPE_SELECT, SELECT_ENTER_GROUP, SELECT_ENTER_NEXT_UNREAD_GROUP, SELECT_GOTO,
  SELECT_MARK_GROUP_UNREAD, SELECT_MOVE_GROUP, SELECT_NEXT_UNREAD_GROUP, SELECT_RESET_NEWSRC,
  SELECT_SORT_ACTIVE, SELECT_SUBSCRIBE, SELECT_SUBSCRIBE_PATTERN, SELECT_SYNC_WITH_ACTIVE,
  SELECT_TOGGLE_DESCRIPTIONS, SELECT_TOGGLE_READ_DISPLAY, SELECT_UNSUBSCRIBE, SELECT_UNSUBSCRIBE_PATTERN,
  SELECT_QUIT_NO_WRITE, SELECT_YANK_ACTIVE, THREAD_AUTOSAVE, THREAD_CANCEL,
  THREAD_MAIL, THREAD_MARK_ARTICLE_READ, THREAD_READ_NEXT_ARTICLE_OR_THREAD, THREAD_READ_ARTICLE,
  THREAD_REVERSE_SELECTIONS, THREAD_SAVE, THREAD_SELECT_ARTICLE, THREAD_TAG,
  THREAD_TOGGLE_ARTICLE_SELECTION, THREAD_TOGGLE_SUBJECT_DISPLAY, THREAD_UNDO_SELECTIONS, THREAD_UNTAG,
  URL_SELECT
}
 

Functions

t_function global_mouse_action (t_function(*left_action)(void), t_function(*right_action)(void))
 
t_function handle_keypad (t_function(*left_action)(void), t_function(*right_action)(void), t_function(*mouse_action)(t_function(*left_action)(void), t_function(*right_action)(void)), const struct keylist keys)
 
t_function prompt_slk_response (t_function default_func, const struct keylist keys, const char *fmt,...)
 
char * printascii (char *buf, int ch)
 
char func_to_key (t_function func, const struct keylist keys)
 
t_function key_to_func (const char key, const struct keylist keys)
 

Variables

struct keylist attachment_keys
 
struct keylist feed_post_process_keys
 
struct keylist feed_supersede_article_keys
 
struct keylist feed_type_keys
 
struct keylist filter_keys
 
struct keylist group_keys
 
struct keylist info_keys
 
struct keylist option_menu_keys
 
struct keylist page_keys
 
struct keylist post_cancel_keys
 
struct keylist post_continue_keys
 
struct keylist post_delete_keys
 
struct keylist post_edit_keys
 
struct keylist post_edit_ext_keys
 
struct keylist post_ignore_fupto_keys
 
struct keylist post_mail_fup_keys
 
struct keylist post_post_keys
 
struct keylist post_postpone_keys
 
struct keylist post_send_keys
 
struct keylist prompt_keys
 
struct keylist save_append_overwrite_keys
 
struct keylist scope_keys
 
struct keylist select_keys
 
struct keylist thread_keys
 
struct keylist url_keys
 

Macro Definition Documentation

◆ ctrl

#define ctrl (   c)    ((c) & 0x1F)

Definition at line 139 of file keymap.h.

◆ ESC

#define ESC   27

Definition at line 140 of file keymap.h.

◆ iKeyAbort

#define iKeyAbort   ESC

Definition at line 143 of file keymap.h.

◆ iKeyQuit

#define iKeyQuit   'q'

Definition at line 145 of file keymap.h.

◆ iKeyQuitTin

#define iKeyQuitTin   'Q'

Definition at line 144 of file keymap.h.

◆ MAXKEYLEN

#define MAXKEYLEN   17

Definition at line 136 of file keymap.h.

Typedef Documentation

◆ t_function

Definition at line 373 of file keymap.h.

Enumeration Type Documentation

◆ defined_functions

Enumerator
NOT_ASSIGNED 
DIGIT_0 
DIGIT_1 
DIGIT_2 
DIGIT_3 
DIGIT_4 
DIGIT_5 
DIGIT_6 
DIGIT_7 
DIGIT_8 
DIGIT_9 
ATTACHMENT_PIPE 
ATTACHMENT_SAVE 
ATTACHMENT_SELECT 
ATTACHMENT_TAG 
ATTACHMENT_TAG_PATTERN 
ATTACHMENT_TOGGLE_TAGGED 
ATTACHMENT_UNTAG 
SPECIAL_CATCHUP_LEFT 
SPECIAL_MOUSE_TOGGLE 
CATCHUP 
CATCHUP_NEXT_UNREAD 
CONFIG_RESET_ATTRIB 
CONFIG_SCOPE_MENU 
CONFIG_SELECT 
CONFIG_NO_SAVE 
CONFIG_TOGGLE_ATTRIB 
FEED_ARTICLE 
FEED_THREAD 
FEED_HOT 
FEED_PATTERN 
FEED_RANGE 
FEED_TAGGED 
FEED_KEY_REPOST 
FEED_SUPERSEDE 
FILTER_EDIT 
FILTER_SAVE 
GLOBAL_ABORT 
GLOBAL_BUGREPORT 
GLOBAL_DISPLAY_POST_HISTORY 
GLOBAL_EDIT_FILTER 
GLOBAL_FIRST_PAGE 
GLOBAL_HELP 
GLOBAL_LAST_PAGE 
GLOBAL_LAST_VIEWED 
GLOBAL_LINE_DOWN 
GLOBAL_LINE_UP 
GLOBAL_LOOKUP_MESSAGEID 
GLOBAL_MENU_FILTER_KILL 
GLOBAL_MENU_FILTER_SELECT 
GLOBAL_OPTION_MENU 
GLOBAL_PAGE_DOWN 
GLOBAL_PAGE_UP 
GLOBAL_PIPE 
GLOBAL_POST 
GLOBAL_POSTPONED 
GLOBAL_PRINT 
GLOBAL_QUICK_FILTER_KILL 
GLOBAL_QUICK_FILTER_SELECT 
GLOBAL_QUIT 
GLOBAL_QUIT_TIN 
GLOBAL_REDRAW_SCREEN 
GLOBAL_SCROLL_DOWN 
GLOBAL_SCROLL_UP 
GLOBAL_SEARCH_BODY 
GLOBAL_SEARCH_REPEAT 
GLOBAL_SEARCH_AUTHOR_BACKWARD 
GLOBAL_SEARCH_AUTHOR_FORWARD 
GLOBAL_SEARCH_SUBJECT_BACKWARD 
GLOBAL_SEARCH_SUBJECT_FORWARD 
GLOBAL_SET_RANGE 
GLOBAL_SHELL_ESCAPE 
GLOBAL_TOGGLE_HELP_DISPLAY 
GLOBAL_TOGGLE_INFO_LAST_LINE 
GLOBAL_TOGGLE_INVERSE_VIDEO 
GLOBAL_VERSION 
GROUP_AUTOSAVE 
GROUP_CANCEL 
GROUP_DO_AUTOSELECT 
GROUP_GOTO 
GROUP_LIST_THREAD 
GROUP_MAIL 
GROUP_MARK_THREAD_READ 
GROUP_MARK_UNSELECTED_ARTICLES_READ 
GROUP_NEXT_GROUP 
GROUP_NEXT_UNREAD_ARTICLE 
GROUP_NEXT_UNREAD_ARTICLE_OR_GROUP 
GROUP_PREVIOUS_GROUP 
GROUP_PREVIOUS_UNREAD_ARTICLE 
GROUP_READ_BASENOTE 
GROUP_REPOST 
GROUP_REVERSE_SELECTIONS 
GROUP_SAVE 
GROUP_SELECT_PATTERN 
GROUP_SELECT_THREAD 
GROUP_SELECT_THREAD_IF_UNREAD_SELECTED 
GROUP_TAG 
GROUP_TAG_PARTS 
GROUP_TOGGLE_GET_ARTICLES_LIMIT 
GROUP_TOGGLE_READ_UNREAD 
GROUP_TOGGLE_SUBJECT_DISPLAY 
GROUP_TOGGLE_SELECT_THREAD 
GROUP_TOGGLE_THREADING 
GROUP_UNDO_SELECTIONS 
GROUP_UNTAG 
MARK_ARTICLE_UNREAD 
MARK_THREAD_UNREAD 
MARK_FEED_READ 
MARK_FEED_UNREAD 
PAGE_AUTOSAVE 
PAGE_BOTTOM_THREAD 
PAGE_CANCEL 
PAGE_EDIT_ARTICLE 
PAGE_FOLLOWUP 
PAGE_FOLLOWUP_QUOTE 
PAGE_FOLLOWUP_QUOTE_HEADERS 
PAGE_GOTO_PARENT 
PAGE_GROUP_SELECT 
PAGE_LIST_THREAD 
PAGE_MAIL 
PAGE_MARK_THREAD_READ 
PAGE_NEXT_ARTICLE 
PAGE_NEXT_THREAD 
PAGE_NEXT_UNREAD 
PAGE_NEXT_UNREAD_ARTICLE 
PAGE_PREVIOUS_ARTICLE 
PAGE_PREVIOUS_UNREAD_ARTICLE 
PAGE_REVEAL 
PAGE_REPLY 
PAGE_REPLY_QUOTE 
PAGE_REPLY_QUOTE_HEADERS 
PAGE_REPOST 
PAGE_SAVE 
PAGE_SKIP_INCLUDED_TEXT 
PAGE_TAG 
PAGE_TOGGLE_HEADERS 
PAGE_TOGGLE_HIGHLIGHTING 
PAGE_TOGGLE_RAW 
PAGE_TOGGLE_ROT13 
PAGE_TOGGLE_TABS 
PAGE_TOGGLE_TEX2ISO 
PAGE_TOGGLE_UUE 
PAGE_TOP_THREAD 
PAGE_VIEW_ATTACHMENTS 
PAGE_VIEW_URL 
POST_ABORT 
POST_CANCEL 
POST_CONTINUE 
POST_EDIT 
POST_IGNORE_FUPTO 
POST_MAIL 
POST_POSTPONE 
POST_SEND 
POST_SUPERSEDE 
POSTPONE_ALL 
POSTPONE_OVERRIDE 
POSTPROCESS_NO 
POSTPROCESS_SHAR 
POSTPROCESS_YES 
PROMPT_NO 
PROMPT_YES 
SAVE_APPEND_FILE 
SAVE_OVERWRITE_FILE 
SCOPE_ADD 
SCOPE_DELETE 
SCOPE_EDIT_ATTRIBUTES_FILE 
SCOPE_MOVE 
SCOPE_RENAME 
SCOPE_SELECT 
SELECT_ENTER_GROUP 
SELECT_ENTER_NEXT_UNREAD_GROUP 
SELECT_GOTO 
SELECT_MARK_GROUP_UNREAD 
SELECT_MOVE_GROUP 
SELECT_NEXT_UNREAD_GROUP 
SELECT_RESET_NEWSRC 
SELECT_SORT_ACTIVE 
SELECT_SUBSCRIBE 
SELECT_SUBSCRIBE_PATTERN 
SELECT_SYNC_WITH_ACTIVE 
SELECT_TOGGLE_DESCRIPTIONS 
SELECT_TOGGLE_READ_DISPLAY 
SELECT_UNSUBSCRIBE 
SELECT_UNSUBSCRIBE_PATTERN 
SELECT_QUIT_NO_WRITE 
SELECT_YANK_ACTIVE 
THREAD_AUTOSAVE 
THREAD_CANCEL 
THREAD_MAIL 
THREAD_MARK_ARTICLE_READ 
THREAD_READ_NEXT_ARTICLE_OR_THREAD 
THREAD_READ_ARTICLE 
THREAD_REVERSE_SELECTIONS 
THREAD_SAVE 
THREAD_SELECT_ARTICLE 
THREAD_TAG 
THREAD_TOGGLE_ARTICLE_SELECTION 
THREAD_TOGGLE_SUBJECT_DISPLAY 
THREAD_UNDO_SELECTIONS 
THREAD_UNTAG 
URL_SELECT 

Definition at line 148 of file keymap.h.

Function Documentation

◆ func_to_key()

◆ global_mouse_action()

t_function global_mouse_action ( t_function(*)(void)  left_action,
t_function(*)(void)  right_action 
)

◆ handle_keypad()

◆ key_to_func()

t_function key_to_func ( const char  key,
const struct keylist  keys 
)

Definition at line 97 of file keymap.c.

References NOT_ASSIGNED.

Referenced by handle_keypad(), prompt_slk_response(), and prompt_yn().

◆ printascii()

◆ prompt_slk_response()

Variable Documentation

◆ attachment_keys

struct keylist attachment_keys

◆ feed_post_process_keys

struct keylist feed_post_process_keys

Definition at line 63 of file keymap.c.

Referenced by free_keymaps(), get_post_proc_type(), process_mapping(), and setup_default_keys().

◆ feed_supersede_article_keys

struct keylist feed_supersede_article_keys

Definition at line 64 of file keymap.c.

Referenced by feed_articles(), free_keymaps(), process_mapping(), and setup_default_keys().

◆ feed_type_keys

struct keylist feed_type_keys

Definition at line 65 of file keymap.c.

Referenced by free_keymaps(), get_feed_key(), process_mapping(), and setup_default_keys().

◆ filter_keys

struct keylist filter_keys

Definition at line 66 of file keymap.c.

Referenced by filter_menu(), free_keymaps(), process_mapping(), and setup_default_keys().

◆ group_keys

struct keylist group_keys

◆ info_keys

struct keylist info_keys

◆ option_menu_keys

struct keylist option_menu_keys

◆ page_keys

struct keylist page_keys

◆ post_cancel_keys

struct keylist post_cancel_keys

Definition at line 75 of file keymap.c.

Referenced by cancel_article(), free_keymaps(), process_mapping(), and setup_default_keys().

◆ post_continue_keys

struct keylist post_continue_keys

Definition at line 76 of file keymap.c.

Referenced by free_keymaps(), mail_to_author(), process_mapping(), and setup_default_keys().

◆ post_delete_keys

struct keylist post_delete_keys

Definition at line 77 of file keymap.c.

Referenced by cancel_article(), free_keymaps(), process_mapping(), and setup_default_keys().

◆ post_edit_ext_keys

struct keylist post_edit_ext_keys

Definition at line 79 of file keymap.c.

Referenced by free_keymaps(), process_mapping(), repair_article(), and setup_default_keys().

◆ post_edit_keys

struct keylist post_edit_keys

Definition at line 78 of file keymap.c.

Referenced by free_keymaps(), process_mapping(), prompt_rejected(), and setup_default_keys().

◆ post_ignore_fupto_keys

struct keylist post_ignore_fupto_keys

Definition at line 80 of file keymap.c.

Referenced by free_keymaps(), post_response(), process_mapping(), and setup_default_keys().

◆ post_mail_fup_keys

struct keylist post_mail_fup_keys

Definition at line 81 of file keymap.c.

Referenced by free_keymaps(), post_response(), process_mapping(), and setup_default_keys().

◆ post_post_keys

struct keylist post_post_keys

Definition at line 82 of file keymap.c.

Referenced by free_keymaps(), post_loop(), process_mapping(), repost_article(), and setup_default_keys().

◆ post_postpone_keys

struct keylist post_postpone_keys

◆ post_send_keys

struct keylist post_send_keys

Definition at line 84 of file keymap.c.

Referenced by free_keymaps(), process_mapping(), prompt_to_send(), and setup_default_keys().

◆ prompt_keys

struct keylist prompt_keys

Definition at line 85 of file keymap.c.

Referenced by free_keymaps(), process_mapping(), prompt_yn(), and setup_default_keys().

◆ save_append_overwrite_keys

struct keylist save_append_overwrite_keys

Definition at line 86 of file keymap.c.

Referenced by free_keymaps(), open_save_filename(), process_mapping(), and setup_default_keys().

◆ scope_keys

struct keylist scope_keys

◆ select_keys

struct keylist select_keys

◆ thread_keys

struct keylist thread_keys

◆ url_keys

struct keylist url_keys