03-28-2013 02:47 PM
03-28-2013 02:56 PM
What do you mean the "Enter key"? There are ASCII codes for "Carriage Return" and "Linefeed", but these are just programmatic interpretations of what the "Enter" key means. What are you trying to do?
03-28-2013 03:27 PM
You send the scan code "\5A" without the quotes
Here is a good source for keyboard Scan codes.
03-28-2013 04:22 PM
Jeff, Are you sure about that?
I don't believe keyboard scan codes have anything to do with a serial port. If you send the byte 5A out to a serial port, then it is just sending the character "Z".
Tokyghy, please clarify what you are trying to do. The hardware interface for a keyboard is a different entity from a serial port. Which is why Putnam questioned what you meant by sending an "enter key" to the serial port.
03-28-2013 05:09 PM
@RavensFan wrote:
Jeff, Are you sure about that?
I don't believe keyboard scan codes have anything to do with a serial port. If you send the byte 5A out to a serial port, then it is just sending the character "Z".
Hmmm, That made me go back to my old source code where I peeked at some very old code..... where I cecalled needing to send arrow keys out to a "chatty Cathy" UART. I dug down deeper into the source since you pointed out my obvious brain slippage
the commands were:
(In \codes)
\1B[A
\1B[B
\1B[C
\1B[D
I apparently didn't add comments to the code to explain to myself what I thought I was doing
03-29-2013 10:56 PM
HI, thanks for your responses, but at the end i figured it out and all that i needed was a carriage return, sorry if my question was not clear enough =/
Thanks all!