01-10-2001
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I had been using a modem installed on a Digi accelerator port to dial in to an SCO open server r5 server. On monday it quit working and I realy don't know how it was installed and configured. I have tested the modem on a PC and it works. The port the modem is connected to is ttyB06 and I have... (1 Reply)
Discussion started by: kikkin
1 Replies
2. Programming
Hi every body, i have the following problem :
I need to read incoming data from a serial port, this port has connected a weigth device to it that send the weigth and i need to read this data to my aplication, i had this problem in Window Enviroment and i resolve with a "C" routine, but in Unix... (1 Reply)
Discussion started by: jricardorm
1 Replies
3. UNIX for Dummies Questions & Answers
Please could some one tell me how to open a port in unix or to check if a port is open. (2 Replies)
Discussion started by: bountyhunter
2 Replies
4. Cybersecurity
How to access to COM1 Port COM2 ports in UNIX
is there any functions (1 Reply)
Discussion started by: rajashekaran
1 Replies
5. UNIX for Dummies Questions & Answers
Working in SunOS 2.6 without the GUI, I am trying to find out what command line syntax I can use to reset the serial port. I have also been curious how to reset peripheral devices without having to reboot the machine. If anyone has a cheat sheet for that, that would be great! (1 Reply)
Discussion started by: mcherry
1 Replies
6. IP Networking
hi there i'm a new bie
just got few simple questions to ask.
I got expert in windows configuration but totally new to unix environment . I want to make sure a com port (com1) is working, so I connect a 9-pin cable (CB9) for both PC using Unix environment (unix to unix).
The question are (1)... (1 Reply)
Discussion started by: typsam
1 Replies
7. Shell Programming and Scripting
Is it possible to write a perl program to controll the serial port?
e.g. What iam trying to do, for a challenge is create a box with two lights. red and green, connect to a serial port and have a perl program to give me the options to turn on the red light or green light.
Is this possilbe, can... (1 Reply)
Discussion started by: perleo
1 Replies
8. Programming
Hi, I'm trying to fix up some serial code that was given to me by a coworker no longer on the project. Problem is, when the program is running and reading the port, I can take away the port by doing a cu command in another terminal window. When I release the cu, the program crashes, I think... (1 Reply)
Discussion started by: Oak
1 Replies
9. HP-UX
Hi,
This is my first post here.
I would like to ask: how to connect the barcode scanner to the serial port?
What are the names in the system (in / dev) and serialport1 serialport0?
Please help with this.
Regards. (2 Replies)
Discussion started by: ftwojtek
2 Replies
10. OS X (Apple)
Hello everyone, this is my first post and I am by no means a unix expert, so I hope I explain my issue well.
I'm on a mac (mac mini), 10.7.
My question is about serial port names. I have an arduino microcontroller plugged in via usb, and every time the computer is shut down it gives the... (0 Replies)
Discussion started by: superliminal
0 Replies
LEARN ABOUT SUSE
glutdeviceget
glutDeviceGet(3GLUT) GLUT glutDeviceGet(3GLUT)
NAME
glutDeviceGet - retrieves GLUT device information represented by integers.
SYNTAX
int glutDeviceGet(GLenum info);
ARGUMENTS
info Name of device information to retrieve.
GLUT_HAS_KEYBOARD
Non-zero if a keyboard is available; zero if not available. For most GLUT implementations, a keyboard can be assumed.
GLUT_HAS_MOUSE
Non-zero if a mouse is available; zero if not available. For most GLUT implementations, a keyboard can be assumed.
GLUT_HAS_SPACEBALL
Non-zero if a Spaceball is available; zero if not available.
GLUT_HAS_DIAL_AND_BUTTON_BOX
Non-zero if a dial & button box is available; zero if not available.
GLUT_HAS_TABLET
Non-zero if a tablet is available; zero if not available.
GLUT_NUM_MOUSE_BUTTONS
Number of buttons supported by the mouse. If no mouse is supported, zero is returned.
GLUT_NUM_SPACEBALL_BUTTONS
Number of buttons supported by the Spaceball. If no Spaceball is supported, zero is returned.
GLUT_NUM_BUTTON_BOX_BUTTONS
Number of buttons supported by the dial & button box device. If no dials & button box device is supported, zero is returned.
GLUT_NUM_DIALS
Number of dials supported by the dial & button box device. If no dials & button box device is supported, zero is returned.
GLUT_NUM_TABLET_BUTTONS
Number of buttons supported by the tablet. If no tablet is supported, zero is returned.
GLUT_DEVICE_IGNORE_KEY_REPEAT
Returns true if the current window's auto repeated keys are ignored. This state is controlled by glutIgnoreKeyRepeat.
GLUT_DEVICE_KEY_REPEAT
The window system's global key repeat state. Returns either GLUT_KEY_REPEAT_OFF, GLUT_KEY_REPEAT_ON, or GLUT_KEY_REPEAT_DEFAULT.
This will not necessarily return the value last passed to glutSetKeyRepeat.
GLUT_JOYSTICK_POLL_RATE
Returns the current window's joystick poll rate as set by glutJoystickFunc. If no joystick is supported, the poll rate will always
be zero. The joystick poll rate also returns zero if the poll rate last specified to glutJoystickFunc is negative or a NULL call-
back was registered.
GLUT_HAS_JOYSTICK
Non-zero if a joystick is available; zero if not available.
GLUT_JOYSTICK_BUTTONS
Number of buttons supported by the joystick. If no joystick is supported, zero is returned.
GLUT_JOYSTICK_AXES
Number of axes supported by the joystick. If no joystick is supposrted, zero is returned.
DESCRIPTION
glutDeviceGet retrieves GLUT device information represented by integers. The info parameter determines what type of device information to
return. Requesting device information for an invalid GLUT device information name returns negative one.
X IMPLEMENTATION NOTES
The current implementation uses to X Input extension to regonize SGI's Spaceball, tablet, and dial and button box devices.
WIN32 IMPLEMENTATION NOTES
The GLUT_DEVICE_KEY_REPEAT alwasy returns GLUT_KEY_REPEAT_ON.
SEE ALSO
glutGet, glutKeyboardFunc, glutMouseFunc, glutSpaceballMotion, glutTabletMotionFunc, glutTabletButtonFunc, glutDialsFunc, glutButtonBox-
Func, glutIgnoreKeyRepeat, glutSetKeyRepeat, glutJoystickFunc
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT
3.7 glutDeviceGet(3GLUT)