mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
make Console Promt(..) compatible with rest of code, again
This commit is contained in:
@@ -68,7 +68,22 @@ namespace OpenSim.Framework.Console
|
||||
System.Console.WriteLine(format, components);
|
||||
}
|
||||
|
||||
public virtual string Prompt(string p, string def = null, List<char> excludedCharacters = null, bool echo = true)
|
||||
public string Prompt(string p)
|
||||
{
|
||||
return Prompt(p, null, null, true);
|
||||
}
|
||||
|
||||
public string Prompt(string p, string def)
|
||||
{
|
||||
return Prompt(p, def, null, true);
|
||||
}
|
||||
|
||||
public string Prompt(string p, List<char> excludedCharacters)
|
||||
{
|
||||
return Prompt(p, null, excludedCharacters, true);
|
||||
}
|
||||
|
||||
public virtual string Prompt(string p, string def, List<char> excludedCharacters, bool echo = true)
|
||||
{
|
||||
bool itisdone = false;
|
||||
string ret = String.Empty;
|
||||
|
||||
@@ -66,6 +66,8 @@ namespace OpenSim.Framework.Console
|
||||
public void Output(string format, string level, params object[] components) { }
|
||||
|
||||
public string Prompt(string p) { return ""; }
|
||||
public string Prompt(string p, string def) { return ""; }
|
||||
public string Prompt(string p, List<char> excludedCharacters) { return ""; }
|
||||
public string Prompt(string p, string def, List<char> excludedCharacters, bool echo) { return ""; }
|
||||
|
||||
public string Prompt(string prompt, string defaultresponse, List<string> options) { return ""; }
|
||||
|
||||
Reference in New Issue
Block a user