ps2.7 (2010 09)

p
ps2(7) ps2(7)
if (read(fildes, &buf[0], 1) != 1){
perror("Read of report byte 1 failed");
return 1;
}
if (read(fildes, &buf[1], 1) != 1){
perror("Read of report byte 2 failed");
return 1;
}
if (read(fildes, &buf[3], 1) != 1){
perror("Read of report byte 3 failed");
return 1;
}
printf("mouse: 0x%02x, %d %d\n", buf[0], buf[1], buf[2]);
}
AUTHOR
ps2 was developed by the Hewlett-Packard Company.
PS/2 and Personal System/2 are registered trademarks of International Business Machines, Incorporated,
in the U.S. and other countries.
FILES
/usr/include/sys/ps2io.h
/dev/ps2_[0-15]
/dev/ps2_*.[0-15]
/dev/ps2mouse
/dev/ps2kbd
SEE ALSO
close(2), errno(2), fcntl(2), ioctl(2), open(2), read(2), select(2), signal(5), termio(7).
SoftPC User’s Guide
SoftPC Installation Guide
Sun System Administrators Guide for the HP700/RX
8 Hewlett-Packard Company 8 HP-UX 11i Version 3: September 2010