Output \n as \r\n, not as \n\r.

This commit is contained in:
Bruce Evans 1995-06-14 04:52:39 +00:00
parent ca78a2a8bb
commit 39a7e2a41a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9217
2 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
* $Id: cons.c,v 1.27 1995/04/24 16:42:59 bde Exp $
* $Id: cons.c,v 1.28 1995/05/30 07:59:18 rgrimes Exp $
*/
#include <sys/param.h>
@ -264,9 +264,9 @@ cnputc(c)
if (cn_tab == NULL)
return;
if (c) {
(*cn_tab->cn_putc)(cn_tab->cn_dev, c);
if (c == '\n')
(*cn_tab->cn_putc)(cn_tab->cn_dev, '\r');
(*cn_tab->cn_putc)(cn_tab->cn_dev, c);
}
}

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
* $Id: cons.c,v 1.27 1995/04/24 16:42:59 bde Exp $
* $Id: cons.c,v 1.28 1995/05/30 07:59:18 rgrimes Exp $
*/
#include <sys/param.h>
@ -264,9 +264,9 @@ cnputc(c)
if (cn_tab == NULL)
return;
if (c) {
(*cn_tab->cn_putc)(cn_tab->cn_dev, c);
if (c == '\n')
(*cn_tab->cn_putc)(cn_tab->cn_dev, '\r');
(*cn_tab->cn_putc)(cn_tab->cn_dev, c);
}
}