📄 pcvt_conf.h
字号:
#if !defined PCVT_META_ESC /* ---------- DEFAULT: OFF ------------ */# define PCVT_META_ESC 0 /* if ON, send the sequence "ESC key" */#elif PCVT_META_ESC != 0 /* for a meta-shifted key; if OFF, */# undef PCVT_META_ESC /* send the normal key code with 0x80 */# define PCVT_META_ESC 1 /* added. */#endif#if !defined PCVT_SW0CNOUTP /* ---------- DEFAULT: OFF ------------ */# define PCVT_SW0CNOUTP 0 /* if ON, on console/kernel output the */#elif PCVT_SW0CNOUTP != 0 /* current screen is switched to screen */# undef PCVT_SW0CNOUTP /* 0 if not already at screen 0. */# define PCVT_SW0CNOUTP 1 /* CAUTION: CURRENTLY THIS CAUSES AN X- */#endif /* SESSION TO CLUTTER VIDEO MEMORY !!!! *//* -------------------------------------------------------------------- *//* -------------------- DRIVER DEBUGGING ------------------------------ *//* -------------------------------------------------------------------- */#if !defined PCVT_SHOWKEYS /* ---------- DEFAULT: OFF ------------ */# define PCVT_SHOWKEYS 0 /* this replaces the system load line */#elif PCVT_SHOWKEYS != 0 /* on the vt 0 in hp mode with a display*/# undef PCVT_SHOWKEYS /* of the most recent keyboard scan- */# define PCVT_SHOWKEYS 1 /* and status codes received from the */#endif /* keyboard controller chip. */ /* this is just for some hardcore */ /* keyboarders .... *//* -------------------------------------------------------------------- *//* -------------------- DRIVER OPTIONS -------------------------------- *//* -------------------------------------------------------------------- *//* it is unlikely that anybody wants to change anything below */#if !defined PCVT_NO_LED_UPDATE /* ---------- DEFAULT: OFF ------------ */# define PCVT_NO_LED_UPDATE 0 /* On some (Notebook?) keyboards it is */#elif PCVT_NO_LED_UPDATE != 0 /* not possible to update the LED's */# undef PCVT_NO_LED_UPDATE /* without hanging the keyboard after- */# define PCVT_NO_LED_UPDATE 1 /* wards. If you experience Problems */#endif /* like this, try to enable this option */#if !defined PCVT_PORTIO_DELAY /* ---------- DEFAULT: ON ------------- */# define PCVT_PORTIO_DELAY 1 /* Defining PCVT_PORTIO_DELAY lets pcvt */#elif PCVT_PORTIO_DELAY != 0 /* use multiple accesses to port 0x84 */# undef PCVT_PORTIO_DELAY /* to produce a delay of 7 us needed for*/# define PCVT_PORTIO_DELAY 1 /* accessing the keyboard controller, */#endif /* otherwise the system delay functions */ /* are used. */#if !defined PCVT_PCBURST /* ---------- DEFAULT: 256 ------------ */# define PCVT_PCBURST 256 /* NETBSD and FreeBSD >= 2.0 only: this */#endif /* is the number of output characters */ /* handled together as a burst in */ /* routine pcstart(), file pcvt_drv.c */#if !defined PCVT_SCANSET /* ---------- DEFAULT: 1 -------------- */# define PCVT_SCANSET 1 /* define the keyboard scancode set you */#endif /* want to use: */ /* 1 - code set 1 (supported) */ /* 2 - code set 2 (supported) */ /* 3 - code set 3 (UNsupported) */#if !defined PCVT_KEYBDID /* ---------- DEFAULT: ON ------------- */# define PCVT_KEYBDID 1 /* check type of keyboard connected. at */#elif PCVT_KEYBDID != 0 /* least HP-keyboards send an id other */# undef PCVT_KEYBDID /* than the industry standard, so it */# define PCVT_KEYBDID 1 /* CAN lead to problems. if you have */#endif /* problems with this, TELL ME PLEASE ! */#if !defined PCVT_SIGWINCH /* ---------- DEFAULT: ON ------------- */# define PCVT_SIGWINCH 1 /* this sends a SIGWINCH signal in case */#elif PCVT_SIGWINCH != 0 /* the window size is changed. to try, */# undef PCVT_SIGWINCH /* issue "scons -s<size>" while in elvis*/# define PCVT_SIGWINCH 1 /* and you'll see the effect. */#endif /* i'm not sure, whether this feature */ /* has to be in the driver or has to */ /* move as an ioctl call to scon .... */#if !defined PCVT_NULLCHARS /* ---------- DEFAULT: ON ------------- */# define PCVT_NULLCHARS 1 /* allow the keyboard to send null */#elif PCVT_NULLCHARS != 0 /* (0x00) characters to the calling */# undef PCVT_NULLCHARS /* program. this has the side effect */# define PCVT_NULLCHARS 1 /* that every undefined key also sends */#endif /* out nulls. take it as experimental */ /* code, this behaviour will change in */ /* a future release */#if !defined PCVT_BACKUP_FONTS /* ---------- DEFAULT: ON ------------- */# define PCVT_BACKUP_FONTS 1 /* fonts are always kept memory-backed; */#elif PCVT_BACKUP_FONTS != 0 /* otherwise copies are only made if */# undef PCVT_BACKUP_FONTS /* they are needed. */# define PCVT_BACKUP_FONTS 1#endif#ifndef PCVT_UPDATEFAST /* this is the rate at which the cursor */# define PCVT_UPDATEFAST (hz/10) /* gets updated with it's new position */#endif /* see: async_update() in pcvt_sup.c */#ifndef PCVT_UPDATESLOW /* this is the rate at which the cursor */# define PCVT_UPDATESLOW 3 /* position display and the system load */#endif /* (or the keyboard scancode display) */ /* is updated. the relation is: */ /* PCVT_UPDATEFAST/PCVT_UPDATESLOW */#ifndef PCVT_SYSBEEPF /* timer chip value to be used for the */# define PCVT_SYSBEEPF 1193182 /* sysbeep frequency value. */#endif /* this should really go somewhere else,*/ /* e.g. in isa.h; but it used to be in */ /* each driver, sometimes even with */ /* different values (:-) */#if !defined PCVT_SETCOLOR /* ---------- DEFAULT: OFF ------------ */# define PCVT_SETCOLOR 0 /* enable making colors settable. this */#elif PCVT_SETCOLOR != 0 /* introduces a new escape sequence */# undef PCVT_SETCOLOR /* <ESC d> which is (i think) not */# define PCVT_SETCOLOR 1 /* standardized, so this is an option */#endif /* (Birthday present for Bruce ! :-) */#if !defined PCVT_132GENERIC /* ---------- DEFAULT: OFF ------------ */# define PCVT_132GENERIC 0 /* if you #define this, you enable */#elif PCVT_132GENERIC != 0 /* EXPERIMENTAL (!!!!!!!!!!!!) */# undef PCVT_132GENERIC /* USE-AT-YOUR-OWN-RISK, */# define PCVT_132GENERIC 1 /* MAY-DAMAGE-YOUR-MONITOR */#endif /* code to switch generic VGA boards/ */ /* chipsets to 132 column mode. Since */ /* i could not verify this option, i */ /* prefer to NOT generally enable this, */ /* if you want to play, look at the */ /* hints and the code in pcvt_sup.c and */ /* get in contact with Joerg Wunsch, who*/ /* submitted this code. Be careful !!! */#if !defined PCVT_PALFLICKER /* ---------- DEFAULT: OFF ------------ */# define PCVT_PALFLICKER 0 /* this option turns off the screen */#elif PCVT_PALFLICKER != 0 /* during accesses to the VGA DAC */# undef PCVT_PALFLICKER /* registers. why: on one fo the tested */# define PCVT_PALFLICKER 1 /* pc's (WD-chipset), accesses to the */#endif /* vga dac registers caused distortions */ /* on the screen. Ferraro says, one has */ /* to blank the screen. the method used */ /* to accomplish this stopped the noise */ /* but introduced another flicker, so */ /* this is for you to experiment ..... */ /* - see also PCVT_WAITRETRACE below -- */#if !defined PCVT_WAITRETRACE /* ---------- DEFAULT: OFF ------------ */# define PCVT_WAITRETRACE 0 /* this option waits for being in a */#elif PCVT_WAITRETRACE != 0 /* retrace window prior to accessing */# undef PCVT_WAITRETRACE /* the VGA DAC registers. */# define PCVT_WAITRETRACE 1 /* this is the other method Ferraro */#endif /* mentioned in his book. this option */ /* did eleminate the flicker noticably */ /* but not completely. besides that, it */ /* is implemented as a busy-wait loop */ /* which is a no-no-no in environments */ /* like this - VERY BAD PRACTICE !!!!! */ /* the other method implementing it is */ /* using the vertical retrace irq, but */ /* we get short of irq-lines on pc's. */ /* this is for you to experiment ..... */ /* -- see also PCVT_PALFLICKER above -- */#if !defined PCVT_INHIBIT_NUMLOCK /* --------- DEFAULT: OFF ----------- */# define PCVT_INHIBIT_NUMLOCK 0 /* A notebook hack: since i am getting */#elif PCVT_INHIBIT_NUMLOCK != 0 /* tired of the numlock LED always */# undef PCVT_INHIBIT_NUMLOCK /* being turned on - which causes the */# define PCVT_INHIBIT_NUMLOCK 1 /* right half of my keyboard being */#endif /* interpreted as a numeric keypad and */ /* thus going unusable - i want to */ /* have a better control over it. If */ /* this option is enabled, only the */ /* numlock key itself and the related */ /* ioctls will modify the numlock */ /* LED. (The ioctl is needed for the */ /* ServerNumLock feature of XFree86.) */ /* The default state is changed to */ /* numlock off, and the escape */ /* sequences to switch between numeric */ /* and application mode keypad are */ /* silently ignored. */#if !defined PCVT_NOFASTSCROLL /* ---------- DEFAULT: OFF ------------ */# define PCVT_NOFASTSCROLL 0 /* If off, enables code for fast scroll.*/#elif PCVT_NOFASTSCROLL != 0 /* This is done by changing the CRTC */# undef PCVT_NOFASTSCROLL /* screen start address for scrolling */# define PCVT_NOFASTSCROLL 1 /* and using 2 times the screen size as */#endif /* buffer. The fastscroll code works */ /* ONLY for VGA/EGA/CGA because it uses */ /* the crtc for hardware scrolling and */ /* therefore needs more than the one */ /* page video memory MDA and most */ /* Hercules boards support. */ /* If you run pcvt ONLY on MDA/Hercules */ /* you should disable fastscroll to save*/ /* the time to decide which board you */ /* are running pcvt on at runtime. */ /* [see roll_up() and roll_down().] */#if !defined PCVT_SLOW_INTERRUPT/* ---------- DEFAULT: OFF ------------ */# define PCVT_SLOW_INTERRUPT 0 /* If off, protecting critical regions */#elif PCVT_SLOW_INTERRUPT != 0 /* in the keyboard fifo code is done by */# undef PCVT_SLOW_INTERRUPT /* disabling the processor irq's, if on */# define PCVT_SLOW_INTERRUPT 1 /* this is done by spl()/splx() calls. */#endif#ifdef XSERVER#if !defined PCVT_USL_VT_COMPAT /* ---------- DEFAULT: ON ------------- */# define PCVT_USL_VT_COMPAT 1 /* this option enables multiple virtual */#elif PCVT_USL_VT_COMPAT != 0 /* screen support for XFree86. If set */# undef PCVT_USL_VT_COMPAT /* to off, support for a "classic" */# define PCVT_USL_VT_COMPAT 1 /* single screen only X server is */#endif /* compiled in. If enabled, most of the */ /* ioctl's from SYSV/USL are supported */ /* to run multiple X servers and/or */ /* character terminal sessions. */#endif /* XSERVER *//*---------------------------------------------------------------------------* * Kernel messages attribute definitions * These define the foreground and background attributes used to * emphasize messages from the kernel on color and mono displays. *---------------------------------------------------------------------------*/#if !defined COLOR_KERNEL_FG /* color displays */#define COLOR_KERNEL_FG FG_LIGHTGREY /* kernel messages, foreground */#endif#if !defined COLOR_KERNEL_BG#define COLOR_KERNEL_BG BG_RED /* kernel messages, background */#endif#if !defined MONO_KERNEL_FG /* monochrome displays */#define MONO_KERNEL_FG FG_UNDERLINE /* kernel messages, foreground */#endif#if !defined MONO_KERNEL_BG#define MONO_KERNEL_BG BG_BLACK /* kernel messages, background */#endif/*---------------------------------- E O F ----------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -