run

fun run()

Run the main functionality. In interactive mode, block until the user enters a new line (enter), otherwise sleep. We can't return because that will close the application.