[774] in Moira

home help back first fref pref prev next nref lref last post

re: com_err shouldn't print '\r' after '\n' when printing errors

daemon@ATHENA.MIT.EDU (Jerome H Saltzer)
Thu Sep 8 13:43:59 1994

To: Theodore Ts'o <tytso@MIT.EDU>
Cc: krb5-bugs@MIT.EDU, bug-zephyr@MIT.EDU, bugs@MIT.EDU, bug-moira@MIT.EDU
From: Jerome H Saltzer <Saltzer@MIT.EDU>
In-Reply-To: Message of Thu, 08 Sep 94 12:48:53 Q
             From Theodore Ts'o <tytso@mit.edu> 
             <9409081648.AA02739@pinata.MIT.EDU> 
Date: Thu, 08 Sep 94 13:40:11 EDT


> ... Certainly the ordering of \r\n vs. \n\r shouldn't matter; that's
> just a matter of whether you scroll first, and then return to position 1,
> or return to position 1 first, and then scroll.

Actually, if the physical device is a character-at-a-time printer, it
makes a difference.  Following a \r (carrier return) it is necessary to
delay sending the next printing character until the physical movement is
completed.   The order \r\n was originally chosen so that the time
required to transmit the \n will provide that delay.  One of the more
obscure specs on a printing teletype is that it must be able to do a
carrier return from the most distant column in no more than two character
transmission times.

					Jerry

home help back first fref pref prev next nref lref last post