I'm trying to create a Kotlin console app using IntelliJ Idea.
For some reason it doesn't run as a console app.
I'm using IntelliJ IDEA 2020.3.1 (Community Edition) on Windows 10.
What I do is as follows - I create a new Kotlin project out of the "Console Application" template. I choose openjdk-15 as the Project JDK:
It generates a project consisting of a simple "Hello world" function:
fun main(args: Array<String>) { println("Hello World!") } When run it, it simply terminates (as expected) - without opening any console window though: 
If I add some code that would require interaction from the user:
fun main(args: Array<String>) { val name = readLine() println("Hello $name!") } Once try to execute it, it builds but then hangs, never completing. Apparently it waits for the user input that's never submitted.
This is understandable, but underlines the problem - so where's the console??
- I tried to fiddle with "Edit Configurations"
- Do I possibly need a different JDK?
What is the solution if I simply want to build a regular console application running in text mode? (Like one I could trivially create using Visual Studio.)

Build, Execution, Deployment/Build Tools/Gradle/Build and run using:. Thanks - I've had no experience building console apps, and it wasn't really obvious to me. You can convert your comment to an answer so that I can accept it.