From: Olof-Joachim Frahm Date: Mon, 19 Aug 2013 23:32:01 +0000 (+0200) Subject: Add and use TERPRI. X-Git-Url: http://repo.macrolet.net/gitweb/?p=jscl.git;a=commitdiff_plain;h=4c09bf8ec189997e7409e692c05dd8d516cf9b1a Add and use TERPRI. --- diff --git a/src/print.lisp b/src/print.lisp index 8cb36bd..66d8b0a 100644 --- a/src/print.lisp +++ b/src/print.lisp @@ -257,9 +257,13 @@ (let ((*print-escape* nil)) (write-to-string form))) +(defun terpri () + (write-char #\newline) + (values)) + (defun write-line (x) (write-string x) - (write-char #\newline) + (terpri) x) (defun warn (string)