changeset 1352:5853b9c80558

* doc/io.sgml: In the TTY section swap "\n\r" to "\r\n" to match reality.
author asl
date Thu, 06 Nov 2003 11:19:37 +0000
parents 2aef5613bac9
children c93f753dce60
files packages/io/common/current/ChangeLog packages/io/common/current/doc/io.sgml
diffstat 2 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/common/current/ChangeLog
+++ b/packages/io/common/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-06   Billy <billy@babababa.net>
+
+	* doc/io.sgml: In the TTY section swap "\n\r" to "\r\n" to match
+	reality.
+	
 2003-03-25  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/config_keys.h: Define CYG_IO_SET_CONFIG_SERIAL_OUTPUT_FLUSH
--- a/packages/io/common/current/doc/io.sgml
+++ b/packages/io/common/current/doc/io.sgml
@@ -839,12 +839,12 @@ port. It contains a bitmap comprised of 
 <literal>CYG_TTY_OUT_FLAGS_xxx</literal> values below. </PARA>
 
 <PROGRAMLISTING>
-#define CYG_TTY_OUT_FLAGS_CRLF 0x0001 // Map '\n' =&gt; '\n\r' on output
+#define CYG_TTY_OUT_FLAGS_CRLF 0x0001 // Map '\n' =&gt; '\r\n' on output
 </PROGRAMLISTING>
 
 <PARA>If this bit is set in <structfield>tty_out_flags</structfield>,
 any occurrence of the character &quot;\n&quot; will
-be replaced by the sequence &quot;\n\r&quot; before
+be replaced by the sequence &quot;\r\n&quot; before
 being sent to the device.</PARA>
 
 <PARA>The field <structfield><!-- <index></index> -->tty_in_flags</structfield>
@@ -861,12 +861,12 @@ character &quot;\r&quot; (&ldquo;return&
 most keyboards) will be mapped to &quot;\n&quot;.</PARA>
 
 <PROGRAMLISTING>
-#define CYG_TTY_IN_FLAGS_CRLF 0x0002 // Map '\n\r' =&gt; '\n' on input
+#define CYG_TTY_IN_FLAGS_CRLF 0x0002 // Map '\r\n' =&gt; '\n' on input
 </PROGRAMLISTING>
 
 <PARA>
 If this bit is set in <structfield>tty_in_flags</structfield>, the
-character sequence &quot;\n\r&quot; (often sent by DOS/Windows
+character sequence &quot;\r\n&quot; (often sent by DOS/Windows
 based terminals) will be mapped to &quot;\n&quot;. </PARA>
 
 <PROGRAMLISTING>
@@ -916,7 +916,7 @@ cyg_io_write(handle, buf, len)
 
 <PARA>This function is used to send data to the device. In the default
 case, the end-of-line character "\n" is replaced by the
-sequence "\n\r". </PARA>
+sequence "\r\n". </PARA>
 
 <PROGRAMLISTING>
 cyg_io_get_config(handle, key, buf, len)