I'm working on a command line tool using Node and I'd like to prevent it from exiting when using the
readline module when the user inputs the "Return" key or something that indicates a new line. I saw that readline has an event handler for
line but can't figure out how to prevent it from exiting. Meaning I'd like to allow for the user to be able to use the return and it adds a carriage return to the input for readline instead of exiting it.
I'd like to exit readline only when the user uses