void edit(char *file)
{
if ((
e = getenv(
"EDITOR")))
sprintf(s,
"start %s %s",
e, file);
else
sprintf(s, "start notepad %s", file);
} else {
if ((
e = getenv(
"EDITOR")))
sprintf(s,
"%s %s",
e, file);
else
sprintf(s, "xterm -e vi %s &", file);
}
}
void ls(char *path=0)
{
char s[256];
strcpy(s, (!strcmp(
gSystem->
GetName(),
"WinNT")) ?
"dir /w " :
"ls ");
if (path) strcat(s,path);
}
void dir(char *path=0)
{
char s[256];
if (path) strcat(s,path);
}
const char *pwd()
{
}
const char *cd(char *path=0)
{
if (path)
return pwd();
}
void bexec2(char *macro)
{
printf("in bexec dir=%s\n",pwd());
if (
gROOT->IsBatch()) printf(
"Processing benchmark: %s\n",macro);
}
R__EXTERN TSystem * gSystem
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
void Update() override
Update canvas pad buffers.
const char * GetName() const override
Returns name of object.
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
TObject * GetPrimitive(const char *name) const override
Get primitive.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * GetLineWith(const char *text) const
Get Pointer to first containing string text in this pavetext.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual Bool_t ChangeDirectory(const char *path)
Change directory.
virtual const char * WorkingDirectory()
Return working directory.
Base class for several text objects.