Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
33cbe4a3
Commit
33cbe4a3
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Fixed DRIBBLE to monitor *ERROR-OUTPUT* as well.
parent
b13c6af9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/misc.lisp
+15
-10
15 additions, 10 deletions
code/misc.lisp
with
15 additions
and
10 deletions
code/misc.lisp
+
15
−
10
View file @
33cbe4a3
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/misc.lisp,v 1.1
1
1991/1
0
/20
23:38:37
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/misc.lisp,v 1.1
2
1991/1
2
/20
15:34:06
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -118,12 +118,12 @@
;;;; Dribble stuff:
;;; Each time we start dribbling to a new stream, we put it in
;;; *dribble-stream*, and push a list of *dribble-stream*,
;;; *standard-
in
put*
,
and *
standard
-output* in *previous-streams*.
;;; *standard-output* is changed to a broadcast stream that
broadcasts
;;; to *dribble-stream* and to the old value of
*standard-output*
.
;;; *standard-input* is changed to an echo stream that echos input from
;;;
the old
value of standard input to *dribble-stream*.
;;; *dribble-stream*, and push a list of *dribble-stream*,
*standard-input*,
;;; *standard-
out
put* and *
error
-output* in *previous-streams*.
;;; *standard-output*
and *error-output*
is changed to a broadcast stream that
;;;
broadcasts
to *dribble-stream* and to the old value
s
of
the variables
.
;;; *standard-input* is changed to an echo stream that echos input from
the old
;;; value of standard input to *dribble-stream*.
;;;
;;; When dribble is called with no arguments, *dribble-stream* is closed,
;;; and the values of *dribble-stream*, *standard-input*, and
...
...
@@ -142,13 +142,17 @@
:if-does-not-exist
:create
))
(
new-standard-output
(
make-broadcast-stream
*standard-output*
new-dribble-stream
))
(
new-error-output
(
make-broadcast-stream
*error-output*
new-dribble-stream
))
(
new-standard-input
(
make-echo-stream
*standard-input*
new-dribble-stream
)))
(
push
(
list
*dribble-stream*
*standard-input*
*standard-output*
)
(
push
(
list
*dribble-stream*
*standard-input*
*standard-output*
*error-output*
)
*previous-streams*
)
(
setf
*dribble-stream*
new-dribble-stream
)
(
setf
*standard-input*
new-standard-input
)
(
setf
*standard-output*
new-standard-output
)))
(
setf
*standard-output*
new-standard-output
)
(
setf
*error-output*
new-error-output
)))
((
null
*dribble-stream*
)
(
error
"Not currently dribbling."
))
(
t
...
...
@@ -156,5 +160,6 @@
(
close
*dribble-stream*
)
(
setf
*dribble-stream*
(
first
old-streams
))
(
setf
*standard-input*
(
second
old-streams
))
(
setf
*standard-output*
(
third
old-streams
)))))
(
setf
*standard-output*
(
third
old-streams
))
(
setf
*error-output*
(
fourth
old-streams
)))))
(
values
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment