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

📄 rxvt.h

📁 Mrxvt是一个小巧
💻 H
📖 第 1 页 / 共 4 页
字号:
/*--------------------------------*-H-*---------------------------------* * File:	rxvt.h *----------------------------------------------------------------------* * * All portions of code are copyright by their respective author/s. * Copyright (c) 1997-2001   Geoff Wing <gcw@pobox.com> * Copyright (c) 2003-2004   Marc Lehmann <pcg@goof.com> * Copyright (c) 2004        Terry Griffin <griffint@pobox.com> * Copyright (c) 2005        Teun Burgers <burgers@ecn.nl> * Copyright (c) 2004-2005   Jingmin Zhou <jimmyzhou@users.sourceforge.net> * Copyright (c) 2005-2006   Gautam Iyer <gi1242@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 __RXVT_H__		/* include once only */#define __RXVT_H__#include "../config.h"#include "feature.h"/* ***************************************************************************** * SYSTEM HACKS ***************************************************************************** *//* Consistent defines - please report on the necessity * @ Unixware: defines (__svr4__) */#if defined (SVR4) && !defined (OS_SVR4)# define OS_SVR4#endif /*#if defined (sun) && !defined (__sun__)# define __sun__#endif*/#ifdef _SCO_DS# define ALL_NUMERIC_PTYS#endif#include <stdio.h>#include <ctype.h>#include <errno.h>#include <signal.h>#ifdef HAVE_SYS_TYPES_H# include <sys/types.h>#endif#ifdef HAVE_UNISTD_H# include <unistd.h>#endif#ifdef HAVE_ASSERT_H# include <assert.h>#endif#ifdef HAVE_STDARG_H# include <stdarg.h>#endif#ifdef HAVE_STDLIB_H# include <stdlib.h>#endif#if defined(HAVE_STRING_H) && !defined(OUR_STRINGS)# include <string.h>#endif#ifdef HAVE_INTTYPES_H# include <inttypes.h>#endif#ifdef HAVE_LIMITS_H# include <limits.h>#endif#ifdef HAVE_WCHAR_H# if defined(OS_OPENBSD) && (OS_OPENBSD_REL < 39)typedef unsigned int    _our_wint_t;typedef struct {	int __count;	union {		_our_wint_t	__wch;		char		__wchb[4]	} __value;} mbstate_t;# endif /* defined(OS_OPENBSD) &&... */# include <wchar.h>#endif#ifdef HAVE_FCNTL_H# include <fcntl.h>#endif#if defined(OS_SOLARIS) && defined(__SVR4)# include <sys/strredir.h>#endif#ifdef OS_SOLARIS# include <sys/byteorder.h>#endif#ifdef OS_SOLARIS# include <sys/int_types.h># undef HAVE_SYS_IOCTL_H#endif#ifdef HAVE_SYS_IOCTL_H# include <sys/ioctl.h>#endif#ifdef HAVE_SYS_SELECT_H# include <sys/select.h>#endif#ifdef HAVE_SYS_SOCKIO_H# include <sys/sockio.h>#endif#if defined(PTYS_ARE_PTMX) && defined(HAVE_SYS_STROPTS_H)# include <sys/stropts.h>	/* for I_PUSH */#endif#if defined(PTYS_ARE_PTMX) && !defined(OS_CYGWIN)# include <sys/resource.h># define _NEW_TTY_CTRL		/* get proper definition in <termios.h> */#endif#ifdef HAVE_TIME_H# include <time.h>#endif#ifdef HAVE_SYS_TIME_H# include <sys/time.h>#endif#ifdef HAVE_SYS_TIMES_H# include <sys/times.h>#endif#ifdef HAVE_SYS_STRREDIR_H# include <sys/strredir.h>#endif#ifdef HAVE_SYS_SOCKET_H# include <sys/socket.h>#endif#ifdef HAVE_SYS_WAIT_H# include <sys/wait.h>#endif#ifdef HAVE_SYS_STAT_H# include <sys/stat.h>#endif#ifdef HAVE_ARPA_INET_H# include <arpa/inet.h>#endif#ifdef HAVE_NETINET_IN_H# include <netinet/in.h>#endif#ifdef HAVE_NET_IF_H# include <net/if.h>#endif#ifdef HAVE_NET_IF_ARP_H# include <net/if_arp.h>#endif#ifdef HAVE_PTY_H# include <pty.h>#endif#ifdef OS_QNX# include <process.h># include <sys/utsname.h># define ut_name	ut_user#endif#ifdef TTY_GID_SUPPORT# include <grp.h>#endif#ifdef HAVE_TERMIOS_H# include <termios.h>typedef struct termios ttymode_t;#else# ifdef HAVE_SGTTY_H#  include <sgtty.h># endiftypedef struct {    struct sgttyb   sg;    struct tchars   tc;    struct ltchars  lc;    int             line;    int             local;} ttymode_t;#endif#ifdef HAVE_LIBX11# include <X11/Xlib.h># include <X11/X.h># include <X11/Xutil.h># include <X11/Xlibint.h># include <X11/cursorfont.h># include <X11/keysym.h># include <X11/keysymdef.h># include <X11/Xmd.h># include <X11/Xatom.h># include <X11/Xresource.h>/* * We really should include openmotif-X.X/Xm/MwmUtil.h, but that will add * openmotif as a dependency. We dont' really need it, except to set WM hints, * thus this ugly hack. */typedef struct {	int	flags;	int	functions;	int	decorations;	int	input_mode;	int	status;} MWMHints;# ifdef HAVE_X11_SM_SMLIB_H#  include <X11/SM/SMlib.h># endif#endif#ifndef HAVE_XPOINTERtypedef char*		XPointer;#endif#ifdef HAVE_LIBXPM# include <X11/xpm.h>#endif#if defined(BACKGROUND_IMAGE) || defined(TRANSPARENT)# ifdef USE_JPEG#  include <jpeglib.h># endif# ifdef USE_PNG#  ifdef OS_OPENBSD#   include <libpng/png.h>#  else#   include <png.h>#  endif	/* OS_OPENBSD */# endif	/* USE_PNG */#endif#ifdef HAVE_LIBXRENDER# include <X11/extensions/Xrender.h>#endif/* Xft.h seems to conflict with png.h. So we must include it** after pnt.h */#ifdef HAVE_LIBX11# ifdef XFT_SUPPORT#  include <X11/Xft/Xft.h># endif# ifdef HAVE_ICONV_H#  include <iconv.h># endif#endif/*** It seems Mac OS X's fontconfig does not have following definitions*/#ifdef XFT_SUPPORT# ifndef FC_WIDTH#  define FC_WIDTH					"width"#  define FC_WIDTH_ULTRACONDENSED	(50)#  define FC_WIDTH_EXTRACONDENSED	(63)#  define FC_WIDTH_CONDENSED		(75)#  define FC_WIDTH_SEMICONDENSED	(87)#  define FC_WIDTH_NORMAL			(100)#  define FC_WIDTH_SEMIEXPANDED		(113)#  define FC_WIDTH_EXPANDED			(125)#  define FC_WIDTH_EXTRAEXPANDED	(150)#  define FC_WIDTH_ULTRAEXPANDED	(200)# endif#endif#ifdef HAVE_XSETLOCALE# define X_LOCALE# include <X11/Xlocale.h>#else# ifdef HAVE_LOCALE_H#  include <locale.h># endif#endif#ifdef HAVE_NL_LANGINFO# include <langinfo.h>#endif#ifdef UTMP_SUPPORT# ifdef UTEMPTER_SUPPORT#  include <utempter.h># endif# ifdef HAVE_UTMP_H#  include <utmp.h>#  ifdef HAVE_SETUTENT#   define RXVT_UTMP_SYSV#  endif# endif# if defined(HAVE_UTMPX_H) && !defined(HAVE_UTMP_H)#  include <utmpx.h>#  define RXVT_UTMP_SYSV# endif# ifdef HAVE_LASTLOG_H#  include <lastlog.h># endif#endif#if defined(UTMP_SUPPORT) || defined(HAVE_GETPWUID)# include <pwd.h>#endif#ifdef UTMP_SUPPORT# if defined(HAVE_UTMPX_H) && !defined(HAVE_UTMP_H)#  define UTMP_FILENAME	UTMPX_FILE# endif# if !defined(UTMP_FILE) && defined(_PATH_UTMP)#  define UTMP_FILE     _PATH_UTMP# endif# if !defined(UTMP_FILENAME) && defined(UTMP_FILE)#  define UTMP_FILENAME UTMP_FILE# endif# define RXVT_UTMP_FILE	UTMP_FILENAME#endif#ifdef WTMP_SUPPORT# if defined(HAVE_WTMPX_H) && !defined(HAVE_WTMP_H)#  define WTMP_FILENAME	WTMPX_FILE# endif# if !defined(WTMP_FILE) && defined(_PATH_WTMP)#  define WTMP_FILE     _PATH_WTMP# endif# if !defined(WTMP_FILENAME) && defined(WTMP_FILE)#  define WTMP_FILENAME WTMP_FILE# endif# define RXVT_WTMP_FILE	WTMP_FILENAME#endif#ifdef LASTLOG_SUPPORT# ifdef OS_SOLARIS#  define LASTLOG_FILE		"/var/adm/lastlog"# endif# ifdef OS_OSF#  define LASTLOG_FILE		"/var/adm/lastlog"# endif# if !defined(LASTLOG_FILE) && defined(_PATH_LASTLOG)#  define LASTLOG_FILE     _PATH_LASTLOG# endif# if !defined(LASTLOG_FILENAME) && defined(LASTLOG_FILE)#  define LASTLOG_FILENAME LASTLOG_FILE# endif# define RXVT_LASTLOG_FILE	LASTLOG_FILENAME#endif#ifdef UTMP_SUPPORT# ifdef RXVT_UTMP_SYSV#  ifndef USER_PROCESS#   define USER_PROCESS		(7)#  endif#  ifndef DEAD_PROCESS#   define DEAD_PROCESS		(8)#  endif# endif#endif#ifdef NO_SECONDARY_SCREEN# define NSCREENS		0#else# define NSCREENS		1#endif/* * Let's try some interesting static program analysis tools. Refer to * http://www.cs.umd.edu/~jfoster/cqual/ * * Tainted defines the type of data that is fetchted from user input, which in * turn is unsafe without checking. Untainted defines the type of data that is * safe. */#ifdef __GNUC__# define $tainted# define $untainted# define TAINTED	$tainted# define UNTAINTED	$untainted#else# define TAINTED# define UNTAINTED#endif/************************************************************ The following are internal includes**********************************************************/#include "encoding.h"#include "rxvtlib.h"#ifdef GREEK_SUPPORT# include "grkelot.h"#endif#ifdef HAVE_MENUBAR# include "menubar.h"#endif#include "command.h"#include "init.h"#ifndef STDIN_FILENO# define STDIN_FILENO	0

⌨️ 快捷键说明

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