(if (real-time-stream-p *stdin*) (put-line (quip)))
The stream test around the put-line is recommended, otherwise you will see the quip even if the REPL is used in a pipe:
$ echo '(+ 2 2)' | txr 4
The stream test around the put-line is recommended, otherwise you will see the quip even if the REPL is used in a pipe: