Defines aliases:
- ls(path)
- edit(filename)
- dir(path)
- pwd()
- cd(path)
void edit(char *file)
{
if (!strcmp(
gSystem->GetName(),
"WinNT")) {
if ((
e = std::getenv(
"EDITOR")))
sprintf(s,
"start %s %s",
e, file);
else
sprintf(s, "start notepad %s", file);
} else {
if ((
e = std::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];
strcpy(s,(!strcmp(
gSystem->GetName(),
"WinNT")) ?
"dir " :
"ls -l ");
if (path) strcat(s,path);
}
const char *pwd()
{
return gSystem->WorkingDirectory();
}
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);
}
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
void Update() override
Update canvas pad buffers.
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.
virtual TText * GetLineWith(const char *text) const
- Author
- Rene Brun
Definition in file rootalias.C.