#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.641 2008/02/02 06:53:36 cph Exp $
+$Id: runtime.pkg,v 14.642 2008/02/02 17:59:58 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(files "usrint")
(parent (runtime))
(export ()
+ (write-notification-line with-notification)
prompt-for-command-char
prompt-for-command-expression
prompt-for-confirmation
prompt-for-evaluated-expression
prompt-for-expression
- with-notification
- write-notification-line)
+ with-notification)
(export (runtime rep)
port/set-default-environment
port/write-result)
#| -*-Scheme-*-
-$Id: usrint.scm,v 1.31 2008/02/02 06:53:37 cph Exp $
+$Id: usrint.scm,v 1.32 2008/02/02 17:59:59 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(define (with-notification message #!optional thunk)
(if (or (default-object? thunk) (not thunk))
- (write-notification-line message)
+ (let ((port (notification-output-port)))
+ (fresh-line port)
+ (write-notification-prefix port)
+ (message (wrap-notification-port port)))
(let ((done? #f)
(n))
(dynamic-wind
(set! n)
(write-string "done" port)
(newline port))))))))
-
-(define (write-notification-line message)
- (let ((port (notification-output-port)))
- (fresh-line port)
- (write-notification-prefix port)
- (message (wrap-notification-port port))))
\f
(define (wrap-notification-port port)
(make-port wrapped-notification-port-type port))