📄 rxvt.h
字号:
*/#define Xwsh_title (1)#define Xwsh_iconName (3)#define Xwsh_textColor (4)#define Xwsh_pageColor (5)#define Xwsh_selTextColor (6)#define Xwsh_selPageColor (7)#define Xwsh_cursorTextColor (8)#define Xwsh_cursorPageColor (9)#define Xwsh_halfIntColor (10)#define Xwsh_boldIntColor (11)#define Xwsh_bindStrKeyVal (101) /* not implemented */#define Xwsh_bindStrKeyFunc (103) /* not implemented *//*** XTerm Operating System Commands: ESC ] Ps;Pt (ST|BEL)** colour extensions by Christian W. Zuckschwerdt <zany@triq.net>*/#define XTerm_name (0)#define XTerm_iconName (1)#define XTerm_title (2)#define XTerm_Color (4) /* change colors */#define XTerm_Color_cursor (12) /* change actual 'Cursor' color */#define XTerm_Color_pointer (13) /* change actual 'Pointer' color */#define XTerm_Color_RV (17) /* change actual 'Highlight' color */#define XTerm_Color_BD (18) /* change actual 'Bold' color */#define XTerm_Color_UL (19) /* change actual 'Underline' color */#define XTerm_logfile (46) /* not implemented */#define XTerm_font (50)/*** rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|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 XTerm_dumpscreen (55) /* dump scrollback and all screen *//* * mrxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) * Example: echo "\e]61;newtitle\a" */#define MRxvt_term (60) /* Change window title */#define MRxvt_tab (61) /* change tab title */#define MRxvt_tabterm (62) /* change tab and terminal title */#define MRxvt_wformat (63) /* Change window title format */#define MRxvt_tformat (64) /* Change tab title format *//* #define MRxvt_newtab (63) ** DISABLED create a new tab with title *//* #define MRxvt_prevtab (64) ** DISABLED switch to previous tab *//* #define MRxvt_nexttab (65) ** DISABLED switch to next tab */#define MRxvt_tint (66) /* change tinting color */#define MRxvt_shade (67) /* change shade level */#define MRxvt_encode (68) /* change encoding *//* #define MRxvt_hide (69) ** DISABLED hide/show tabbar */#define MRxvt_opacity (70) /* set opacity level *//* #define MRxvt_tabbtn (71) ** DISABLED hide/show tabbar buttons */#define MRxvt_tabfg (72) /* change active tab fg */#define MRxvt_tabbg (73) /* change tabbar/active tab bg */#define MRxvt_itabfg (74) /* change inactive tab fg */#define MRxvt_itabbg (75) /* change inactive tab bg *//* #define MRxvt_trans (76) ** DISABLED toggle transparency *//* #define MRxvt_moveleft (77) ** DISABLED move active tab to left *//* #define MRxvt_moveright (78) ** DISABLED move active tab to right *//* #define MRxvt_verybold (79) ** DISABLED toggle bold font for color text *//* #define MRxvt_hotkeys (80) ** DISABLED toggle hotkeys *//* #define MRxvt_saveconfig (81) ** DISABLED save configuration */#define MRxvt_bgfade (82) /* set bgfade degree (Obsolete) */#define MRxvt_termenv (83) /* set TERMENV type *//* #define MRxvt_closewin (84) ** DISABLED Close all tabs and exit *//* #define MRxvt_switchtab (85) ** DISABLED Switch to tab N *//* Words starting with `Color_' are colours. Others are counts *//*** The following comment is mostly obsolete since pixcolor_set was** expanded:** We're currently upto 30 colours. Only 2 more available. The** PixColor and rendition colour usage should probably be decoupled** on the unnecessary items, e.g. Color_pointer, but won't bother** until we need to. Also, be aware of usage in pixcolor_set*/enum colour_list { Color_fg = 0, Color_bg, minCOLOR, /* 2 */ Color_Black = minCOLOR, Color_Red3, Color_Green3, Color_Yellow3, Color_Blue3, Color_Magenta3, Color_Cyan3, maxCOLOR, /* minCOLOR + 7 */#ifndef NO_BRIGHTCOLOR Color_AntiqueWhite = maxCOLOR, minBrightCOLOR, /* maxCOLOR + 1 */ Color_Grey25 = minBrightCOLOR, Color_Red, Color_Green, Color_Yellow, Color_Blue, Color_Magenta, Color_Cyan, maxBrightCOLOR, /* minBrightCOLOR + 7 */ Color_White = maxBrightCOLOR,#else Color_White = maxCOLOR,#endif#ifdef TTY_256COLOR min256COLOR = Color_White + 1, max256COLOR = minCOLOR + 255,#endif#ifndef NO_CURSORCOLOR Color_cursor, Color_cursor2,#endif Color_pointer, Color_border, Color_ufbg,#ifndef NO_BOLD_UNDERLINE_REVERSE Color_BD, Color_UL, Color_RV,#endif#ifdef OPTION_HC Color_HC,#endif#ifdef KEEP_SCROLLCOLOR Color_scroll, Color_trough,#endif#if defined(BACKGROUND_IMAGE) || defined(TRANSPARENT)# ifdef TINTING_SUPPORT Color_tint,# endif#endif /* BACKGROUND_IMAGE || TRANSPARENT */ NRS_COLORS, /* */#ifdef KEEP_SCROLLCOLOR Color_topShadow = NRS_COLORS, Color_bottomShadow, TOTAL_COLORS /* upto 31 */#else TOTAL_COLORS = NRS_COLORS /* */#endif};#ifdef TTY_256COLOR# define Color_Bits 9# define NPIXCLR_SETS 9 /* (256 + 14) bits / 32 bits */#else# define Color_Bits 5# define NPIXCLR_SETS 1 /* (16 + 14) bits / 32 bits */#endif#define NPIXCLR_BITS 32#define DEFAULT_RSTYLE (RS_None | (Color_fg) | (Color_bg<<Color_Bits))/* * Resource list */enum { Rs_display_name = 0, Rs_debug_masks, Rs_debug_level, Rs_container_window, Rs_term_name, Rs_iconName, Rs_geometry, Rs_color, _Rs_color = Rs_color + TOTAL_COLORS, /*+ 2 * MAX_PAGES - 1,*/ Rs_font, _Rs_font = Rs_font + MAX_NFONTS - 1,#ifdef MULTICHAR_SET Rs_mfont, _Rs_mfont = Rs_mfont + MAX_NFONTS - 1, Rs_multichar_encoding,#endif Rs_name, Rs_title, Rs_maxTabWidth, Rs_minVisibleTabs,#if defined (BACKGROUND_IMAGE) || defined(HAVE_MENUBAR) Rs_path,#endif#ifdef BACKGROUND_IMAGE Rs_tabbarPixmap, /* tabbar background pixmap */ Rs_appIcon, /* use pixmap as application icon */#endif#ifdef HAVE_MENUBAR Rs_menu,# ifdef BACKGROUND_IMAGE Rs_menubarPixmap,# endif#endif#ifndef NO_BOLDFONT Rs_boldFont, _Rs_boldFont = Rs_boldFont + MAX_NFONTS - 1,#endif#ifdef GREEK_SUPPORT Rs_greek_keyboard, Rs_greektoggle_key,#endif#ifdef XFT_SUPPORT Rs_xftfont, /* Font name, family */# ifdef MULTICHAR_SET Rs_xftmfont,/* Multichar font name, family */ Rs_xftmsz, /* Multichar font size */# endif Rs_xftwt, /* Font weight */ Rs_xftBwt, /* Bold font weight */ Rs_xftst, /* Font slant */ Rs_xftsz, /* Font size */ Rs_xftwd, /* Font width style */ Rs_xftrgb, /* Font sub-pixel order */ Rs_xftpfn, /* Propotionally spaced Xft font (for tabbar / menubar) */ Rs_xftpsz, /* Size of propotionally spaced Xft font */#endif#ifdef HAVE_SCROLLBARS Rs_scrollBar_align,# ifdef BACKGROUND_IMAGE Rs_scrollbarPixmap,# endif#endif /* HAVE_SCROLLBARS */ Rs_scrollBar_style, Rs_tabfg, /* active tab foreground */ Rs_tabbg, /* active tab background */ Rs_itabfg, /* inactive tab foreground */ Rs_itabbg, /* inactive tab background */ Rs_fade, /* fade percentage */#ifdef TEXT_SHADOW Rs_textShadow, /* text shadow color */ Rs_textShadowMode, /* text shadow color mode */#endif Rs_skipPages, /* Number of pages to skip when jump scrolling */ Rs_refreshLimit, /* Number of chars to tolerate when refreshing */#ifdef TINTING_SUPPORT Rs_shade, /* shade percentage */ Rs_tint, /* tinting color */#endif#ifdef TRANSPARENT Rs_bgRefreshInterval,#endif Rs_focusDelay,#ifndef NO_BELL Rs_bellCommand, Rs_vBellDuration,#endif Rs_monitorCommand, Rs_monitorTimeout, Rs_desktop,#ifndef NO_BACKSPACE_KEY Rs_backspace_key,#endif#ifndef NO_DELETE_KEY Rs_delete_key,#endif Rs_selectstyle,#ifdef PRINTPIPE Rs_print_pipe,#endif#ifdef USE_XIM Rs_preeditType, Rs_inputMethod,#endif Rs_opacity, /* transluscent window opacity degree */ Rs_opacityDegree, /* opacity change degree */#ifndef NO_FRILLS Rs_ext_bwidth, Rs_int_bwidth,#endif Rs_scrollBar_thickness,#ifndef NO_LINESPACE Rs_lineSpace,#endif Rs_cutchars,#ifdef ACS_ASCII Rs_acs_chars,#endif Rs_modifier, Rs_confFile, Rs_answerbackstring, Rs_cursorBlinkInterval, Rs_pointerBlankDelay, Rs_smClientID, Rs_initProfiles, Rs_init_term_num, /* OBSOLETE */ /* * Options for multiple profiles. */#ifdef BACKGROUND_IMAGE Rs_backgroundPixmap,/* terminal background pixmap for each tab */ _Rs_backgroundPixmap = Rs_backgroundPixmap + MAX_PROFILES - 1,#endif Rs_tabtitle, _Rs_tabtitle = MAX_PROFILES - 1 + Rs_tabtitle, Rs_command, _Rs_command = MAX_PROFILES - 1 + Rs_command, Rs_saveLines, _Rs_saveLines = MAX_PROFILES - 1 + Rs_saveLines, Rs_foreground, _Rs_foreground = MAX_PROFILES - 1 + Rs_foreground, Rs_background, _Rs_background = MAX_PROFILES - 1 + Rs_background, Rs_cwd, _Rs_cwd = MAX_PROFILES - 1 + Rs_cwd, Rs_holdExit, _Rs_holdExit = MAX_PROFILES - 1 + Rs_holdExit, Rs_holdExitTxt, _Rs_holdExitTxt = MAX_PROFILES - 1 + Rs_holdExitTxt, Rs_holdExitTtl, _Rs_holdExitTtl = MAX_PROFILES - 1 + Rs_holdExitTtl, Rs_titleFormat, _Rs_titleFormat = MAX_PROFILES - 1 + Rs_titleFormat, Rs_winTitleFormat, _Rs_winTitleFormat = MAX_PROFILES - 1 + Rs_winTitleFormat, NUM_RESOURCES} ;enum { TIMEOUT_INCR = 0, NUM_TIMEOUTS} ;/*** MUST sync with init.c:xa_names*/enum { XA_COMPOUND_TEXT = 0, XA_UTF8_STRING, XA_TEXT, XA_MULTIPLE, XA_TARGETS, XA_TIMESTAMP, XA_VT_SELECTION, XA_INCR, XA_WMDELETEWINDOW, XA_NET_WM_DESKTOP, XA_WIN_WORKSPACE, XA_NET_WM_NAME, XA_NET_WM_ICON_NAME, XA_WM_CLIENT_LEADER, XA_NET_WM_WINDOW_OPACITY,#ifndef NO_FRILLS XA_NET_WM_PID,#endif#ifdef HAVE_X11_SM_SMLIB_H XA_SM_CLIENT_ID,#endif#ifdef USE_XIM XA_WM_LOCALE_NAME,#endif#ifdef TRANSPARENT XA_XROOTPMAPID, XA_XSETROOTID,#endif#ifdef OFFIX_DND /* OffiX Dnd (drag 'n' drop) support */ XA_DNDPROTOCOL, XA_DNDSELECTION,#endif /* OFFIX_DND */ XA_CLIPBOARD, NUM_XA} ;/* * number of graphics points * divisible by 2 (num lines) * divisible by 4 (num rect) */#define NGRX_PTS 1000/* DEC private modes */#define PrivMode_132 (1LU<<0)#define PrivMode_132OK (1LU<<1)#define PrivMode_rVideo (1LU<<2)#define PrivMode_relOrigin (1LU<<3)#define PrivMode_Screen (1LU<<4)#define PrivMode_Autowrap (1LU<<5)#define PrivMode_aplCUR (1LU<<6)#define PrivMode_aplKP (1LU<<7)#define PrivMode_HaveBackSpace (1LU<<8)#define PrivMode_BackSpace (1LU<<9)#define PrivMode_ShiftKeys (1LU<<10)#define PrivMode_VisibleCursor (1LU<<11)#define PrivMode_MouseX10 (1LU<<12)#define PrivMode_MouseX11 (1LU<<13)#define PrivMode_scrollBar (1LU<<14)#define PrivMode_menuBar (1LU<<15)#define PrivMode_TtyOutputInh (1LU<<16)#define PrivMode_Keypress (1LU<<17)#define PrivMode_smoothScroll (1LU<<18)#define PrivMode_vt52 (1LU<<19)/* too annoying to implement X11 highlight tracking *//* #define PrivMode_MouseX11Track (1LU<<18) */#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11)#define PrivMode(test,bit,page) \ if (test) \ r->vts[page]->PrivateModes |= (bit); \ else \ r->vts[page]->PrivateModes &= ~(bit)#ifdef ALLOW_132_MODE# define PrivMode_Default \(PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)#else# define PrivMode_Default \(PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor)/*(PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor)*/#endif#define XSCREEN DefaultScreen(r->Xdisplay)#define XROOT DefaultRootWindow(r->Xdisplay)#ifdef PREFER_24BIT# define XDEPTH (r->Xdepth)# define XCMAP (r->Xcmap)# define XVISUAL (r->h->Xvisual)#else# ifdef DEBUG_DEPTH# define XDEPTH DEBUG_DEPTH# else# define XDEPTH DefaultDepth(r->Xdisplay, XSCREEN)# define XCMAP DefaultColormap(r->Xdisplay, XSCREEN)# define XVISUAL DefaultVisual(r->Xdisplay, XSCREEN)# endif#endif#define IMBUFSIZ 128 /* input modifier buffer sizes */#ifndef BUFSIZ# define BUFSIZ 4096#endif#define KBUFSZ 512 /* size of keyboard mapping buffer *//* ***************************************************************************** * MACRO DEFINES ***************************************************************************** *//* convert pixel dimensions to row/column values. Everything as int32_t */#define Pixel2Width(x) ((int32_t)(x) / (int32_t)r->TermWin.fwidth)#define Pixel2Height(y) ((int32_t)(y) / (int32_t)r->TermWin.fheight)#define Width2Pixel(n) ((int32_t)(n) * (int32_t)r->TermWin.fwidth)#define Height2Pixel(n) ((int32_t)(n) * (int32_t)r->TermWin.fheight)#define Pixel2Col(x) Pixel2Width((int32_t)(x) - (int32_t)r->TermWin.int_bwidth)#define Pixel2Row(y) Pixel2Height((int32_t)(y) - (int32_t)r->TermWin.int_bwidth)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -