Geant4 9.6.0
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 () | |
void | SetLsColor (TermColorIndex dirColor, TermColorIndex cmdColor) |
virtual G4String | GetCommandLineString (const char *msg=0) |
virtual void | ResetTerminal () |
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 | SetLsColor (TermColorIndex, TermColorIndex) |
virtual void | ShowCurrentDirectory () const |
virtual void | ListCommand (const G4String &input, const G4String &candidate="") const |
virtual G4String | GetCommandLineString (const char *msg=0)=0 |
virtual void | ResetTerminal () |
Protected Member Functions | |
virtual void | MakePrompt (const char *msg=0) |
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 | |
virtual void | MakePrompt (const char *msg=0) |
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 71 of file G4UItcsh.hh.
Definition at line 66 of file G4UItcsh.cc.
G4UItcsh::~G4UItcsh | ( | ) |
Definition at line 99 of file G4UItcsh.cc.
|
protected |
Definition at line 220 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 326 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 285 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 269 of file G4UItcsh.cc.
Referenced by NextCommand(), and PreviousCommand().
|
protected |
Definition at line 302 of file G4UItcsh.cc.
|
protected |
Definition at line 439 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 248 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 316 of file G4UItcsh.cc.
Referenced by ReadLine().
Implements G4VUIshell.
Definition at line 648 of file G4UItcsh.cc.
|
protected |
Definition at line 688 of file G4UItcsh.cc.
Referenced by CompleteCommand().
|
protected |
Definition at line 188 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 196 of file G4UItcsh.cc.
Referenced by ReadLine().
|
inlineprotected |
Definition at line 134 of file G4UItcsh.hh.
Referenced by BackspaceCharacter(), ClearAfterCursor(), DeleteCharacter(), ForwardCursor(), InsertCharacter(), and ReadLine().
|
protected |
Definition at line 398 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protectedvirtual |
Reimplemented from G4VUIshell.
Definition at line 123 of file G4UItcsh.cc.
Referenced by GetCommandLineString().
|
protected |
Definition at line 347 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 336 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 378 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 358 of file G4UItcsh.cc.
Referenced by ReadLine().
|
protected |
Definition at line 548 of file G4UItcsh.cc.
Referenced by GetCommandLineString().
|
virtual |
Reimplemented from G4VUIshell.
Definition at line 177 of file G4UItcsh.cc.
Definition at line 724 of file G4UItcsh.cc.
Referenced by NextCommand(), PreviousCommand(), and ~G4UItcsh().
|
protected |
Definition at line 755 of file G4UItcsh.cc.
Referenced by GetCommandLineString(), and ResetTerminal().
|
inlinevirtual |
Reimplemented from G4VUIshell.
Definition at line 140 of file G4UItcsh.hh.
|
protected |
Definition at line 739 of file G4UItcsh.cc.
Referenced by GetCommandLineString().
|
protected |
Definition at line 713 of file G4UItcsh.cc.
Referenced by G4UItcsh(), and GetCommandLineString().
|
protected |
Definition at line 117 of file G4UItcsh.hh.
Referenced by ClearScreen().
|
protected |
Definition at line 106 of file G4UItcsh.hh.
Referenced by RestoreHistory(), and StoreHistory().
|
protected |
Definition at line 75 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 77 of file G4UItcsh.hh.
Referenced by NextCommand(), and PreviousCommand().
|
protected |
Definition at line 108 of file G4UItcsh.hh.
Referenced by MakePrompt(), NextCommand(), PreviousCommand(), RestoreHistory(), StoreHistory(), and ~G4UItcsh().
|
protected |
Definition at line 76 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 107 of file G4UItcsh.hh.
Referenced by NextCommand(), PreviousCommand(), RestoreHistory(), StoreHistory(), and ~G4UItcsh().
|
protected |
Definition at line 109 of file G4UItcsh.hh.
Referenced by GetCommandLineString(), NextCommand(), and PreviousCommand().
|
protected |
Definition at line 116 of file G4UItcsh.hh.
Referenced by G4UItcsh(), RestoreTerm(), and SetTermToInputMode().