drscheme:rep:current-rep in DrScheme Tools Functions
(drscheme:rep:current-rep) -> (union false? (is-a?/c drscheme:rep:text%))
This is a parameter whose value should not be set by tools. It is initialized to the repl that controls this evaluation in the user's thread.
It only returns #f if the program not running
in the context of a repl (eg, the test suite window).