Should this prompt lose its newline leader?  It doesn't seem to follow after a gets() or fgets().  Maybe, the prompt should have a blank line above it that separates it from the stuff that other processes had put on the screen.