jeff@cdp.UUCP (09/04/89)
> for it to be sent to a terminal. For Unix, text files must be translated > so a lf sends out both a line feed and a carriagereturn - and this > means it is impossible to send out a linefeed alone. "Don't be ridiculous." Of course it's possible to send out a linefeed alone. You need to issue the proper ioctl() to turn off CR/LF mapping. Jeff Dean uunet!pyramid!cdp!jeff
leonard@bucket.UUCP (Leonard Erickson) (09/05/89)
jeff@cdp.UUCP writes:
<> for it to be sent to a terminal. For Unix, text files must be translated
<> so a lf sends out both a line feed and a carriagereturn - and this
<> means it is impossible to send out a linefeed alone.
<"Don't be ridiculous." Of course it's possible to send out a linefeed
<alone. You need to issue the proper ioctl() to turn off CR/LF mapping.
And how, pray tell, do you do this *inside a text file*?
What he was saying is that it is possible to have *pure text* files
under MS-DOS (or CP/M) that cannot be correctly displayed under Unix.
It would be nice if Unix would follow the ASCII standard...
(yes, I know this is heresy...)
--
Leonard Erickson ...!tektronix!reed!percival!bucket!leonard
CIS: [70465,203]
"I'm all in favor of keeping dangerous weapons out of the hands of fools.
Let's start with typewriters." -- Solomon Short
dave@micropen (David F. Carlson) (09/07/89)
In article <1657@bucket.UUCP>, leonard@bucket.UUCP (Leonard Erickson) writes: > jeff@cdp.UUCP writes: > > > <> for it to be sent to a terminal. For Unix, text files must be translated > <> so a lf sends out both a line feed and a carriagereturn - and this > <> means it is impossible to send out a linefeed alone. > > <"Don't be ridiculous." Of course it's possible to send out a linefeed > <alone. You need to issue the proper ioctl() to turn off CR/LF mapping. > > And how, pray tell, do you do this *inside a text file*? > > Leonard Erickson ...!tektronix!reed!percival!bucket!leonard OK leonard. From any UNIX terminal, type: stty -onlcr Then any UNIX terminal will consider it necessary to have both a new line and a carriage return to do the "right" thing. Few things in UNIX are *musts* or *can'ts*. You can make it do what you want. Have fun. -- David F. Carlson, Micropen, Inc. micropen!dave@ee.rochester.edu "The faster I go, the behinder I get." --Lewis Carroll