mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
brought zircon branch into trunk
This commit is contained in:
45
OpenSim.Framework.Console/ConsoleBase.cs
Normal file
45
OpenSim.Framework.Console/ConsoleBase.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
namespace OpenSim.Framework.Console
|
||||
{
|
||||
public abstract class ConsoleBase
|
||||
{
|
||||
|
||||
public enum ConsoleType
|
||||
{
|
||||
Local, // Use stdio
|
||||
TCP, // Use TCP/telnet
|
||||
SimChat // Use in-world chat (for gods)
|
||||
}
|
||||
|
||||
public abstract void Close();
|
||||
|
||||
public abstract void Write(string format, params object[] args);
|
||||
|
||||
public abstract void WriteLine(string format, params object[] args);
|
||||
|
||||
public abstract string ReadLine();
|
||||
|
||||
public abstract int Read();
|
||||
|
||||
// Displays a command prompt and waits for the user to enter a string, then returns that string
|
||||
public abstract string CmdPrompt(string prompt);
|
||||
|
||||
// Displays a command prompt and returns a default value if the user simply presses enter
|
||||
public abstract string CmdPrompt(string prompt, string defaultresponse);
|
||||
|
||||
// Displays a command prompt and returns a default value, user may only enter 1 of 2 options
|
||||
public abstract string CmdPrompt(string prompt, string defaultresponse, string OptionA, string OptionB);
|
||||
|
||||
// Runs a command with a number of parameters
|
||||
public abstract Object RunCmd(string Cmd, string[] cmdparams);
|
||||
|
||||
// Shows data about something
|
||||
public abstract void ShowCommands(string ShowWhat);
|
||||
|
||||
// Displays a prompt to the user and then runs the command they entered
|
||||
public abstract void MainConsolePrompt();
|
||||
|
||||
public abstract void SetStatus(string status);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user