ctrl_c = 0;
else {
buffer = scm_read (rec_channel);
- printf ("%s\n", scm_to_locale_string (buffer));
+ if (strlen (scm_to_locale_string (buffer)) > 0)
+ printf ("%s\n", scm_to_locale_string (buffer));
}
}
free (line);
(cond ((eof-object? exp)
(close rec-channel))
(else
- (write (format #f "~a" (eval-string exp)) send-channel)))))
+ (let ((result (eval-string exp)))
+ (write (if (eq? result *unspecified*) "" (format #f "~a" result)) send-channel))))))
(lambda (key . args)
(let ((fmt (string-concatenate (list (cadr args) "~%")))
(params (caddr args)))