drscheme:rep:current-rep in DrScheme Tools Functions
(drscheme:rep:current-rep)-> (or/c false/c (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
#fif the program not running in the context of a repl (eg, the test suite window).