Unit Shell

From Ultibo.org
Jump to: navigation, search

Return to Unit Reference


Description


Ultibo Generic Shell unit

Constants



[Expand]
Shell specific constants SHELL_*


[Expand]
Shell flag SHELL_FLAG_*


[Expand]
Shell cursor mode SHELL_CURSOR_MODE_*


[Expand]
Shell cursor shape SHELL_CURSOR_SHAPE_*


[Expand]
Shell session flag SHELL_SESSION_FLAG_*


[Expand]
Shell command flag SHELL_COMMAND_FLAG_*


[Expand]
Shell alias flag SHELL_ALIAS_FLAG_*


[Expand]
Shell command SHELL_COMMAND_*


[Expand]
Shell alias SHELL_ALIAS_*


[Expand]
Shell history SHELL_HISTORY_*


[Expand]
Shell logging SHELL_LOG_*


Type definitions


None defined

Class definitions



Shell specific classes

TShellManager = class(TObject)
TShell = class(TListObject)
TShellSession = class(TListObject)
TShellCommand = class(TListObject)
TShellAlias = class(TListObject)
TShellHistory = class(TListObject)
TShellCommandHelp = class(TShellCommand)
TShellCommandInfo = class(TShellCommand)
TShellCommandVer = class(TShellCommand)
TShellCommandTime = class(TShellCommand)
TShellCommandClear = class(TShellCommand)
TShellCommandRestart = class(TShellCommand)
TShellCommandShutdown = class(TShellCommand)
TShellCommandUptime = class(TShellCommand)
TShellCommandThreads = class(TShellCommand)
TShellCommandMemory = class(TShellCommand)
TShellCommandDevices = class(TShellCommand)


Public variables



Shell logging

SHELL_DEFAULT_LOG_LEVEL:LongWord = SHELL_LOG_LEVEL_DEBUG; Minimum level for Shell messages. Only messages with level greater than or equal to this will be printed.
SHELL_LOG_ENABLED:Boolean;


Function declarations



Initialization functions

[Expand]
procedure ShellInit;
Description: To be documented


Shell functions

[Expand]
function ShellGetShell(APrevious:TShell; ALock,AUnlock:Boolean):TShell;
Description: To be documented


[Expand]
function ShellFindShell(const AName:String):TShell;
Description: To be documented


[Expand]
function ShellRegisterShell(AShell:TShell):Boolean;
Description: To be documented


[Expand]
function ShellDeregisterShell(AShell:TShell):Boolean;
Description: To be documented


[Expand]
function ShellGetCommand(APrevious:TShellCommand; ALock,AUnlock:Boolean):TShellCommand;
Description: To be documented


[Expand]
function ShellFindCommand(const AName:String):TShellCommand;
Description: To be documented


[Expand]
function ShellRegisterCommand(ACommand:TShellCommand):Boolean;
Description: To be documented


[Expand]
function ShellDeregisterCommand(ACommand:TShellCommand):Boolean;
Description: To be documented


Shell helper functions

[Expand]
procedure ShellLog(Level:LongWord; const AText:String);
Description: To be documented


[Expand]
procedure ShellLogInfo(const AText:String); inline;
Description: To be documented


[Expand]
procedure ShellLogWarn(const AText:String); inline;
Description: To be documented


[Expand]
procedure ShellLogError(const AText:String); inline;
Description: To be documented


[Expand]
procedure ShellLogDebug(const AText:String); inline;
Description: To be documented


Return to Unit Reference