newLISP Fan Club

Forum => newLISP in the real world => Topic started by: HPW on July 07, 2005, 03:23:16 AM

Title: Settable line termination character(s)?
Post by: HPW on July 07, 2005, 03:23:16 AM
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)?
Title:
Post by: Lutz on July 07, 2005, 03:33:41 PM
use this:



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


Lutz
Title:
Post by: HPW on July 07, 2005, 11:36:15 PM
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.