common: utils: Beautify the console readline too
- Now it aligns with Scanner
This commit is contained in:
parent
754b07adf4
commit
3d0efdb5cd
@ -16,7 +16,7 @@ public final class ScannerUtils {
|
||||
synchronized (LOCK) {
|
||||
Console console = System.console();
|
||||
if (console != null) {
|
||||
return console.readLine("[%s] %s", displayName, question);
|
||||
return console.readLine("[%s] %s: ", displayName, question);
|
||||
} else {
|
||||
if (scanner == null) {
|
||||
scanner = new InputStreamReader(System.in);
|
||||
|
Loading…
Reference in New Issue
Block a user