before it was printed in the prompt

prompt $p$g has worked since DOS 3.10, IIRC.
_________________________
-- roger