[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Modules] Re: [MacPerl-Porters] Need authoritativeApple refs for EOL == CR



Here we go.

    http://developer.apple.com/techpubs/mac/Text/Text-55.html

# You can replace the address of the default end-of-line hook routine with
# the address of your own routine that determines an end-of-line character
# if you want the end-of-line to be defined by a character other than the
# carriage return.
#
# The default routine compares a given character with $0D (a carriage
# return) to determine whether it is an end-of-line character, and returns
# with the appropriate status flags (either TRUE or FALSE) in the status
# register.

Also:

   http://developer.apple.com/techpubs/mac/Text/Text-516.html

Shows Return key mapped to $0D.

Interesting note from:

   http://developer.apple.com/technotes/tb/tb_12.html

# * The Macintosh International keyboard and the ISO ADB keyboards have an
# extra key that is not present on the domestic keyboards. This key
# produces virtual keycode $0A.

Cool.  :)  And finally:

    http://developer.apple.com/techpubs/mac/Files/Files-16.html

# You can also read a continuous stream of characters or a line of
# characters from a file. In the first case, you ask the File Manager to
# read a specific number of bytes: When that many have been read, or when
# the mark reaches the logical end-of-file, the read operation terminates.
# In the second case, called newline mode, the read operation terminates
# when either of the above conditions is met or when a specified
# character, the newline character, is read. The newline character is
# usually Return (ASCII code $0D), but it can be any character.
# Information about newline mode is associated with each access path to a
# file and can differ from one access path to another. See the chapter
# "File Manager" in this book for more information about newline mode.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org