8 More Discussions You Might Find Interesting
Seeking guidance on adding a USB barcode reader (BCR) to an HP c3750 workstation with HP-UX 11.11 which is essentially configuring X windows to accept input from both a primary keyboard and a secondary keyboard that happens to be the BCR.
Historically, I have successfully added a BCR... (2 Replies)
Discussion started by: mnkaltenbach
Ran into this issue today and wanted to share how I fixed it as there is not a lot a lot of info online on this issue.
We upgraded our NetApp controllers to Ontap 9 and reboot all our iSCSI attached LDOMs after. One of the LDOM did not come up cleanly and it would not accept any keyboard inputs... (0 Replies)
Discussion started by: ncherukuri
3. UNIX for Dummies Questions & Answers
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
I'm having problems with my keyboard on Solaris 10, i want to "complete" the command with the tab key and it does not work, also, i want to use the arrows to remember the last commands issued and it always show Google, but when i try to open a browser with Google it does not work, but if... (8 Replies)
Discussion started by: danndp
I've installed Solaris 10 (SunOS 5.10) in a x86 box. I will put this box as a home server to store my files/backups/whatterver shared stuff replacing my old NetBSD machine. But, after installed and correctly configured, when I tried to boot this box without keybord and mouse (USB both),... (4 Replies)
Discussion started by: Timmerman
I am using 18.104.22.168-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard.
It is detected as "/dev/input/event0".
I don't know how to detect key press events and read the keys?
Why can't I read the keys using scanf() like funtions?
... (7 Replies)
Discussion started by: siva4ever
7. Shell Programming and Scripting
I have a Debian machine without any peripherals (no screen, no keyboard, etc.). I'd like to be able to detect and log when someone plugs a USB keyboard. Something like : 2009-07-04 12:21 warning: keyboard pluged!
Is that possible?
I see two ways :
1. Either actively react to the... (4 Replies)
Discussion started by: chebarbudo
I am trying to use my Solaris 8 Sunblade 2000 with a French HP Keyboard. My system needs to be configured with this keyboard. Please advise where I can set it up. By the way I am using CDE environment.
Thanks (0 Replies)
Discussion started by: Reza Nazarian
readkey(3alleg4) Allegro manual readkey(3alleg4)
readkey - Returns the next character from the keyboard buffer. Allegro game programming library.
Returns the next character from the keyboard buffer, in ASCII format. If the buffer is empty, it waits until a key is pressed. You can see
if there are queued keypresses with keypressed().
The low byte of the return value contains the ASCII code of the key, and the high byte the scancode. The scancode remains the same whatever
the state of the shift, ctrl and alt keys, while the ASCII code is affected by shift and ctrl in the normal way (shift changes case,
ctrl+letter gives the position of that letter in the alphabet, eg. ctrl+A = 1, ctrl+B = 2, etc). Pressing alt+key returns only the scan-
code, with a zero ASCII code in the low byte. For example:
val = readkey();
if ((val & 0xff) == 'd') /* by ASCII code */
allegro_message("You pressed 'd'
if ((val >> 8) == KEY_SPACE) /* by scancode */
allegro_message("You pressed Space
if ((val & 0xff) == 3) /* ctrl+letter */
allegro_message("You pressed Control+C
if (val == (KEY_X << 8)) /* alt+letter */
allegro_message("You pressed Alt+X
This function cannot return character values greater than 255. If you need to read Unicode input, use ureadkey() instead.
install_keyboard(3alleg4), ureadkey(3alleg4), keypressed(3alleg4), clear_keybuf(3alleg4), simulate_keypress(3alleg4)
Allegro version 4.4.2 readkey(3alleg4)