Geant4-11
|
#include <G4UIcsh.hh>
Public Member Functions | |
G4UIcsh (const G4String &prompt="%s> ") | |
virtual G4String | GetCommandLineString (const char *msg=0) |
virtual void | ListCommand (const G4String &input, const G4String &candidate="") const |
virtual void | ResetTerminal () |
void | SetCurrentDirectory (const G4String &ccd) |
virtual void | SetLsColor (TermColorIndex, TermColorIndex) |
void | SetNColumn (G4int ncol) |
void | SetPrompt (const G4String &prompt) |
virtual void | ShowCurrentDirectory () const |
~G4UIcsh () | |
Protected Member Functions | |
G4String | GetAbsCommandDirPath (const G4String &apath) const |
G4String | GetCommandPathTail (const G4String &apath) const |
G4UIcommandTree * | GetCommandTree (const G4String &dir) const |
virtual void | MakePrompt (const char *msg=0) |
Protected Attributes | |
TermColorIndex | commandColor |
G4String | currentCommandDir |
TermColorIndex | directoryColor |
G4bool | lsColorFlag |
G4int | nColumn |
G4String | promptSetting |
G4String | promptString |
Definition at line 39 of file G4UIcsh.hh.
G4UIcsh::G4UIcsh | ( | const G4String & | prompt = "%s> " | ) |
Definition at line 32 of file G4UIcsh.cc.
G4UIcsh::~G4UIcsh | ( | ) |
Definition at line 39 of file G4UIcsh.cc.
Definition at line 145 of file G4VUIshell.cc.
Referenced by G4UItcsh::CompleteCommand(), and G4UItcsh::ListMatchedCommand().
|
virtual |
Implements G4VUIshell.
Definition at line 46 of file G4UIcsh.cc.
References G4cin, G4cout, G4VUIshell::MakePrompt(), G4VUIshell::promptString, G4StrUtil::readline(), and G4StrUtil::rstrip().
Definition at line 191 of file G4VUIshell.cc.
Referenced by G4UItcsh::CompleteCommand().
|
protectedinherited |
Definition at line 117 of file G4VUIshell.cc.
References G4UImanager::GetUIpointer(), and G4StrUtil::strip_copy().
Referenced by G4UItcsh::CompleteCommand().
|
virtualinherited |
Definition at line 229 of file G4VUIshell.cc.
References FALSE, G4cout, G4endl, anonymous_namespace{G4ZMQServer.cc}::GetCommandTree(), G4UIArrayString::Show(), G4StrUtil::strip_copy(), TermColorString, and TRUE.
Referenced by G4UItcsh::ListMatchedCommand().
|
protectedvirtualinherited |
Reimplemented in G4UItcsh.
Definition at line 60 of file G4VUIshell.cc.
References G4VUIshell::currentCommandDir, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), G4VUIshell::promptSetting, and G4VUIshell::promptString.
Referenced by GetCommandLineString().
|
virtualinherited |
|
inlineinherited |
Definition at line 114 of file G4VUIshell.hh.
References G4VUIshell::currentCommandDir.
|
inlinevirtualinherited |
|
inlineinherited |
Definition at line 104 of file G4VUIshell.hh.
References G4VUIshell::nColumn.
|
inlineinherited |
Definition at line 109 of file G4VUIshell.hh.
References G4VUIshell::promptSetting.
|
inlinevirtualinherited |
Definition at line 123 of file G4VUIshell.hh.
References G4VUIshell::currentCommandDir, G4cout, and G4endl.
|
protectedinherited |
Definition at line 69 of file G4VUIshell.hh.
Referenced by G4UItcsh::SetLsColor().
|
protectedinherited |
Definition at line 72 of file G4VUIshell.hh.
Referenced by G4UItcsh::CompleteCommand(), G4UItcsh::ListMatchedCommand(), G4UItcsh::MakePrompt(), G4VUIshell::MakePrompt(), G4VUIshell::SetCurrentDirectory(), and G4VUIshell::ShowCurrentDirectory().
|
protectedinherited |
Definition at line 68 of file G4VUIshell.hh.
Referenced by G4UItcsh::SetLsColor().
|
protectedinherited |
Definition at line 67 of file G4VUIshell.hh.
Referenced by G4UItcsh::SetLsColor().
|
protectedinherited |
Definition at line 63 of file G4VUIshell.hh.
Referenced by G4VUIshell::SetNColumn().
|
protectedinherited |
Definition at line 60 of file G4VUIshell.hh.
Referenced by G4UItcsh::MakePrompt(), G4VUIshell::MakePrompt(), and G4VUIshell::SetPrompt().
|
protectedinherited |
Definition at line 61 of file G4VUIshell.hh.
Referenced by G4UItcsh::ClearScreen(), GetCommandLineString(), G4UItcsh::GetCommandLineString(), G4UItcsh::ListMatchedCommand(), G4UItcsh::MakePrompt(), and G4VUIshell::MakePrompt().