make Console Promt(..) compatible with rest of code, again
parent
b046ccebf2
commit
43b56eaf08
|
@ -68,7 +68,22 @@ namespace OpenSim.Framework.Console
|
||||||
System.Console.WriteLine(format, components);
|
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;
|
bool itisdone = false;
|
||||||
string ret = String.Empty;
|
string ret = String.Empty;
|
||||||
|
|
|
@ -66,6 +66,8 @@ namespace OpenSim.Framework.Console
|
||||||
public void Output(string format, string level, params object[] components) { }
|
public void Output(string format, string level, params object[] components) { }
|
||||||
|
|
||||||
public string Prompt(string p) { return ""; }
|
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 p, string def, List<char> excludedCharacters, bool echo) { return ""; }
|
||||||
|
|
||||||
public string Prompt(string prompt, string defaultresponse, List<string> options) { return ""; }
|
public string Prompt(string prompt, string defaultresponse, List<string> options) { return ""; }
|
||||||
|
|
Loading…
Reference in New Issue