[fpc-pascal] Meaning of "^M^J"

yu ping spingyu at gmail.com
Wed Sep 30 06:38:56 CEST 2009


^A= 1
^b= 2
^c= 3
^d= 4
^e= 5
^f= 6
^g= 7
^h= 8
^i= 9
^j= 10
^k= 11
^l= 12
^m= 13
^n= 14
^o= 15
^p= 16
^q= 17
^r= 18
^s= 19
^t= 20
^u= 21
^v= 22
^w= 23
^x= 24
^y= 25
^z= 26

I wander how "^" symble works


2009/9/30 Ralf A. Quint <FreeDOS at gmx.net>:
> At 08:48 PM 9/29/2009, yu ping wrote:
>>
>> I read a source file,found it writes "^M^J" to a output.
>> I don't know what is it's meaning,
>> after test,I think it should be a return char,
>> my question is, where can i find defination of this?
>
> It's simply the byte sequence 0Dh, 0Ah (or 0x0d, 0x0a of C aficionados,
> "Carriage Return"-"Line Feed") which is the end-of-line sequence for
> CP/M,DOS/Windows since the early '70s, and in contrast to Unix/Linux, which
> uses only a 0Ah, while at least the older Mac OS was using only a 0Dh to
> mark the end of a line in a text file...
>
> Ralf
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list