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

📄 pcvt_conf.h

📁 freebsd v4.4内核源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. * * Copyright (c) 1992, 1994 Brian Dunford-Shore. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by *	Hellmuth Michaelis, Brian Dunford-Shore and Joerg Wunsch. * 4. The name authors may not be used to endorse or promote products *    derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * * @(#)pcvt_conf.h, 3.20, Last Edit-Date: [Sun Apr  2 18:57:45 1995] * *//*--------------------------------------------------------------------------- * *	pcvt_conf.h	VT220 driver global configuration file *	------------------------------------------------------ *	-hm	introduced pcvt_conf.h *	-hm	re-integrated selfconfiguration for NetBSD from Onno *	-hm	patch from Onno for NetBSD-current *	-hm	removed PCVT_FAKE_SYSCONS10 * *---------------------------------------------------------------------------*//*--------------------------------------------------------------------------- * * from: Onno van der Linden    c/o   frank@fwi.uva.nl * * Here's an idea how to automatically detect the version of NetBSD pcvt is * being compiled on: * * NetBSD 0.8 : NetBSD0_8 defined in <sys/param.h> * NetBSD 0.9 : NetBSD0_9 defined in <sys/param.h> * NetBSD 1.0 : NetBSD1_0 defined as 1 in <sys/param.h> * NetBSD 1.0A: NetBSD1_0 defined as 2 in <sys/param.h> * * The NetBSDx_y defines are mutual exclusive. * * This leads to something like this in pcvt_hdr.h (#elif is possible too): * *---------------------------------------------------------------------------*/#ifdef NetBSD0_8#define PCVT_NETBSD 8#endif#ifdef NetBSD0_9#define PCVT_NETBSD 9#endif#ifdef NetBSD1_0#if NetBSD1_0 > 1#define PCVT_NETBSD 199#else#define PCVT_NETBSD 100#endif#endif/*--------------------------------------------------------------------------- * Note that each of the options below should rather be overriden by the * kernel config file instead of this .h file - this allows for different * definitions in different kernels compiled at the same machine * * The convention is as follows: * *	options "PCVT_FOO=1"  - enables the option * 	options "PCVT_FOO"    - is a synonym for the above *	options "PCVT_FOO=0"  - disables the option * * omitting an option defaults to what is shown below * * exceptions from this rule are i.e.: * *	options "PCVT_NSCREENS=x" *	options "PCVT_SCANSET=x" *	options "PCVT_UPDATEFAST=x" *	options "PCVT_UPDATESLOW=x" *	options "PCVT_SYSBEEPF=x" * * which are always numeric! *---------------------------------------------------------------------------*//* -------------------------------------------------------------------- *//* -------------------- OPERATING SYSTEM ------------------------------ *//* -------------------------------------------------------------------- *//* *  one of the following options must be set in the kernel config file: * *======================================================================* *			N e t B S D					* *======================================================================* * *	options "PCVT_NETBSD=xxx" enables support for NetBSD * *	select: *		PCVT_NETBSD =   9	for NetBSD 0.9 *		PCVT_NETBSD =  99	for PRE-1.0 NetBSD-current *		PCVT_NETBSD = 100	for NetBSD 1.0 *		PCVT_NETBSD = 199	for PRE-2.0 NetBSD-current * * *======================================================================* *			F r e e B S D					* *======================================================================* * *	options "PCVT_FREEBSD=xxx" enables support for FreeBSD * *	select: *		PCVT_FREEBSD = 102	for 1.0 release (actually 1.0.2) *		PCVT_FREEBSD = 110	for FreeBSD 1.1-Release *		PCVT_FREEBSD = 115	for FreeBSD 1.1.5.1-Release *		PCVT_FREEBSD = 200	for FreeBSD 2.0-Release *		PCVT_FREEBSD = 210	for FreeBSD 2.1-Release * *//* -------------------------------------------------------------------- *//* ---------------- USER PREFERENCE DRIVER OPTIONS -------------------- *//* -------------------------------------------------------------------- *//*----------------------------------------------------------------------*//* NOTE: if FAT_CURSOR is defined, a block cursor is used instead of	*//*       the cursor shape we got from the BIOS, see pcvt_out.c		*//*----------------------------------------------------------------------*/#if !defined PCVT_NSCREENS	/* ---------- DEFAULT: 8 -------------- */# define PCVT_NSCREENS 8	/* this option defines how many virtual	*/#endif				/* screens you want to have in your	*/				/* system. each screen allocates memory,*/				/* so you can't have an unlimited num-	*/				/* ber...; the value is intented to be	*/				/* compile-time overridable by a config	*/				/* options "PCVT_NSCREENS=x" line	*/#if !defined PCVT_VT220KEYB	/* ---------- DEFAULT: OFF ------------ */# define PCVT_VT220KEYB 0	/* this compiles a more vt220-like	*/#elif PCVT_VT220KEYB != 0	/* keyboardlayout as described in the	*/# undef PCVT_VT220KEYB		/* file Keyboard.VT220.			*/# define PCVT_VT220KEYB 1	/* if undefined, a more HP-like         */#endif				/* keyboardlayout is compiled		*/				/* try to find out what YOU like !	*/#if !defined PCVT_SCREENSAVER	/* ---------- DEFAULT: ON ------------- */# define PCVT_SCREENSAVER 1	/* enable screen saver feature - this	*/#elif PCVT_SCREENSAVER != 0	/* just blanks the display screen.	*/# undef PCVT_SCREENSAVER	/* see PCVT_PRETTYSCRNS below ...	*/# define PCVT_SCREENSAVER 1#endif#if !defined PCVT_PRETTYSCRNS	/* ---------- DEFAULT: OFF ------------ */# define PCVT_PRETTYSCRNS 0	/* for the cost of some microseconds of	*/#elif PCVT_PRETTYSCRNS != 0	/* cpu time this adds a more "pretty"	*/# undef PCVT_PRETTYSCRNS	/* version to the screensaver, an "*"	*/# define PCVT_PRETTYSCRNS 1	/* in random locations of the display.	*/#endif				/* NOTE: this should not be defined if	*/				/* you have an energy-saving monitor 	*/				/* which turns off the display if its	*/				/* black !!!!!!				*/#if !defined PCVT_CTRL_ALT_DEL	/* ---------- DEFAULT: OFF ------------ */# define PCVT_CTRL_ALT_DEL 0	/* this enables the execution of a cpu	*/#elif PCVT_CTRL_ALT_DEL != 0	/* reset by pressing the CTRL, ALT and	*/# undef PCVT_CTRL_ALT_DEL	/* DEL keys simultanously. Because this	*/# define PCVT_CTRL_ALT_DEL 1	/* is a feature of an ancient simple	*/#endif				/* bootstrap loader, it does not belong */				/* into modern operating systems and 	*/				/* was commented out by default ...	*/#if !defined PCVT_KBD_FIFO	/* ---------- DEFAULT: ON ------------- */# define PCVT_KBD_FIFO 1	/* this enables Keyboad fifo so that we */#elif PCVT_KBD_FIFO != 0	/* are not any longer forced to switch  */# undef PCVT_KBD_FIFO		/* off tty interrupts while switching   */# define PCVT_KBD_FIFO 1	/* virtual screens - AND loosing chars  */#endif				/* on the serial lines is gone :-)      */#if PCVT_KBD_FIFO# if !defined PCVT_KBD_FIFO_SZ	/* ---------- DEFAULT: 256 ------------ */#  define PCVT_KBD_FIFO_SZ 256	/* this specifies the size of the above */# elif PCVT_KBD_FIFO_SZ < 16	/* mentioned keyboard buffer. buffer    */#  undef PCVT_KBD_FIFO_SZ	/* overflows are logged via syslog, so  */#  define PCVT_KBD_FIFO_SZ 256	/* have a look at /var/log/messages     */# endif#endif /* PCVT_KBD_FIFO */#if !defined PCVT_USEKBDSEC	/* ---------- DEFAULT: ON ------------- */# define PCVT_USEKBDSEC 1	/* do not set the COMMAND_INHOVR bit	*/#elif PCVT_USEKBDSEC != 0	/* (1 = override security lock inhibit) */# undef PCVT_USEKBDSEC		/* when initializing the keyboard, so   */# define PCVT_USEKBDSEC 1	/* that security locking should work    */#endif				/* now. I guess this has to be done also*/				/* in the boot code to prevent single   */				/* user startup ....                    */#if !defined PCVT_24LINESDEF	/* ---------- DEFAULT: OFF ------------ */# define PCVT_24LINESDEF 0	/* use 24 lines in VT 25 lines mode and	*/#elif PCVT_24LINESDEF != 0	/* HP 28 lines mode by default to have	*/# undef PCVT_24LINESDEF		/* the the better compatibility to the	*/# define PCVT_24LINESDEF 1	/* real VT220 - you can switch between	*/#endif				/* the maximum possible screensizes in	*/				/* those two modes (25 lines) and true	*/				/* compatibility (24 lines) by using	*/				/* the scon utility at runtime		*/#if !defined PCVT_EMU_MOUSE	/* ---------- DEFAULT: OFF ------------ */# define PCVT_EMU_MOUSE 0	/* emulate a mouse systems mouse via	*/#elif PCVT_EMU_MOUSE != 0	/* the keypad; this is experimental	*/# undef PCVT_EMU_MOUSE		/* code intented to be used on note-	*/# define PCVT_EMU_MOUSE 1	/* books in conjunction with XFree86;	*/#endif				/* look at the comments in pcvt_kbd.c	*/				/* if you are interested in testing it.	*/

⌨️ 快捷键说明

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