13

So, how do I exit out of the Kotlinc command-line compiler? I entered kotlinc on my terminal and played with some kotlin on my Mac and now couldn't figure how to exit. It is like the first time I tried vim. Tried ctrl+c, exit, exit(), quit , quit() aaand :q, but nothing worked!

I Searched the official documentation and couldn't find this information. Checked here on SO and I didn't find any previous question. Any help?

Developer Guy
  • 2,318
  • 6
  • 19
  • 37
Harish
  • 1,433
  • 9
  • 21

2 Answers2

23

you can quit by using the command ‘:quit’.

it's in the diagram from https://kotlinlang.org/docs/tutorials/command-line.html enter image description here

you can type ':help' for more commands available to you.

Angel Koh
  • 12,479
  • 7
  • 64
  • 91
0

[control] + [D] is another option as :quit

Sergei Rybalkin
  • 3,337
  • 1
  • 14
  • 27