Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <G4UItcsh.hh>
Public Member Functions | |
G4UItcsh (const G4String &prompt="%s> ", G4int maxhist=100) | |
~G4UItcsh () override | |
void | SetLsColor (TermColorIndex dirColor, TermColorIndex cmdColor) override |
G4String | GetCommandLineString (const char *msg=nullptr) override |
void | ResetTerminal () override |
Public Member Functions inherited from G4VUIshell | |
G4VUIshell (const G4String &prompt="> ") | |
virtual | ~G4VUIshell () |
void | SetNColumn (G4int ncol) |
void | SetPrompt (const G4String &prompt) |
void | SetCurrentDirectory (const G4String &ccd) |
virtual void | ShowCurrentDirectory () const |
virtual void | ListCommand (const G4String &input, const G4String &candidate="") const |
Protected Member Functions | |
void | MakePrompt (const char *msg=nullptr) override |
G4bool | IsCursorLast () const |
void | InitializeCommandLine () |
G4String | ReadLine () |
void | InsertCharacter (char cc) |
void | BackspaceCharacter () |
void | DeleteCharacter () |
void | ClearLine () |
void | ClearAfterCursor () |
void | ClearScreen () |
void | ForwardCursor () |
void | BackwardCursor () |
void | MoveCursorTop () |
void | MoveCursorEnd () |
void | NextCommand () |
void | PreviousCommand () |
void | ListMatchedCommand () |
void | CompleteCommand () |
G4String | GetFirstMatchedString (const G4String &str1, const G4String &str2) const |
void | StoreHistory (G4String aCommand) |
G4String | RestoreHistory (G4int index) |
void | SetTermToInputMode () |
void | RestoreTerm () |
Protected Member Functions inherited from G4VUIshell | |
G4UIcommandTree * | GetCommandTree (const G4String &dir) const |
G4String | GetAbsCommandDirPath (const G4String &apath) const |
G4String | GetCommandPathTail (const G4String &apath) const |
Protected Attributes | |
G4String | commandLine |
G4int | cursorPosition |
G4String | commandLineBuf |
std::vector< G4String > | commandHistory |
G4int | maxHistory |
G4int | currentHistoryNo |
G4int | relativeHistoryIndex |
termios | tios |
G4String | clearString |
Protected Attributes inherited from G4VUIshell | |
G4String | promptSetting |
G4String | promptString |
G4int | nColumn |
G4bool | lsColorFlag |
TermColorIndex | directoryColor |
TermColorIndex | commandColor |
G4String | currentCommandDir |
Definition at line 72 of file G4UItcsh.hh.
Definition at line 67 of file G4UItcsh.cc.
|
override |
Definition at line 106 of file G4UItcsh.cc.
|
protected |
Definition at line 224 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 334 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 293 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 274 of file G4UItcsh.cc.
Referenced by NextCommand(), and PreviousCommand().
|
protected |
Definition at line 310 of file G4UItcsh.cc.
|
protected |
Definition at line 445 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 253 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 324 of file G4UItcsh.cc.
Referenced by ReadLine().
|
overridevirtual |
Implements G4VUIshell.
Definition at line 664 of file G4UItcsh.cc.
|
protected |
Definition at line 703 of file G4UItcsh.cc.
Referenced by CompleteCommand().
|
protected |
Definition at line 191 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 199 of file G4UItcsh.cc.
Referenced by ReadLine().
|
inlineprotected |
Definition at line 161 of file G4UItcsh.hh.
Referenced by BackspaceCharacter(), ClearAfterCursor(), DeleteCharacter(), ForwardCursor(), InsertCharacter(), and ReadLine().
|
protected |
Definition at line 405 of file G4UItcsh.cc.
Referenced by ReadLine().
|
overrideprotectedvirtual |
Reimplemented from G4VUIshell.
Definition at line 130 of file G4UItcsh.cc.
Referenced by GetCommandLineString().
|
protected |
Definition at line 355 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 344 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 385 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 366 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 561 of file G4UItcsh.cc.
Referenced by GetCommandLineString().
|
overridevirtual |
Reimplemented from G4VUIshell.
Definition at line 181 of file G4UItcsh.cc.
Definition at line 739 of file G4UItcsh.cc.
Referenced by NextCommand(), PreviousCommand(), and ~G4UItcsh().
|
protected |
Definition at line 769 of file G4UItcsh.cc.
Referenced by GetCommandLineString(), and ResetTerminal().
|
inlineoverridevirtual |
Reimplemented from G4VUIshell.
Definition at line 166 of file G4UItcsh.hh.
|
protected |
Definition at line 754 of file G4UItcsh.cc.
Referenced by GetCommandLineString().
|
protected |
Definition at line 728 of file G4UItcsh.cc.
Referenced by G4UItcsh(), and GetCommandLineString().
|
protected |
Definition at line 155 of file G4UItcsh.hh.
Referenced by ClearScreen().
|
protected |
Definition at line 149 of file G4UItcsh.hh.
Referenced by RestoreHistory(), and StoreHistory().
|
protected |
Definition at line 145 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 147 of file G4UItcsh.hh.
Referenced by NextCommand(), and PreviousCommand().
|
protected |
Definition at line 151 of file G4UItcsh.hh.
Referenced by MakePrompt(), NextCommand(), PreviousCommand(), RestoreHistory(), StoreHistory(), and ~G4UItcsh().
|
protected |
Definition at line 146 of file G4UItcsh.hh.
Referenced by BackspaceCharacter(), BackwardCursor(), ClearAfterCursor(), ClearLine(), ClearScreen(), CompleteCommand(), DeleteCharacter(), ForwardCursor(), InitializeCommandLine(), InsertCharacter(), IsCursorLast(), MoveCursorEnd(), MoveCursorTop(), NextCommand(), and PreviousCommand().
|
protected |
Definition at line 150 of file G4UItcsh.hh.
Referenced by NextCommand(), PreviousCommand(), RestoreHistory(), StoreHistory(), and ~G4UItcsh().
|
protected |
Definition at line 152 of file G4UItcsh.hh.
Referenced by GetCommandLineString(), NextCommand(), and PreviousCommand().
|
protected |
Definition at line 154 of file G4UItcsh.hh.
Referenced by G4UItcsh(), RestoreTerm(), and SetTermToInputMode().