common: utils: Beautify the console readline too

- Now it aligns with Scanner
master
Dhina17 7 months ago
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…
Cancel
Save