0
fun main(){
   println("Enter your password: ")
   var password = readln()
 }

Enter your password: *******

Is there any way to get this work in the terminal? I already tried a little with System.'in' and Inputstream but I can't find a solution

  • IntelliJ IDEA is not a full terminal emulator, and it does not support advanced terminal features such as turning off echo. The usual way to read passwords - such as using `System.console().readPassword()` - does not work in IntelliJ IDEA's console. – DVN-Anakin Jun 27 '23 at 04:02

0 Answers0