how to get MouseMove and MouseClick in bash?

后端 未结 6 775
野的像风
野的像风 2020-11-30 04:19

I\'m wondering how to get the MouseClick and MouseMove events in bash scripting for my own simple OS events.

Please tell me how to get that events.

6条回答
  •  庸人自扰
    2020-11-30 04:51

    the bash doesn't know anything about an mouse or mouse-clicks. By default there is no cursor or something like that.

    You could install the "General Purpose Mouse Server". Look at this: http://www.linuxfromscratch.org/blfs/view/6.3/general/gpm.html for example to use copy and paste inside an console. Maybe you can use the tools to work with your bash - script.

    ...but at all: there is no native mouse support for the bash-shell

提交回复
热议问题