Skip to content

Commit

Permalink
In stepper, make output from check-expect go to REPL.
Browse files Browse the repository at this point in the history
Fixes #223.
  • Loading branch information
mikesperber authored and jbclements committed Sep 9, 2024
1 parent d701105 commit a6c3096
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion htdp-lib/stepper/drracket-button.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@
x:step-img
(λ (drs-frame)
(configure)
(send (send drs-frame get-current-tab) stepper-button-callback language settings))))
(define tab (send drs-frame get-current-tab))
(parameterize
;; make sure output, say from failed check-expects, goes into the REPL
((current-output-port (send (send tab get-ints) get-out-port)))
(send tab stepper-button-callback language settings)))))

0 comments on commit a6c3096

Please sign in to comment.