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

📄 protos.h

📁 multi-tabed terminal based on rxvt
💻 H
📖 第 1 页 / 共 2 页
字号:
/*--------------------------------*-H-*---------------------------------* * File:    protos.h *----------------------------------------------------------------------* * * All portions of code are copyright by their respective author/s. * Copyright (c) 1997-2001   Geoff Wing <gcw@pobox.com> * Copyright (c) 2004        Sergey Popov <p_sergey@jungo.com> * Copyright (c) 2004        Jingmin Zhou <jimmyzhou@users.sourceforge.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *----------------------------------------------------------------------*/#ifndef __PROTOS_H__#define __PROTOS_H__/* Begin prototypes of command.c */void		 rxvt_cmd_write                   __PROTO((rxvt_t* r, int page, const unsigned char* str, unsigned int count));FILE*            rxvt_popen_printer               __PROTO((rxvt_t *r, const char *pipeName));int              rxvt_pclose_printer              __PROTO((FILE *stream));void             rxvt_xterm_seq                   __PROTO((rxvt_t* r, int page, int op, const char* str, unsigned char resp __attribute__((unused))));void             rxvt_tt_printf                   __PROTO((rxvt_t* r, int page, const char* fmt,...));void             rxvt_tt_write                    __PROTO((rxvt_t* r, int page, const unsigned char* d, int len));void             rxvt_pointer_unblank             __PROTO((rxvt_t* r, int page));void             rxvt_resize_on_subwin            __PROTO((rxvt_t* r, resize_reason_t reason));void           	 rxvt_resize_on_font           	  __PROTO((rxvt_t* r, char* fontname));/* End prototypes of command.c *//* Begin prototypes of encoding.c */#ifdef MULTICHAR_SETvoid             rxvt_decode_euc2jis              __PROTO((unsigned char* str, int len));void             rxvt_decode_sjis2jis             __PROTO((unsigned char* str, int len));void             rxvt_decode_gb180302jis          __PROTO((unsigned char* str, int len));void             rxvt_set_multichar_encoding      __PROTO((rxvt_t* r, const char* str));#endifvoid             rxvt_decode_dummy                __PROTO((unsigned char* str, int len));void             rxvt_set_default_locale          __PROTO((rxvt_t *r));char*            rxvt_get_encoding_from_locale    __PROTO((rxvt_t *r));void             rxvt_set_default_font_x11        __PROTO((rxvt_t *r));char*            rxvt_fallback_mfont_x11          __PROTO((rxvt_t *r));#ifdef XFT_SUPPORTvoid             rxvt_set_default_font_xft        __PROTO((rxvt_t *r));char*            rxvt_fallback_mfont_xft          __PROTO((rxvt_t *r));#endifchar*            rxvt_encoding_name               __PROTO((rxvt_t *r));/* End prototypes of defaultfont.c *//* Begin prototypes of grkelot.c */#ifdef GREEK_SUPPORTvoid             greek_init                       __PROTO((void));void             greek_end                        __PROTO((void));void             greek_reset                      __PROTO((void));void             greek_setmode                    __PROTO((int greek_mode));int              greek_getmode                    __PROTO((void));int              greek_xlat                       __PROTO((char* s, int num_chars));#endif/* End prototypes of grkelot.c *//* Begin prototypes of macros.c */int		 rxvt_parse_macros		  __PROTO((rxvt_t*, const char *, const char *, macro_priority_t priority));void		 rxvt_cleanup_macros		  __PROTO((rxvt_t*));Bool		 rxvt_set_action		  __PROTO((action_t*, char*));int		 rxvt_process_macros		  __PROTO((rxvt_t*, KeySym, XKeyEvent*));int		 rxvt_dispatch_action		  __PROTO((rxvt_t*, action_t*, XEvent *ev));void		 rxvt_toggle_verybold		  __PROTO((rxvt_t*));void		 rxvt_toggle_subwin		  __PROTO((rxvt_t*, const unsigned char *));/* End prototypes of macros.c *//* Begin prototypes of init.c */int              rxvt_init_vars                   __PROTO((rxvt_t* r));void             rxvt_init_secondary              __PROTO((rxvt_t* r));void		 rxvt_set_jumpscroll		  __PROTO((rxvt_t* r));const char    ** rxvt_init_resources              __PROTO((rxvt_t* r, int argc, const char* const *argv));#ifdef XFT_SUPPORTvoid		 rxvt_fade_color                  __PROTO((rxvt_t* r, const XColor *xcol, unsigned long *pix_return, XftColor *xft_return));#elsevoid	         rxvt_fade_color                  __PROTO((rxvt_t* r, const XColor *xcol, unsigned long *pix_return, void *xft_return));#endifint		 rxvt_set_fgbg_colors		  __PROTO((rxvt_t* r, int page));int		 rxvt_set_vt_colors		  __PROTO((rxvt_t* r, int page));void		 rxvt_copy_color                  __PROTO((rxvt_t*, int, int));void		 rxvt_set_color                   __PROTO((rxvt_t*, int, const XColor*));void             rxvt_init_env                    __PROTO((rxvt_t *r));void             rxvt_init_xlocale                __PROTO((rxvt_t *r));void		 rxvt_init_fifo	                  __PROTO((rxvt_t *r));void             rxvt_init_command                __PROTO((rxvt_t* r));CARD32           rxvt_get_desktop                 __PROTO((rxvt_t* r));void             rxvt_create_show_windows         __PROTO((rxvt_t* r, int argc, const char* const *argv));void             rxvt_destroy_termwin             __PROTO((rxvt_t* r, int page));void             rxvt_create_termwin              __PROTO((rxvt_t* r, int page, int profile,  const char TAINTED * title));const char*	 getProfileOption		  __PROTO(( rxvt_t *r, int profile, int resource ));Status		 ewmh_message			  __PROTO(( Display *, Window, Window, Atom, long, long, long, long, long));int		 rxvt_async_exec		  __PROTO((rxvt_t*, const char *));int              rxvt_run_command                 __PROTO((rxvt_t* r, int page, const char** argv));void             clean_sigmasks_and_fds           __PROTO((rxvt_t* r, int page));termenv_t        rxvt_get_termenv                 __PROTO((const char* str));char**		 rxvt_string_to_argv    	  __PROTO((const char*, int*));/* End prototypes of init.c *//* Begin prototypes of logging.c */#ifdef UTMP_SUPPORTvoid             rxvt_makeutent                   __PROTO((rxvt_t* r, int page, const char* pty, const char* hostname));void             rxvt_cleanutent                  __PROTO((rxvt_t* r, int page));#endif/* End prototypes of logging.c *//* Begin prototypes of rxvtmem.c */#ifdef OUR_MALLOCvoid             rxvt_mem_init                    __PROTO((void));void             rxvt_mem_exit                    __PROTO((void));#endif /* OUR_MALLOC */void*            rxvt_malloc                      __PROTO((size_t size));void*            rxvt_calloc                      __PROTO((size_t number, size_t size));void*            rxvt_realloc                     __PROTO((void *ptr, size_t size));void             rxvt_free                        __PROTO((void *ptr));/* End prototypes of rxvtmem.c *//* Begin prototypes of main.c */void             rxvt_privileges                  __PROTO((int mode));RETSIGTYPE       rxvt_Child_signal                __PROTO((int sig __attribute__((unused))));RETSIGTYPE       rxvt_Exit_signal                 __PROTO((int sig));void		 rxvt_exit_request                __PROTO((rxvt_t*));void             rxvt_clean_exit                  __PROTO((rxvt_t* r));void		 rxvt_close_all_tabs		  __PROTO((rxvt_t* r));void             rxvt_privileged_utmp             __PROTO((rxvt_t* r, int page, char action));void             rxvt_privileged_ttydev           __PROTO((rxvt_t* r, int page, char action));void             rxvt_tt_winsize                  __PROTO((int fd, unsigned short col, unsigned short row, pid_t pid));void             rxvt_init_font_x11               __PROTO((rxvt_t *r));int              rxvt_change_font_x11             __PROTO((rxvt_t* r, const char* fontname));#ifdef XFT_SUPPORTint              rxvt_init_font_xft               __PROTO((rxvt_t *r));int              rxvt_change_font_xft             __PROTO((rxvt_t* r, const char* fontname));#endifvoid             rxvt_set_win_title               __PROTO((rxvt_t* r, Window win, const char* str));void             rxvt_set_term_title              __PROTO((rxvt_t* r, const unsigned char* str));void             rxvt_set_icon_name               __PROTO((rxvt_t* r, const unsigned char* str));void             rxvt_set_window_color            __PROTO((rxvt_t* r, int page, int idx, const char* color));void             rxvt_recolour_cursor             __PROTO((rxvt_t *r));#ifdef XFT_SUPPORTint              rxvt_alloc_xft_color             __PROTO((rxvt_t *r, const XColor *xcol, XftColor* xftcolor));#endifint              rxvt_parse_alloc_color           __PROTO((rxvt_t* r, XColor *screen_in_out, const char* colour));int              rxvt_alloc_color                 __PROTO((rxvt_t* r, XColor *screen_in_out, const char* colour));void             rxvt_set_widthheight             __PROTO((rxvt_t* r, unsigned int width, unsigned int height));void             rxvt_IM_send_spot                __PROTO((rxvt_t *r));void             rxvt_IM_set_fontset              __PROTO((rxvt_t* r, int idx));void             rxvt_IM_init_callback            __PROTO((Display *unused __attribute__((unused)), XPointer client_data __attribute__((unused)), XPointer call_data __attribute__((unused))));void             rxvt_IM_resize                   __PROTO((rxvt_t *r));rxvt_t         * rxvt_get_r                       __PROTO((void));/* End prototypes of main.c *//* Begin prototypes of menubar.c */#ifdef HAVE_MENUBARvoid             rxvt_menubar_resize              __PROTO((rxvt_t*));void             rxvt_menubar_create              __PROTO((rxvt_t*));void             rxvt_menubar_clean_exit          __PROTO((rxvt_t*));int              rxvt_menubar_hide                __PROTO((rxvt_t*));int              rxvt_menubar_show                __PROTO((rxvt_t*));void             rxvt_menubar_expose              __PROTO((rxvt_t*));void             rxvt_menubar_dispatcher          __PROTO((rxvt_t*, unsigned char*));void             rxvt_menubar_control             __PROTO((rxvt_t*, XButtonEvent*));void             rxvt_menubar_load_file           __PROTO((rxvt_t*, const unsigned char*));int              rxvt_is_menubar_win              __PROTO((rxvt_t*, Window));unsigned short   rxvt_menubar_height              __PROTO((rxvt_t*));unsigned short   rxvt_menubar_rheight             __PROTO((rxvt_t*));int              rxvt_menubar_visible             __PROTO((rxvt_t*));void		 rxvt_menu_show			  __PROTO((rxvt_t*));int		 rxvt_menu_select		  __PROTO((rxvt_t*, XButtonEvent*));#endif/* End prototypes of menubar.c *//* Begin prototypes of misc.c */char           * rxvt_r_basename                  __PROTO((const char* str));int              rxvt_str_match                   __PROTO((const char* s1, const char* s2));const char*      rxvt_str_skip_space              __PROTO((const char* str));char*            rxvt_str_trim                    __PROTO((char* str));int              rxvt_str_escaped                 __PROTO((char* str));int		 rxvt_percent_interpolate         __PROTO((rxvt_t*, int, const char *, int, char *, int));char**           rxvt_splitcommastring            __PROTO((const char* cs));char*            rxvt_File_find                   __PROTO((const char* file, const char* ext, const char* path));void             rxvt_draw_shadow                 __PROTO((Display *Xdisplay, Window win, GC gc, unsigned long topShadow, unsigned long botShadow, int x, int y, int w, int h));void             rxvt_draw_triangle               __PROTO((Display *Xdisplay, Window win, GC gc, unsigned long topShadow, unsigned long botShadow, int x, int y, int w, int type));/* End prototypes of misc.c *//* Begin prototypes of netdisp.c */#ifdef NET_DISPLAYchar           * rxvt_network_display             __PROTO((const char* display));#endif/* End prototypes of netdisp.c *//* Begin prototypes of ptytty.c */int              rxvt_get_pty                     __PROTO((int *fd_tty, char** ttydev));int              rxvt_get_tty                     __PROTO((const char* ttydev));int              rxvt_control_tty                 __PROTO((int fd_tty, const char* ttydev));/* End prototypes of ptytty.c *//* Begin prototypes of screen.c */voidrxvt_draw_string_x11 (rxvt_t* r, Window win, GC gc, Region refreshRegion,	int x, int y, char* str, int len, int (*draw_string)());#ifdef XFT_SUPPORTvoidrxvt_draw_string_xft (rxvt_t* r, Drawable d, GC gc, Region refreshRegion,	rend_t rend, int pfont,	XftDraw* win, XftColor* fore, int x, int y, char* str, int len,	void (*xftdraw_string)());#endifvoid             rxvt_init_screen                 __PROTO((rxvt_t* r));void             rxvt_scr_reset                   __PROTO((rxvt_t* r, int page));void             rxvt_scr_release                 __PROTO((rxvt_t* r, int page));void             rxvt_scr_poweron                 __PROTO((rxvt_t* r, int page));void             rxvt_scr_cursor                  __PROTO((rxvt_t* r, int page, int mode));int              rxvt_scr_change_screen           __PROTO((rxvt_t* r, int page, int scrn));void             rxvt_scr_color                   __PROTO((rxvt_t* r, int page, unsigned int color, int fgbg));void             rxvt_scr_rendition               __PROTO((rxvt_t* r, int page, int set, int style));int              rxvt_scroll_text                 __PROTO((rxvt_t* r, int page, int row1, int row2, int count, int spec));

⌨️ 快捷键说明

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