简体   繁体   中英

Java, console.readPassword adds extra line. How to delete it?

When i use console.readPassword() to read user passwords through console, there is always one line added to the console.

How to disable this behavior or how to delete that extra line (and move the cursor after the last character in the line before)? What escape character to use?

Thanks

console.readPassword() does not an extra line. It must be something else that does that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM