aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework.Console
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Framework.Console')
-rw-r--r--OpenSim.Framework.Console/ConsoleBase.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim.Framework.Console/ConsoleBase.cs b/OpenSim.Framework.Console/ConsoleBase.cs
index e2e4457..89c751f 100644
--- a/OpenSim.Framework.Console/ConsoleBase.cs
+++ b/OpenSim.Framework.Console/ConsoleBase.cs
@@ -84,14 +84,14 @@ namespace OpenSim.Framework.Console
84 // Displays a command prompt and waits for the user to enter a string, then returns that string 84 // Displays a command prompt and waits for the user to enter a string, then returns that string
85 public string CmdPrompt(string prompt) 85 public string CmdPrompt(string prompt)
86 { 86 {
87 this.Write(prompt); 87 this.Write(String.Format("{0}: ", prompt));
88 return this.ReadLine(); 88 return this.ReadLine();
89 } 89 }
90 90
91 // Displays a command prompt and returns a default value if the user simply presses enter 91 // Displays a command prompt and returns a default value if the user simply presses enter
92 public string CmdPrompt(string prompt, string defaultresponse) 92 public string CmdPrompt(string prompt, string defaultresponse)
93 { 93 {
94 string temp = CmdPrompt(prompt); 94 string temp = CmdPrompt(String.Format( "{0} [{1}]", prompt, defaultresponse ));
95 if (temp == "") 95 if (temp == "")
96 { 96 {
97 return defaultresponse; 97 return defaultresponse;