make Console Promt(..) compatible with rest of code, again

0.9.1.0-post-fixes
UbitUmarov 2019-09-21 16:59:41 +01:00
parent b046ccebf2
commit 43b56eaf08
2 changed files with 18 additions and 1 deletions

View File

@ -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;

View File

@ -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 ""; }