Console mouse support (简体中文)

From ArchWiki
Revision as of 03:33, 1 January 2010 by Gen2ly (Talk | contribs) (moved 在 console 中使用鼠标 (简体中文) to Console Mouse Support (简体中文): International naming standardization: Title in English (Lingua): User:Pointone/i18n)

Jump to: navigation, search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end


为了在控制台下使用鼠标,您得安装gpm软件包。如果您没有安装它,用如下方式获取它:

# pacman -S gpm

为了使用它,您需要在/etc/rc.conf文件中加载gpm,把gpm添加至DAEMONS行里面。以下是一个例子,包括gpm:

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond gpm)

gpm软件包启动时需要一些参数。这些参数可以添加到 /etc/conf.d/gpm文件里。下面是文件里面的例子:

#
# Parameters to be passed to gpm
#
GPM_ARGS="-m /dev/psaux -t imps2"

-m 参数表示预定义要使用的鼠标。-t 参数表示预处理您使用的鼠标类型(例子中的是ps2 鼠标)。要得到能被-t参数接受的类型的列表,用-t help运行gpm。

# gpm -m /dev/psaux -t help

更多信息,请参考 man gpm