identifying keyboard type


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users identifying keyboard type
# 1  
Old 10-09-2006
identifying keyboard type

hi
I am using a GUI language (based on C/C++) for my application. Now i need to identify the "Again" key in the Sun keyboard. I tried to do this by getting the ascii value (4155)of it . it was fine. but it is clashing with F12, whose ascii is 4155 in normal keyboards. Due to this either one of them is working.
Is there any way of identifyng the keyboard type.(Sun/normal) or distinguishing between the two keys..

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem getting vertical bar with British keyboard layout on US (physical) keyboard

Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it. I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
Discussion started by: crunchgargoyle
7 Replies

2. Solaris

Sun Ultra 5 Cahnge Keyboard Type

Hi, I have a Sun Ultra 5 workstation with Sun Keyboard Type 6. My problem is the workstation recognize the keyboard as Keyboard Type 4 instead of type 6. How can I change the workstation to recognize sun keyboard type 6. Any idea? # kbd -t Type 4 Sun keyboard :wall::wall::wall: (2 Replies)
Discussion started by: fairus
2 Replies

3. Solaris

SUN Type 7 Keyboard, Thinklogical KVM Extender and Mouse - Any ideas?

Hello all rather new to diagnosing hardware issues on SUN platforms (still new to Sol 10 also). Sorry if this is not a great question. I have searched the forums and have not found an answer to my specific issue. Ok, I have a SUN V215 hooked up to a Thinklogical KVM extender. There are 2... (3 Replies)
Discussion started by: caddyjoe77
3 Replies

4. Programming

array type has incomplete element type

Dear colleagues, One of my friend have a problem with c code. While compiling a c program it displays a message like "array type has incomplete element type". Any body can provide a solution for it. Jaganadh.G (1 Reply)
Discussion started by: jaganadh
1 Replies

5. Programming

keyboard type

hi I am using a GUI language (based on C/C++) for my application. Now i need to identify the "Again" key in the Sun keyboard. I tried to do this by getting the ascii value (4155)of it . it was fine. but it is clashing with F12, whose ascii is 4155 in normal keyboards. Due to this either one of... (0 Replies)
Discussion started by: nimishm
0 Replies

6. UNIX for Advanced & Expert Users

How can I map Unix keyboard for PC keyboard

A Solaris AXI 440 machine with Solaris 8 version. I have PC users who use an emulation to login to the Solaris server. How can I change the keyboard mapping of the Sun keyboard to fit to the PC keyboard ? Any comment will be appreciated. Thanks (1 Reply)
Discussion started by: simhab
1 Replies
Login or Register to Ask a Question
usbkbm(7M)																usbkbm(7M)

NAME
usbkbm - keyboard STREAMS module for Sun USB Keyboard SYNOPSIS
open("/dev/kbd", O_RDWR) The usbkbm STREAMS module processes byte streams generated by a keyboard attached to a USB port. USB keyboard is a member of Human Interface Device (HID) Class, and usbkbm only supports the keyboard protocol defined in the specification. Definitions for altering key- board translation and reading events from the keyboard are in <sys/kbio.h> and <sys/kbd.h>. The usbkbm STREAMS module adheres to the interfaces exported by kb(7M). Refer to the DESCRIPTION section of kb(7M) for a discussion of the keyboard translation modes and the IOCTL section for the supported ioctl(2) requests. USB Keyboard usbkbm returns different values for the following ioctls than kb(7M): KIOCTYPE This ioctl() returns a new keyboard type defined for the USB keyboard. All types are listed below: KB_SUN3 Sun Type 3 keyboard KB_SUN4 Sun Type 4 keyboard KB_ASCII ASCII terminal masquerading as keyboard KB_PC Type 101 PC keyboard KB_USB USB keyboard The USB keyboard type is KB_USB; usbkbm will return KB_USB in response to the KIOCTYPE ioctl. KIOCLAYOUT The argument is a pointer to an int. The layout code specified by the bCountryCode value returned in the HID descriptor is returned in the int pointed to by the argument. The countrycodes are defined in 6.2.1 of the HID 1.0 specifications. KIOCCMD KBD_CMD_CLICK/KBD_CMD_NOCLICK The kb(7M) indicates that inappropriate commands for particular keyboards are ignored. Because clicking is not supported on the USB keyboard, usbkbm ignores this command KBD_CMD_SETLED Set keyboard LEDs. Same as kb(7M). KBD_CMD_GETLAYOUT The country codes defined in 6.2.1 of the HID 1.0 specification are returned. KBD_CMD_BELL/KBD_CMD_NOBELL This command is supported although the USB keyboard does not have a buzzer. The request for the bell is rerouted. KBD_CMD_RESET There is no notion of resetting the keyboard as there is for the type4 keyboard. usbkbm ignores this command and does not return an error. FILES
/kernel/strmod/usbkbm 32-bit ELF kernel STREAMS module ( platform only) /kernel/strmod/sparcv9/usbkbm SPARC 64-bit ELF kernel STREAMS module See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |PCI-based systems | +-----------------------------+-----------------------------+ |Availability |SUNWusb | +-----------------------------+-----------------------------+ dumpkeys(1), kbd(1), loadkeys(1), ioctl(2), keytables(4), attributes(5), hid(7D), usba(7D), virtualkm(7D), kb(7M) STREAMS Programming Guide System Administration Guide: Basic Administration http://www.sun.com/io DIAGN0STICS None 27 June 2005 usbkbm(7M)