Settable line termination character(s)?

Started by HPW, July 07, 2005, 03:23:16 AM

Previous topic - Next topic

HPW

On solaris it is easy to write a windows file.

You only have to append a 'r' to your line-string.

But on windows it is not so easy because the line termination characters are by default 'rn'.

So how about a option to set the line termination characters to 'n' (like in Unix)?
Hans-Peter

Lutz

#1
use this:



(define-macro (println-unix)
    (apply print (map eval (args)))
    (print "n"))


Lutz

HPW

#2
Thanks for the workaround.



I had used write-line and have not thought about using print.



write-related commands are quite similar than print-releated commands but differ in such details.
Hans-Peter