a ps2 mouse uses psaux not /dev/cua doesn't it ?
cheerio
Robin


"Madhurjya P. Bora" wrote:

> Hi All!
>
> Suppose in the middle of a Linux session, I have pulled out the mouse (a
> PS/2) cable. How do I detect that the mouse is no longer intact? I tried
> the following C code, but with no result. All the time the status
>     if ((fd = open("/dev/cua1", O_RDWR | O_NDELAY)) < 0) /* /dev/cua1 is
> the mouse port */
>     {

--
_END_
Robin S Chatterjee Yahoo pager ID -Robinchatterjee
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
FAX 1-(815)550-6171
Robin's Poetry Pages
http://www.geocities.com/singerosongs
Robin's Perl Pages
http://www.geocities.com/robinchatterjee



-----------------------------------------------------------------------
LIH is all for free speech.  But it was created for a purpose - to help
people discuss issues about installing and running Linux.  If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.

Reply via email to