[ROOT] Setting a too long prompt.

From: Brett Viren (bv@bnl.gov)
Date: Mon Jul 08 2002 - 22:36:40 MEST


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