54 gClient->GetColorByName(
"#a0a0a0", pxl);
63 FILE *lunin = fopen(defhist.
Data(),
"rt");
68 while (fgets(histline, 256, lunin))
71 if (linecount > 500) {
73 while(--linecount > 0)
74 if (!fgets(histline, 256, lunin))
78 while (fgets(histline, 256, lunin)) {
79 histline[strlen(histline)-1] = 0;
82 if (++linecount > 500)
120 if (end > 0 && end !=
kNPOS) {
123 gClient->GetColorByName(
"#ff0000", pxl);
129 gClient->GetColorByName(
"#000000", pxl);
142 if (strlen(
string) > 1) {
149 sPrompt = ((
TRint*)
gROOT->GetApplication())->GetPrompt();
150 FILE *lunout = fopen(pathtmp.
Data(),
"a+t");
152 fputs(
Form(
"%s%s\n",sPrompt.
Data(),
string), lunout);
157 gROOT->ProcessLine(
string);
160 Gl_histadd((
char *)
string);
R__EXTERN TApplication * gApplication
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
virtual TGTextEntry * GetTextEntry() const
virtual void InsertEntry(TGString *s, Int_t id, Int_t afterID)
TGTextBuffer * fCommandBuf
void HandleCommand()
Handle command line from the "command" combo box.
TGCommandPlugin(const TGWindow *p, UInt_t w, UInt_t h)
TGCommandPlugin Constructor.
virtual Bool_t HandleTimer(TTimer *t)
Handle timer event.
virtual ~TGCommandPlugin()
Destructor.
void CheckRemote(const char *)
Check if actual ROOT session is a remote one or a local one.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void Layout()
Layout the elements of the composite frame.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual UInt_t GetDefaultHeight() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
virtual void SetText(TGString *newText)
Set new text in label.
const char * GetString() const
TGTextBuffer * GetBuffer() const
void Clear(Option_t *option="")
Clears up the text entry.
virtual Bool_t LoadFile(const char *fname, long startpos=0, long length=-1)
Load a file in the text view widget.
virtual void SetSelectBack(Pixel_t p)
set selected text background color
virtual void ShowBottom()
Show bottom of the page.
virtual void SetSelectFore(Pixel_t p)
set selected text color
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
const char * Data() const
TString & Remove(Ssiz_t pos)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual int GetPid()
Get process id.
virtual const char * HomeDirectory(const char *userName=0)
Return the user's home directory.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
virtual int Unlink(const char *name)
Unlink, i.e.
virtual Int_t RedirectOutput(const char *name, const char *mode="a", RedirectHandle_t *h=0)
Redirect standard output (stdout, stderr) to the specified file.
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
Handles synchronous and a-synchronous timer events.
virtual void TurnOn()
Add the timer to the system timer list.
void Reset()
Reset the timer.