📄 libvga.config
字号:
# Configuration file for svgalib. Default location is /etc/vga.# Other config file locations: ~/.svgalibrc# where SVGALIB_CONFIG_FILE points# Lines starting with '#' are ignored.# If you have two vga cards with the same pci vendor id, svgalib will try# to use the first one, even if the second one is active. In that case,# use PCIStart to force starting the search for a vga card only at a# specific bus and device numbers. For example, an AGP card is usually on# bus 1, while pci is on bus 0, so to use the AGP card, uncomment:# PCIStart 1 0# Have a deep look at README.config to see what can do here (especially# for mach32).# Mouse type:# mouse Microsoft # Microsoft# mouse MouseSystems # Mouse Systems# mouse MMSeries # Logitech MM Series# mouse Logitech # Logitech protocol (old, newer mice use Microsoft protocol)# mouse Busmouse # Bus mouse# mouse PS2 # PS/2 mouse# mouse MouseMan # Logitech MouseMan# mouse Spaceball # Spacetec Spaceball# mouse IntelliMouse # Microsoft IntelliMouse or Logitech MouseMan+ on serial port# mouse IMPS2 # Microsoft IntelliMouse or Logitech MouseMan+ on PS/2 port# mouse pnp # plug'n'pray# mouse WacomGraphire # Wacom Graphire tablet/mouse# mouse DRMOUSE4DS # Digital Research double-wheeled mouse# mouse none # Nonemouse Microsoft# Mouse/keyboard customisation by 101 (Attila Lendvai). If you have any good# ideas you can reach me at 101@kempelen.inf.bme.hu# mouse_accel_type normal # No acceleration while delta is less then # threshold but delta is multiplied by # mouse_accel_mult if more. Originally done by # Mike Chapman mike@paranoia.commouse_accel_type power # The acceleration factor is a power function # of delta until it reaches m_accel_mult. It # starts from the coordinate # [1, 1 + m_accel_offset] and goes to # [m_accel_thresh, m_accel_mult]. If delta # is bigger then m_accel_thresh it is a plain # constant (m_accel_mult). It is the f(delta) # function with which the delta itself will be # multiplied. m_accel_offset is 1 by default, # so for delta = 1 the accelerated delta will # remain 1 (You don't lose resolution). The # starting point of the f(delta) function # might be moved along the Y axis up/down with # m_accel_offset thus defining the initial # minimum acceleration (for delta = 1). # Basically it's like the normal mode but the # acceleration factor grows as you move your # mouse faster and faster, not just turns in # and out. Threshold is the point from where # the f(delta) function gets linear. # This is the one I use for *uaking... =)# mouse_accel_type off # No comment...mouse_accel_mult 60 # This is the number with which delta will # be multiplied. Basically it's the number # that defines how big the acceleration will # bemouse_accel_thresh 4 # This is the threshold. See description by # powermouse_accel_power 0.8 # This is the second parameter of the power # function used in power mode. Used only by # the power modemouse_accel_offset 30 # This is the offset of the starting point # on the Y axis. With this you can define the # number that will multiply delta = 1 so it's # the initial acceleration.# mouse_accel_maxdelta 600 # This is an upper limit for delta after # the acceleration was applied# mouse_maxdelta 30 # This is an upper limit for the delta # before the acceleration. With this one you # can limit the biggest valid delta that # comes from the mouse.# mouse_force # Force parameters even if they seem strange # By default svgalib prints an error if any # of the numbers are somhow out of the # reasonable limit, (Like a negative mult :) # and uses the default that's in vgamouse.h# Usually /dev/mouse will be a link to the mouse device.# However, esp. with the Spacetec Spaceball you may# want to specify a different device for svgalib to use# mdev /dev/ttyS0 # mouse is at /dev/ttyS0# Some multiprotocol mice will need one of the following:# setRTS # set the RTS wire.# clearRTS # clear the RTS wire.# leaveRTS # leave the RTS wire alone (default) (Wire is usually set)# setDTR # set the DTR wire.# clearDTR # clear the DTR wire.# leaveDTR # leave the DTR wire alone (default) (Wire is usually set)# On mice such as the Microsoft IntelliMouse and Logitech MouseMan+, turning# the wheel rotates the mouse around the X axis. mouse_wheel_steps controls# how many steps make up a full 360-degree turn and thus how much rotation# occurs with each step. The default is 18 steps (20 degrees per step), the# real-world value for the IntelliMouse. Adjust it to match your mouse or to# suit your preferences; a negative number reverses the direction and zero# disables rotation.mouse_wheel_steps 18 # For MS IntelliMouse (default)# mouse_wheel_steps 24 # For Logitech FirstMouse+# mouse_wheel_steps -18 # Reverses direction# mouse_wheel_steps 0 # Disables rotation# mouse_fake_kbd_event sends a fake keyboard event to the program when the# wheel on a Microsoft IntelliMouse, Logitech MouseMan+, or similar wheel# mouse is turned. This can be useful for programs that do not recognize the# Z axis, but only works with some programs that use raw keyboard.# The format is:## mouse_fake_kbd_event upscancode downscancode## The up and down scancodes are the scancodes of the keys to simulate when# the wheel is turned up and down, respectively.## Scancodes can be specified numerically or symbolically; the symbolic names# are determined by the keymap (see below), if no keymap is loaded the default# is the standard US QWERTY keyboard with the following names available:# letters (a-z), numbers (zero-nine), function keys (F1-F12), the keypad# numbers (KP_0-KP_9) and other keys (KP_Multiply, KP_Subtract, KP_Add,# KP_Period, KP_Enter, and KP_Divide), and the following - minus, equal,# Delete, Tab, bracketleft, bracketright, Return, Control, semicolon,# apostrophe, grave, Shift, backslash, comma, period, slash, Shift, Alt, space,# Caps_Lock, Num_Lock, Scroll_Lock, Last_Console, less, Control_backslash,# AltGr, Break, Find, Up, Prior, Left, Right, Select, Down, Next, Insert,# and Remove.## Note that this option has no effect unless the IntelliMouse or IMPS2 mouse# type is used (see above). Also note that the simulated keypresses are# instantaneous, so they cannot be used for functions that require a key to# be held down for a certain length of time.# This example simulates a press of the left bracket ([) when the wheel is# turned up and a press of the right bracket (]) when the wheel is turned# down (good for selecting items in Quake II):# mouse_fake_kbd_event bracketleft bracketright# Keyboard config:# kbd_keymap allows you to use an alternate keyboard layout with programs that# use raw keyboard support by translating scancodes from the desired layout to# their equivalents in the layout expected by the program. This option has no# affect on programs that do not use raw keyboard.## Keymap files to convert between any two arbitrary keyboard layouts can be# generated with the svgakeymap utility, but there are limitations to the# translations that can be performed. Read the file README.keymap in the# svgalib documentation directory for more in-depth information.## You must specify the full path to the keymap file; it is recommended that# keymaps be kept in the same directory as libvga.config, normally /etc/vga.# The keymap specified in the configuration file can be overriden by setting# the environment variable SVGALIB_KEYMAP to point to another keymap file;# this can be useful for setting keymaps on a per-program basis.## This example will use the provided US-Dvorak to US-QWERTY map to allow a# Dvorak keyboard layout to be used with a program that expects a standard US# QWERTY keyboard, for instance Quake:# kbd_keymap /etc/vga/dvorak-us.keymap# There is a potential security risk in allowing users to remap keyboard# scancodes at will; with this option enabled only keymap files owned by# root can be used. Normally you should leave this on, but if you have a# single-user box or you really trust your users you may find it convenient# to run without it and allow users to load arbitrary keymaps.kbd_only_root_keymaps# kbd_fake_mouse_event, as it says, sends a fake mouse event to the program.# The format is: kbd_fake_mouse_event scancode [flag(s)] command [argument]# Scancode is a raw scancode or a descriptive name, the same as with fake# keyboard events (see above). If you use keymap conversion, specify# scancodes for the keyboard layout the program will receive.# Flags: down - trigger event when the key is pressed (default)# up - the opposite# both - trigger in both case, if pressed/released# repeat - repeat events if the key is kept pressed (off by default)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -