* If standard output is not a terminal, no '\r' is written at the end of

printed lines anymore.
This commit is contained in:
Gunnar Ritter
2005-02-17 15:16:43 +00:00
parent 9fd9a3d91e
commit 124bd15ee6
3 changed files with 14 additions and 8 deletions

View File

@@ -73,7 +73,7 @@
#ifndef lint
#ifdef DOSCCS
static char sccsid[] = "@(#)ex_put.c 1.31 (gritter) 2/15/05";
static char sccsid[] = "@(#)ex_put.c 1.32 (gritter) 2/17/05";
#endif
#endif
@@ -604,10 +604,12 @@ plod(int cnt)
* BUG: this doesn't take the (possibly long) length
* of xCR into account.
*/
if (xCR)
tputs(xCR, 0, plodput);
else
plodput('\r');
if (ospeed != B0) {
if (xCR)
tputs(xCR, 0, plodput);
else
plodput('\r');
}
if (NC) {
if (xNL)
tputs(xNL, 0, plodput);
@@ -796,7 +798,7 @@ fgoto(void)
outcol %= TCOLUMNS;
if (AM == 0) {
while (l > 0) {
if (pfast)
if (pfast && ospeed != B0)
if (xCR)
tputs(xCR, 0, putch);
else