From aacc0fe20e603a488176d90e50aa0b2327cc1ef8 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 29 Aug 2007 23:12:07 +0000
Subject: [PATCH] Use consistently line breaks in the uninstall and status command-lines.
---
opends/src/quicksetup/org/opends/quicksetup/CliApplicationHelper.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/CliApplicationHelper.java b/opends/src/quicksetup/org/opends/quicksetup/CliApplicationHelper.java
index a5f14c3..3061c6e 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/CliApplicationHelper.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/CliApplicationHelper.java
@@ -119,8 +119,6 @@
Message defaultValue,
Message[] validValues) {
- printLineBreak();
-
boolean isValid = false;
Message response = null;
while (!isValid)
@@ -169,7 +167,6 @@
* @return The string value read from the user.
*/
protected String promptForString(Message prompt, String defaultValue) {
- printLineBreak();
String wrappedPrompt = StaticUtils.wrapText(prompt,
Utils.getCommandLineMaxLineWidth());
@@ -212,7 +209,6 @@
protected String promptForPassword(Message msg)
{
String pwd;
- printLineBreak();
String wrappedPrompt = StaticUtils.wrapText(msg,
Utils.getCommandLineMaxLineWidth());
out.print(wrappedPrompt+" ");
@@ -228,6 +224,11 @@
{
pwd = new String(pwChars);
}
+ // Sometimes the backspace trick creates problems in the terminal and
+ // out.println() does not write a new line. printing a space fixes the
+ // problem
+ out.print(" ");
+ out.flush();
}
catch (Throwable t)
{
@@ -698,7 +699,6 @@
}
else
{
- err.println();
Message msg = Utils.getThrowableMsg(INFO_ERROR_CONNECTING_TO_LOCAL.get(),
t);
printErrorMessage(msg);
@@ -767,7 +767,6 @@
}
if (displayErrorMessage)
{
- printLineBreak();
printErrorMessage(msg);
}
Message[] validValues = {
--
Gitblit v1.10.0