57 while ((newCommand.length() > 0) && (newCommand[
G4int(newCommand.length() - 1)] ==
'_')) {
59 newCommand.erase(newCommand.length() - 1);
66 newCommand.append(newLine);
G4GLOB_DLL std::ostream G4cout
G4UIcsh(const G4String &prompt="%s> ")
G4String GetCommandLineString(const char *msg=nullptr) override
virtual void MakePrompt(const char *msg=nullptr)
G4VUIshell(const G4String &prompt="> ")
void rstrip(G4String &str, char ch=' ')
Remove trailing characters from string.
std::istream & readline(std::istream &is, G4String &str, G4bool skipWhite=true)
Read characters into a G4String from an input stream until end-of-line.