in reply to Reading directly from a keyboard device, not simply <STDIN>
Of course, your other problem is that "there is no screen" so your print statement isn't going to do anything, either.
So, what type of operating system does this embedded PC have? It doesn't have any HID drivers for USB keyboards? I've not done any embedded programming, but I would have expected that any device large enough to have perl on it would have a libc that would take care of this, whether it's DOS-ish-based or unix-like or some such. And that, of course, would mean that "cat -" would work, which would mean that just using stdin would work. Of course, I assume you've already tried that (being the most naive approach), so that's why I'm wondering what the OS is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading directly from a keyboard device, not simply <STDIN>
by overrider (Acolyte) on Dec 16, 2008 at 05:26 UTC |