Geant4-11
|
#include <G4UItcsh.hh>
Public Member Functions | |
G4UItcsh (const G4String &prompt="%s> ", G4int maxhist=100) | |
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) |
void | SetLsColor (TermColorIndex dirColor, TermColorIndex cmdColor) |
void | SetNColumn (G4int ncol) |
void | SetPrompt (const G4String &prompt) |
virtual void | ShowCurrentDirectory () const |
~G4UItcsh () | |
Protected Member Functions | |
void | BackspaceCharacter () |
void | BackwardCursor () |
void | ClearAfterCursor () |
void | ClearLine () |
void | ClearScreen () |
void | CompleteCommand () |
void | DeleteCharacter () |
void | ForwardCursor () |
G4String | GetAbsCommandDirPath (const G4String &apath) const |
G4String | GetCommandPathTail (const G4String &apath) const |
G4UIcommandTree * | GetCommandTree (const G4String &dir) const |
G4String | GetFirstMatchedString (const G4String &str1, const G4String &str2) const |
void | InitializeCommandLine () |
void | InsertCharacter (char cc) |
G4bool | IsCursorLast () const |
void | ListMatchedCommand () |
virtual void | MakePrompt (const char *msg=0) |
void | MoveCursorEnd () |
void | MoveCursorTop () |
void | NextCommand () |
void | PreviousCommand () |
G4String | ReadLine () |
G4String | RestoreHistory (G4int index) |
void | RestoreTerm () |
void | SetTermToInputMode () |
void | StoreHistory (G4String aCommand) |
Definition at line 70 of file G4UItcsh.hh.
Definition at line 65 of file G4UItcsh.cc.
References BUFSIZE, test::fname, historyFileName, StoreHistory(), G4StrUtil::strip_copy(), and tios.
G4UItcsh::~G4UItcsh | ( | ) |
Definition at line 97 of file G4UItcsh.cc.
References currentHistoryNo, test::fname, G4endl, historyFileName, maxHistory, and RestoreHistory().
|
protected |
Definition at line 218 of file G4UItcsh.cc.
References AsciiBS, commandLine, cursorPosition, G4cout, and IsCursorLast().
Referenced by ReadLine().
|
protected |
Definition at line 324 of file G4UItcsh.cc.
References AsciiBS, cursorPosition, and G4cout.
Referenced by ReadLine().
|
protected |
Definition at line 283 of file G4UItcsh.cc.
References AsciiBS, commandLine, cursorPosition, G4cout, and IsCursorLast().
Referenced by ReadLine().
|
protected |
Definition at line 267 of file G4UItcsh.cc.
References AsciiBS, commandLine, cursorPosition, and G4cout.
Referenced by NextCommand(), and PreviousCommand().
|
protected |
Definition at line 300 of file G4UItcsh.cc.
References AsciiBS, clearString, commandLine, cursorPosition, G4cout, and G4VUIshell::promptString.
|
protected |
Definition at line 436 of file G4UItcsh.cc.
References AsciiBS, commandLine, G4VUIshell::currentCommandDir, cursorPosition, G4cout, G4VUIshell::GetAbsCommandDirPath(), G4VUIshell::GetCommandPathTail(), G4VUIshell::GetCommandTree(), GetFirstMatchedString(), G4StrUtil::lstrip(), and G4StrUtil::lstrip_copy().
Referenced by ReadLine().
|
protected |
Definition at line 246 of file G4UItcsh.cc.
References AsciiBS, commandLine, cursorPosition, G4cout, and IsCursorLast().
Referenced by ReadLine().
|
protected |
Definition at line 314 of file G4UItcsh.cc.
References commandLine, cursorPosition, G4cout, and IsCursorLast().
Referenced by ReadLine().
Definition at line 145 of file G4VUIshell.cc.
Referenced by CompleteCommand(), and ListMatchedCommand().
|
virtual |
Implements G4VUIshell.
Definition at line 646 of file G4UItcsh.cc.
References FALSE, G4cout, G4endl, MakePrompt(), G4VUIshell::promptString, ReadLine(), relativeHistoryIndex, RestoreTerm(), SetTermToInputMode(), StoreHistory(), and TRUE.
Definition at line 191 of file G4VUIshell.cc.
Referenced by CompleteCommand().
|
protectedinherited |
Definition at line 117 of file G4VUIshell.cc.
References G4UImanager::GetUIpointer(), and G4StrUtil::strip_copy().
Referenced by CompleteCommand().
|
protected |
Definition at line 686 of file G4UItcsh.cc.
Referenced by CompleteCommand().
|
protected |
Definition at line 186 of file G4UItcsh.cc.
References commandLine, and cursorPosition.
Referenced by ReadLine().
|
protected |
Definition at line 194 of file G4UItcsh.cc.
References AsciiBS, AsciiPrintableMin, commandLine, cursorPosition, G4cout, and IsCursorLast().
Referenced by ReadLine().
|
inlineprotected |
Definition at line 133 of file G4UItcsh.hh.
References commandLine, cursorPosition, FALSE, and TRUE.
Referenced by BackspaceCharacter(), ClearAfterCursor(), DeleteCharacter(), ForwardCursor(), InsertCharacter(), and ReadLine().
|
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 ListMatchedCommand().
|
protected |
Definition at line 396 of file G4UItcsh.cc.
References commandLine, G4VUIshell::currentCommandDir, G4cout, G4endl, G4VUIshell::GetAbsCommandDirPath(), G4VUIshell::ListCommand(), G4StrUtil::lstrip(), G4StrUtil::lstrip_copy(), and G4VUIshell::promptString.
Referenced by ReadLine().
|
protectedvirtual |
Reimplemented from G4VUIshell.
Definition at line 121 of file G4UItcsh.cc.
References G4VUIshell::currentCommandDir, currentHistoryNo, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), G4VUIshell::promptSetting, and G4VUIshell::promptString.
Referenced by GetCommandLineString().
|
protected |
Definition at line 345 of file G4UItcsh.cc.
References commandLine, cursorPosition, and G4cout.
Referenced by ReadLine().
|
protected |
Definition at line 334 of file G4UItcsh.cc.
References AsciiBS, cursorPosition, and G4cout.
Referenced by ReadLine().
|
protected |
Definition at line 376 of file G4UItcsh.cc.
References ClearLine(), commandLine, commandLineBuf, currentHistoryNo, cursorPosition, G4cout, maxHistory, relativeHistoryIndex, and RestoreHistory().
Referenced by ReadLine().
|
protected |
Definition at line 356 of file G4UItcsh.cc.
References ClearLine(), commandLine, commandLineBuf, currentHistoryNo, cursorPosition, G4cout, maxHistory, relativeHistoryIndex, and RestoreHistory().
Referenced by ReadLine().
|
protected |
Definition at line 546 of file G4UItcsh.cc.
References AsciiBS, AsciiCtrA, AsciiCtrB, AsciiCtrC, AsciiCtrD, AsciiCtrE, AsciiCtrF, AsciiCtrK, AsciiCtrL, AsciiCtrN, AsciiCtrP, AsciiCtrQ, AsciiCtrS, AsciiCtrZ, AsciiDEL, AsciiESC, AsciiTAB, BackspaceCharacter(), BackwardCursor(), ClearAfterCursor(), commandLine, CompleteCommand(), DeleteCharacter(), ForwardCursor(), G4cin, InitializeCommandLine(), InsertCharacter(), IsCursorLast(), ListMatchedCommand(), MoveCursorEnd(), MoveCursorTop(), NextCommand(), and PreviousCommand().
Referenced by GetCommandLineString().
|
virtual |
Reimplemented from G4VUIshell.
Definition at line 175 of file G4UItcsh.cc.
References RestoreTerm().
Definition at line 722 of file G4UItcsh.cc.
References commandHistory, currentHistoryNo, and maxHistory.
Referenced by NextCommand(), PreviousCommand(), and ~G4UItcsh().
|
protected |
Definition at line 753 of file G4UItcsh.cc.
References tios.
Referenced by GetCommandLineString(), and ResetTerminal().
|
inlineinherited |
Definition at line 114 of file G4VUIshell.hh.
References G4VUIshell::currentCommandDir.
|
inlinevirtual |
Reimplemented from G4VUIshell.
Definition at line 139 of file G4UItcsh.hh.
References G4VUIshell::commandColor, G4VUIshell::directoryColor, G4VUIshell::lsColorFlag, and TRUE.
|
inlineinherited |
Definition at line 104 of file G4VUIshell.hh.
References G4VUIshell::nColumn.
|
inlineinherited |
Definition at line 109 of file G4VUIshell.hh.
References G4VUIshell::promptSetting.
|
protected |
Definition at line 737 of file G4UItcsh.cc.
References tios.
Referenced by GetCommandLineString().
|
inlinevirtualinherited |
Definition at line 123 of file G4VUIshell.hh.
References G4VUIshell::currentCommandDir, G4cout, and G4endl.
|
protected |
Definition at line 711 of file G4UItcsh.cc.
References commandHistory, currentHistoryNo, and maxHistory.
Referenced by G4UItcsh(), and GetCommandLineString().
|
protected |
Definition at line 116 of file G4UItcsh.hh.
Referenced by ClearScreen().
|
protectedinherited |
Definition at line 69 of file G4VUIshell.hh.
Referenced by SetLsColor().
|
protected |
Definition at line 105 of file G4UItcsh.hh.
Referenced by RestoreHistory(), and StoreHistory().
|
protected |
Definition at line 74 of file G4UItcsh.hh.
Referenced by BackspaceCharacter(), ClearAfterCursor(), ClearLine(), ClearScreen(), CompleteCommand(), DeleteCharacter(), ForwardCursor(), InitializeCommandLine(), InsertCharacter(), IsCursorLast(), ListMatchedCommand(), MoveCursorEnd(), NextCommand(), PreviousCommand(), and ReadLine().
|
protected |
Definition at line 76 of file G4UItcsh.hh.
Referenced by NextCommand(), and PreviousCommand().
|
protectedinherited |
Definition at line 72 of file G4VUIshell.hh.
Referenced by CompleteCommand(), ListMatchedCommand(), MakePrompt(), G4VUIshell::MakePrompt(), G4VUIshell::SetCurrentDirectory(), and G4VUIshell::ShowCurrentDirectory().
|
protected |
Definition at line 107 of file G4UItcsh.hh.
Referenced by MakePrompt(), NextCommand(), PreviousCommand(), RestoreHistory(), StoreHistory(), and ~G4UItcsh().
|
protected |
Definition at line 75 of file G4UItcsh.hh.
Referenced by BackspaceCharacter(), BackwardCursor(), ClearAfterCursor(), ClearLine(), ClearScreen(), CompleteCommand(), DeleteCharacter(), ForwardCursor(), InitializeCommandLine(), InsertCharacter(), IsCursorLast(), MoveCursorEnd(), MoveCursorTop(), NextCommand(), and PreviousCommand().
|
protectedinherited |
Definition at line 68 of file G4VUIshell.hh.
Referenced by SetLsColor().
|
protectedinherited |
Definition at line 67 of file G4VUIshell.hh.
Referenced by SetLsColor().
|
protected |
Definition at line 106 of file G4UItcsh.hh.
Referenced by NextCommand(), PreviousCommand(), RestoreHistory(), StoreHistory(), and ~G4UItcsh().
|
protectedinherited |
Definition at line 63 of file G4VUIshell.hh.
Referenced by G4VUIshell::SetNColumn().
|
protectedinherited |
Definition at line 60 of file G4VUIshell.hh.
Referenced by MakePrompt(), G4VUIshell::MakePrompt(), and G4VUIshell::SetPrompt().
|
protectedinherited |
Definition at line 61 of file G4VUIshell.hh.
Referenced by ClearScreen(), G4UIcsh::GetCommandLineString(), GetCommandLineString(), ListMatchedCommand(), MakePrompt(), and G4VUIshell::MakePrompt().
|
protected |
Definition at line 108 of file G4UItcsh.hh.
Referenced by GetCommandLineString(), NextCommand(), and PreviousCommand().
|
protected |
Definition at line 115 of file G4UItcsh.hh.
Referenced by G4UItcsh(), RestoreTerm(), and SetTermToInputMode().