in reply to print statement does not work

If you print without "\n", the msg is not neccessary to show up on screen at the time you expected. It will show up when one of those happened:
  1. The output buffer is full
  2. a later print statement contains \n
  3. the program finished
If you don't want to wait:
  1. end your msg with "\n"
  2. at the beginning of your code: $| ++