Hi Brett, Why not use: ...->SetPrompt( gSystem->BaseName(argv[0]) ); That should give you what you want in a system independent way? Regards, Maarten. On Mon, 2002-07-08 at 16:36, Brett Viren wrote: > Hi all, > > A very tiny, but anoying problem: We call TRint::SetPrompt() with > argv[0] which contains the entire path leading up to the location > where the executable is installed. When it gets installed to a path > which is very long I get: > > Error in <TRint::SetPrompt>: newPrompt too long (> 55 characters) > > and the prompt stays "root [XX] ". > > > It would be easy enough to fix TRint::SetPrompt() by inserting > something like the following at the very beginning: > > const char* chptr = newPrompt + strlen(newPrompt); > while (chptr > newPrompt && *chptr != '/') --chptr; > newPrompt = chptr; > > > Of course, we can do similarly just before calling SetPrompt(), but I > guess we are not the only ones this effects. > > -Brett.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:59 MET