output file and cursor instead of message