免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1445 | 回复: 0
打印 上一主题 下一主题

在linux终端中使用 鼠标 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-06 20:18 |只看该作者 |倒序浏览

使用 gpm
相关文档:
    http://en.opensuse.org/GPM
GPM
          From openSUSE
          

This article should be included in the Support Database!
This article should be polished to adhere to the
Support Database (SDB) standards
, and then moved to the
SDB
.
For more information see the
Wiki Team
.
The gpm is mouse server in Linux.
What it does?
It does the same as any mouse driver and more. It will read
mouse events, moves and clicks, and give that information to
applications. For instance you can copy and paste text from anywhere on
the screen to command line by highlighting the text and pressing middle
button. Useful if you want to skip typing of very long file names like
openSUSE iso images, for instance.
It has many drivers included, so it will work with almost any mouse on the market.
Note 1: gpm can be started only by root user.
Reason: It is system service for all users, and as any other system resource only root has right to start or stop it.
Note 2: gpm needs parameters. it will not work without.
Reason: It can control more than 1 mouse, and you have to tell which of them you want to use.
The most important parameter is
gpm -k
that will stop running mouse server. Don't laugh, before you start
car, you should know where is the brake.
When you miss some parameter and you can't see the mouse cursor on the
screen, than you have to stop gpm, edit command line, and start it
again.
To see list of mouse types that are supported with -t parameter
gpm -t help
Short help list
gpm -h
More about other parameters you can find in the gpm
manual pages
. Open
console
and type:
man gpm
Example 1: Starting explorer ps2 mouse connected to /dev/input/mice
gpm -m /dev/input/mice -t exps2
Example 2: Adjusting acceleration
gpm -m /dev/input/mice -t exps2 -d -a 3
Retrieved from "
http://en.opensuse.org/GPM
"
         
Categories
:
Text Mode
|
Pages for SDB


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/47395/showart_1816110.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP