Custom dynamic prompt

Hello folks. Is there the possibility to customize the ROOT prompt so that it shows a dynamic string? More precisely, I would be interested for it to display the current time, or the time of execution of the “root -l” process.
The documentation hints at the prompt to be customizable, and I have found a couple of links that suggest how to change it to a custom string, or even to add color. The SetPrompt method implies that it’s possible for it to include a single %d tag that shows the progressive number of commands issued: would it be possible to modify this %d variable to something different (just as an example, the output of TDatime::GetTime() )?

ROOT Version: 6.18/04
Platform: Kubuntu 19.10
Compiler: gcc 9.2.1-ubuntu2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

Patch welcome! :slight_smile: