⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keys.h

📁 EPIC IRC客户端。来源于IRCII客户端但做了很多性能和功能的优化。
💻 H
字号:
/* * keys.h: header for keys.c  * * Copyright 2002 EPIC Software Labs * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT  */#ifndef __keys_h__#define __keys_h__/* This is a typedef for a function used with the /BIND system.  The * functions all live in input.c.  Following it is a macro to quickly define * functions to handle keybindings. */typedef void (*BindFunction) (char, char *);#define BUILT_IN_BINDING(x) void x (char key, char *string)/* This is the structure used to hold binding functions. */struct Binding {    struct Binding *next;   /* linked-list stuff. :) */    char    *name;	    /* the name of this binding */    BindFunction func;	    /* function to use ... */    char    *alias;	    /* OR alias to call.  one or the other. */    char    *filename;	    /* the package which added this binding */};extern struct Binding *binding_list; /* list head for keybindings */struct Binding	*add_binding	(const char *, BindFunction, char *);void		remove_binding	(char *);struct Binding *find_binding	(const char *);void		init_binds	(void);#define KEYMAP_SIZE 256struct Key {    unsigned char val;	/* the key value */    unsigned char changed; /* set if this binding was changed post-startup */    struct Binding *bound; /* the function we're bound to. */    struct Key *map;    /* a map of subkeys (may be NULL) */    struct Key *owner;	/* the key which contains the map we're in. */    char    *stuff;     /* 'stuff' associated with our binding */    char    *filename;  /* the package which added this binding */};extern struct Key *head_keymap; /* the head keymap.  the root of the keys.  */struct Key     *handle_keypress	(struct Key *, struct timeval,				 unsigned char);struct Key     *timeout_keypress(struct Key *, struct timeval);BUILT_IN_COMMAND(bindcmd);BUILT_IN_COMMAND(rbindcmd);BUILT_IN_COMMAND(parsekeycmd);void		init_keys 	(void);void		init_termkeys 	(void);void		set_key_interval(const void *);void		save_bindings 	(FILE *, int);void		remove_bindings	(void);void		unload_bindings	(const char *);void		do_stack_bind	(int, char *);char *		bindctl		(char *);#endif /* __keys_h_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -