From f674c3f262a6bf2542debd29c4aa61281a976cbc Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Tue, 13 Jul 2004 15:28:43 +0000 Subject: Use my_wgetch() instead of wgetch(), added --[no-]mouse option git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1864 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/command.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h index db2c9cee0..fc436a443 100644 --- a/src/command.h +++ b/src/command.h @@ -54,10 +54,15 @@ typedef enum } command_t; -/* flags */ +/* command definition flags */ #define COMMAND_KEY_MODIFIED 0x01 #define COMMAND_KEY_CONFLICT 0x02 +/* write key bindings flags */ +#define KEYDEF_WRITE_HEADER 0x01 +#define KEYDEF_WRITE_ALL 0x02 +#define KEYDEF_COMMENT_ALL 0x04 + typedef struct { int keys[MAX_COMMAND_KEYS]; @@ -72,7 +77,7 @@ command_t find_key_command(int key, command_definition_t *cmds); void command_dump_keys(void); int check_key_bindings(command_definition_t *cmds, char *buf, size_t size); -int write_key_bindings(FILE *f); +int write_key_bindings(FILE *f, int all); char *key2str(int key); char *get_key_description(command_t command); @@ -82,6 +87,7 @@ command_t get_key_command(int key); command_t get_key_command_from_name(char *name); int assign_keys(command_t command, int keys[MAX_COMMAND_KEYS]); +int my_wgetch(WINDOW *w); command_t get_keyboard_command(void); command_t get_keyboard_command_with_timeout(int milliseconds); -- cgit v1.2.3