29 using System.Threading;
30 using System.Collections.Generic;
34 namespace OpenSim.Framework.Console
43 #pragma warning disable 0067
45 #pragma warning restore 0067
51 public string DefaultPrompt {
get; set; }
57 public string ReadLine(
string p,
bool isCommand,
bool e) {
return ""; }
59 public object ConsoleScene {
64 public void Output(
string text,
string level) {}
69 public string CmdPrompt(
string p,
string def) {
return ""; }
70 public string CmdPrompt(
string p, List<char> excludedCharacters) {
return ""; }
71 public string CmdPrompt(
string p,
string def, List<char> excludedCharacters) {
return ""; }
73 public string CmdPrompt(
string prompt,
string defaultresponse, List<string>
options) {
return ""; }
81 public List<string>
GetHelp(
string[] cmd) {
return null; }
83 public void AddCommand(
string module,
bool shared,
string command,
string help,
string longhelp,
string descriptivehelp,
CommandDelegate fn) {}
86 public string[]
Resolve(
string[] cmd) {
return null; }
87 public XmlElement
GetXml(XmlDocument doc) {
return null; }
void AddCommand(string module, bool shared, string command, string help, string longhelp, string descriptivehelp, CommandDelegate fn)
Add a command to those which can be invoked from the console.
string CmdPrompt(string p, string def)
void FromXml(XmlElement root, CommandDelegate fn)
string[] Resolve(string[] cmd)
delegate void CommandDelegate(string module, string[] cmd)
void RunCommand(string cmd)
string CmdPrompt(string prompt, string defaultresponse, List< string > options)
string CmdPrompt(string p)
string CmdPrompt(string p, string def, List< char > excludedCharacters)
string CmdPrompt(string p, List< char > excludedCharacters)
void Prompt()
Display a command prompt on the console and wait for user input
void OutputFormat(string format, params object[] components)
OnOutputDelegate OnOutput
delegate void OnOutputDelegate(string message)
string ReadLine(string p, bool isCommand, bool e)
XmlElement GetXml(XmlDocument doc)
void Output(string text, string level)
This is a Fake console that's used when setting up the Scene in Unit Tests Don't use this except for ...
string PasswdPrompt(string p)
string[] FindNextOption(string[] cmd, bool term)
List< string > GetHelp(string[] cmd)
Get help for the given help string
bool HasCommand(string cmd)
Has the given command already been registered?
void AddCommand(string module, bool shared, string command, string help, string longhelp, CommandDelegate fn)
Add a command to those which can be invoked from the console.