Re: <CR/LF> or <CR> or <LF>?
- From: Didi <dp@xxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 07:13:33 -0700
Wow, never thought "they" would have a code for the Enter key.
We keep on learning :-) :-).
Although strictly, the "Enter" key on keyboards (the popular ones;
not many alternative nowadays, I imagine) does have its own code:
$5A press, $F0 $5a release... (practically 0% relevant to your
query, that is :-).
Should I send cr/lf etc at the end of my data to create a new line?
Probably need it to be M$/Mac/Lunix compatable.
That depends on what software on the wintel/linux whatever side will
take your data. If it is a terminal emulation - just prints
out what you send in a window, as you seem to want - then CRLF
is probably the most universal.
But there are terminals which do autoLF on CR etc., generally
a thing one can switch on or off as wanted.
Dimiter
------------------------------------------------------
Dimiter Popoff Transgalactic Instruments
http://www.tgi-sci.com
------------------------------------------------------
On Aug 29, 2:05 am, Martin Griffith <mart_in_medina@xxxxxxxx> wrote:
On Tue, 28 Aug 2007 15:41:16 -0700, in comp.arch.embedded Dingo
<dingoatemydo...@xxxxxxx> wrote:
On Aug 28, 5:56 pm, Martin Griffith <mart_in_medina@xxxxxxxx> wrote:
I need to insert a numeric text string into an opened text document,
from the equivalent of a numeric keypad, via a USB port, (just been
reading about HID.)
The user just presses the Big Red Button on my box, when needed.
Should I send cr/lf etc at the end of my data to create a new line?
Probably need it to be M$/Mac/Lunix compatable.
You need to read some more about HID. Keypads send keypresses,
not text. You probably need do nothing more than send the code for
the Enter key to have the text come out correctly on all systems.
Wow, never thought "they" would have a code for the Enter key.
Thanks, a bit more reading to do!
Martin
.
- Follow-Ups:
- Re: <CR/LF> or <CR> or <LF>?
- From: Dave Hansen
- Re: <CR/LF> or <CR> or <LF>?
- References:
- <CR/LF> or <CR> or <LF>?
- From: Martin Griffith
- Re: <CR/LF> or <CR> or <LF>?
- From: Dingo
- Re: <CR/LF> or <CR> or <LF>?
- From: Martin Griffith
- <CR/LF> or <CR> or <LF>?
- Prev by Date: Re: Safe way to write interrupt driven circular buffer tx rx?
- Next by Date: Re: VMA vs LMA?
- Previous by thread: Re: <CR/LF> or <CR> or <LF>?
- Next by thread: Re: <CR/LF> or <CR> or <LF>?
- Index(es):