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

📄 rxvtlib.h

📁 具有IDE功能的编辑器
💻 H
📖 第 1 页 / 共 5 页
字号:
# define NFONTS		5# define FONT0_IDX	2# define MFONT_LIST	"k14", "jiskan16", "jiskan18", "jiskan24", "jiskan26"# define NFONT_LIST	"7x14", "8x16", "9x18", "12x24", "13x26"#endif#ifdef ZH# define NFONTS		5# define FONT0_IDX	1# define MFONT_LIST	"taipei16", "taipeik20", "taipeik24", "taipeik20", \       			"taipei16"# define NFONT_LIST	"8x16", "10x20", "12x24", "10x20", "8x16"#endif#ifdef ZHCN			/* Here are our default GB fonts. */# define NFONTS		3# define FONT0_IDX	1# define MFONT_LIST	"hanzigb16st", "hanzigb24st", "hanzigb16fs"# define NFONT_LIST	"8x16", "12x24", "8x16"#endif/* * $Id: rxvt.h,v 1.40.2.6 1999/07/17 09:43:31 mason Exp $ *//* sort out conflicts in feature.h */#undef  MULTICHAR_SET		/* a glyph is only ever defined by 1 char */#ifdef KANJI# define MULTICHAR_SET		/* a glyph is defined by 1 or 2 chars     */# undef ZH			/* remove Chinese big5 support            */# undef ZHCN			/* remove Chinese gb support              */# undef GREEK_SUPPORT		/* Kanji/Greek together is too weird      */# undef DEFINE_XTERM_COLOR	/* since kterm-color doesn't exist?       */#endif#ifdef ZH# define MULTICHAR_SET		/* a glyph is defined by 1 or 2 chars     */# undef KANJI			/* can't put Chinese/Kanji together       */# undef ZHCN# undef GREEK_SUPPORT# undef DEFINE_XTERM_COLOR#endif#ifdef ZHCN# define MULTICHAR_SET		/* a glyph is defined by 1 or 2 chars     */# undef KANJI# undef ZH# undef GREEK_SUPPORT#endif/* ***************************************************************************** * SYSTEM HACKS ***************************************************************************** *//* Consistent defines - please report on the necessity * @ Unixware: defines (__svr4__) */#if defined (SVR4) && !defined (__svr4__)# define __svr4__#endif#if defined (sun) && !defined (__sun__)# define __sun__#endif/* * sun <sys/ioctl.h> isn't properly protected? * anyway, it causes problems when <termios.h> is also included */#if defined (__sun__)# undef HAVE_SYS_IOCTL_H#endif/* * Solaris defines SRIOCSREDIR in sys/strredir.h . * Needed for displaying console messages under solaris *//* ***************************************************************************** * INCLUDES ***************************************************************************** */#if defined (HAVE_SYS_IOCTL_H) && !defined (__sun__)/* seems to cause problems when <termios.h> is also included on some suns */#endif/* ***************************************************************************** * STRUCTURES AND TYPEDEFS ***************************************************************************** *//* Sanitize menubar info */#ifndef MENUBAR# undef MENUBAR_MAX#endif#ifndef MENUBAR_MAX# define MENUBAR_MAX	0#endifstruct _menuBar_t {    short           state;    Window          win;} menuBar;/* If we're using either the fancy scrollbar or menu bars, keep the * scrollColor resource. */#if !defined(XTERM_SCROLLBAR) || defined(MENUBAR)# define KEEP_SCROLLCOLOR 1#else# undef KEEP_SCROLLCOLOR#endif#ifdef TRANSPARENT# define KNOW_PARENTS		4#else# define KNOW_PARENTS		1#endifstruct _TermWin_t {    short           width,	/* window width [pixels]                    */                    height,	/* window height [pixels]                   */                    fwidth,	/* font width [pixels]                      */                    fheight,	/* font height [pixels]                     */                    fprop,	/* font is proportional                     */		    bprop,	/* treat bold font as proportional          */		    mprop,	/* treat multichar font as proportional     */                    ncol, nrow,	/* window size [characters]                 */                    focus,	/* window has focus                         */                    mapped,	/* window state mapped?                     */                    saveLines;	/* number of lines that fit in scrollback   */    unsigned short  nscrolled,	/* number of line actually scrolled         */                    view_start;	/* scrollback view starts here              */    Window          parent[KNOW_PARENTS],	/* parent[0] is our window        */                    vt;		/* vt100 window                             */    GC              gc;		/* GC for drawing text                      */    XFontStruct    *font;	/* main font structure                      */#ifndef NO_BOLDFONT    XFontStruct    *boldFont;	/* bold font                                */#endif#ifdef MULTICHAR_SET    XFontStruct    *mfont;	/* Multichar font structure                 */#endif    XFontSet        fontset;#ifdef XPM_BACKGROUND    Pixmap          pixmap;#ifdef XPM_BUFFERING    Pixmap          buf_pixmap;#endif#endif} TermWin;struct _scrollBar_t {    short           beg, end;	/* beg/end of slider sub-window */    short           top, bot;	/* top/bot of slider */    short           state;	/* scrollbar state */    Window          win;} scrollBar;#ifdef RXVT_GRAPHICSint graphics_up;struct grwin_t {    Window win;    int x, y;    unsigned int w, h;    short screen;    struct _grcmd_t {	char cmd;	short color;	short ncoords;	int *coords;	unsigned char *text;	struct grcmd_t *next;    } *graphics;    struct grwin_t *prev, *next;} *gr_root;#endifstruct _row_col_t {    short         row, col;} oldcursor;#ifndef min# define min(a,b)	(((a) < (b)) ? (a) : (b))# define max(a,b)	(((a) > (b)) ? (a) : (b))#endif#define MAX_IT(current, other)	if ((other) > (current)) (current) = (other)#define MIN_IT(current, other)	if ((other) < (current)) (current) = (other)#define SWAP_IT(one, two, tmp)				\    do {						\	(tmp) = (one); (one) = (two); (two) = (tmp);	\    } while (0)/* ***************************************************************************** * NORMAL DEFINES ***************************************************************************** */#if defined (NO_OLD_SELECTION) && defined(NO_NEW_SELECTION)# error if you disable both selection styles, how can you select, silly?#endif#ifndef XPM_BACKGROUND# undef XPM_BUFFERING		/* disable what can't be used */#endif#define APL_CLASS	"XTerm"	/* class name */#define APL_SUBCLASS	"Rxvt"	/* also check resources under this name */#define APL_NAME	"rxvt"	/* normal name *//* COLORTERM, TERM environment variables */#define COLORTERMENV	"rxvt"#ifdef XPM_BACKGROUND# define COLORTERMENVFULL COLORTERMENV "-xpm"#else# define COLORTERMENVFULL COLORTERMENV#endif#ifndef TERMENV# ifdef KANJI#  define TERMENV	"kterm"# else#  define TERMENV	"xterm"# endif#endif#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR)# define NO_MOUSE_REPORT_SCROLLBAR#endif#ifdef NO_RESOURCES# undef USE_XGETDEFAULT#endif/* now look for other badly set stuff */#if !defined (EACCESS) && defined(EAGAIN)# define EACCESS EAGAIN#endif#define DO_EXIT ((int) 1 << 30)#ifndef EXIT_SUCCESS		/* missing from <stdlib.h> */# define EXIT_SUCCESS		0	/* exit function success */# define EXIT_FAILURE		1	/* exit function failure */#endif#define menuBar_esc		10#define scrollBar_esc		30#define menuBar_margin		2	/* margin below text *//* gap between text and window edges (could be configurable) */#define TermWin_internalBorder	2/* width of scrollBar, menuBar shadow, must be 1 or 2 */#ifdef HALFSHADOW# define SHADOW 1#else# define SHADOW 2#endif#ifndef STANDALONE# undef SHADOW# define SHADOW 2#endif#ifdef NEXT_SCROLLBAR# undef SB_WIDTH# define SB_WIDTH		19# define SB_PADDING		1# define SB_BORDER_WIDTH	1# define SB_BEVEL_WIDTH_UPPER_LEFT	1# define SB_BEVEL_WIDTH_LOWER_RIGHT	2# define SB_LEFT_PADDING	(SB_PADDING + SB_BORDER_WIDTH)# define SB_MARGIN_SPACE	(SB_PADDING * 2)# define SB_BUTTON_WIDTH	(SB_WIDTH - SB_MARGIN_SPACE - SB_BORDER_WIDTH)# define SB_BUTTON_HEIGHT	(SB_BUTTON_WIDTH)# define SB_BUTTON_SINGLE_HEIGHT	(SB_BUTTON_HEIGHT + SB_PADDING)# define SB_BUTTON_BOTH_HEIGHT		(SB_BUTTON_SINGLE_HEIGHT * 2)# define SB_BUTTON_TOTAL_HEIGHT		(SB_BUTTON_BOTH_HEIGHT + SB_PADDING)# define SB_BUTTON_BEVEL_X	(SB_LEFT_PADDING)# define SB_BUTTON_FACE_X	(SB_BUTTON_BEVEL_X + SB_BEVEL_WIDTH_UPPER_LEFT)# define SB_THUMB_MIN_HEIGHT	(SB_BUTTON_WIDTH - (SB_PADDING * 2)) /*  *    +-------------+  *    |             | <---< SB_PADDING  *    | ::::::::::: |  *    | ::::::::::: |  *   '''''''''''''''''  *   ,,,,,,,,,,,,,,,,,  *    | ::::::::::: |  *    | ::::::::::: |  *    |  +---------------< SB_BEVEL_WIDTH_UPPER_LEFT  *    |  | :::::::: |  *    |  V :::: vv-------< SB_BEVEL_WIDTH_LOWER_RIGHT  *    | +---------+ |  *    | | ......%%| |  *    | | ......%%| |  *    | | ..()..%%| |  *    | | ......%%| |  *    | | %%%%%%%%| |  *    | +---------+ | <.........................  *    |             | <---< SB_PADDING         :  *    | +---------+ | <-+..........            :---< SB_BUTTON_TOTAL_HEIGHT  *    | | ......%%| |   |         :            :  *    | | ../\..%%| |   |---< SB_BUTTON_HEIGHT :  *    | | %%%%%%%%| |   |         :            :  *    | +---------+ | <-+         :            :  *    |             |             :            :  *    | +---------+ | <-+         :---< SB_BUTTON_BOTH_HEIGHT  *    | | ......%%| |   |         :            :  *    | | ..\/..%%| |   |         :            :  *    | | %%%%%%%%| |   |---< SB_BUTTON_SINGLE_HEIGHT  *    | +---------+ |   |         :            :  *    |             |   |         :            :  *    +-------------+ <-+.........:............:  *    ^^|_________| :  *    ||     |      :  *    ||     +---< SB_BUTTON_WIDTH  *    ||            :  *    |+------< SB_PADDING  *    |:            :  *    +----< SB_BORDER_WIDTH  *     :            :  *     :............:  *           |  *           +---< SB_WIDTH  */#else# ifdef XTERM_SCROLLBAR#  undef  SB_WIDTH#  define SB_WIDTH		15# else#  if !defined (SB_WIDTH) || (SB_WIDTH < 8)#   undef SB_WIDTH#   define SB_WIDTH		11	/* scrollBar width */#  endif# endif				/* XTERM_SCROLLBAR */#endif#define NO_REFRESH		0	/* Window not visible at all!        */#define FAST_REFRESH		(1<<1)	/* Fully exposed window              */#define SLOW_REFRESH		(1<<2)	/* Partially exposed window          */#define SMOOTH_REFRESH		(1<<3)	/* Do sync'ing to make it smooth     */#ifdef NO_SECONDARY_SCREEN# define NSCREENS		0#else# define NSCREENS		1#endif#define IGNORE			0#define SAVE			's'#define RESTORE			'r'/* special (internal) prefix for font commands */#define FONT_CMD		'#'#define FONT_DN			"#-"#define FONT_UP			"#+"/* flags for scr_gotorc() */#define C_RELATIVE		1	/* col movement is relative */#define R_RELATIVE		2	/* row movement is relative */#define RELATIVE		(R_RELATIVE|C_RELATIVE)/* modes for scr_insdel_chars(), scr_insdel_lines() */#define INSERT			-1	/* don't change these values */#define DELETE			+1#define ERASE			+2/* all basic bit-flags in first/lower 16 bits */#define RS_None			0	/* Normal */#define RS_fgMask		0x0000001Fu	/* 32 colors */#define RS_bgMask		0x000003E0u	/* 32 colors */#define RS_Bold			0x00000400u	/* bold */#define RS_Blink		0x00000800u	/* blink */#define RS_RVid			0x00001000u	/* reverse video */#define RS_Uline		0x00002000u	/* underline */#define RS_acsFont		0x00004000u	/* ACS graphics char set */#define RS_ukFont		0x00008000u	/* UK character set */#define RS_fontMask		(RS_acsFont|RS_ukFont)#define RS_baseattrMask		(RS_Bold|RS_Blink|RS_RVid|RS_Uline)/* all other bit-flags in upper 16 bits */#ifdef MULTICHAR_SET# define RS_multi0		0x10000000u	/* only multibyte characters */# define RS_multi1		0x20000000u	/* multibyte 1st byte */# define RS_multi2		(RS_multi0|RS_multi1)	/* multibyte 2nd byte */# define RS_multiMask		(RS_multi0|RS_multi1)	/* multibyte mask */#else# define RS_multiMask		0#endif#define RS_attrMask		(RS_baseattrMask|RS_fontMask|RS_multiMask)#define	Opt_console		(1LU<<0)#define Opt_loginShell		(1LU<<1)#define Opt_iconic		(1LU<<2)#define Opt_visualBell		(1LU<<3)#define Opt_mapAlert		(1LU<<4)#define Opt_reverseVideo	(1LU<<5)#define Opt_utmpInhibit		(1LU<<6)#define Opt_scrollBar		(1LU<<7)#define Opt_scrollBar_right	(1LU<<8)#define Opt_scrollBar_floating	(1LU<<9)#define Opt_meta8		(1LU<<10)#define Opt_scrollTtyOutput	(1LU<<11)#define Opt_scrollKeypress	(1LU<<12)#define Opt_transparent		(1LU<<13)/* place holder used for parsing command-line options */#define Opt_Reverse		(1LU<<30)#define Opt_Boolean		(1LU<<31)/* * XTerm escape sequences: ESC ] Ps;Pt BEL */#define XTerm_name		0#define XTerm_iconName		1#define XTerm_title		2#define XTerm_logfile		46	/* not implemented */#define XTerm_font		50/* * rxvt extensions of XTerm escape sequences: ESC ] Ps;Pt BEL */#define XTerm_Menu		10	/* set menu item */#define XTerm_Pixmap		20	/* new bg pixmap */#define XTerm_restoreFG		39	/* change default fg color */#define XTerm_restoreBG		49	/* change default bg color */#define restoreFG		39	/* restore default fg color */#define restoreBG		49	/* restore default bg color *//* Words starting with `Color_' are colours.  Others are counts */enum colour_list {    Color_fg = 0,    Color_bg,    minCOLOR,			/* 2 */    Color_Black = minCOLOR,    Color_Red3,    Color_Green3,    Color_Yellow3,    Color_Blue3,

⌨️ 快捷键说明

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