Duplicate tree-level description in CLI prompt
I am writing a tool that enables a user to traverse a tree-structured data set, which describes a set of roads, each road can have n
lanes.
The idle, starting prompt looks like this:
Jeep@CurrentlyDriving>
The user can then traverse to other roads using the DRIVE command
Jeep@CurrentlyDriving> DRIVE Road1
Jeep@CurrentlyDriving\Road1>
The user has the ability to change lanes using the LANE command.
The problem
Should the user use the LANE command (but only if he does so), I want to CLI to reflect that change, i.e, show that a lane has been changed since entering a certain road. i.e,
Jeep@CurrentlyDriving\Road1> LANE 1
Jeep@CurrentlyDriving\Road1????????>
What would be the best way to reflect the lane change (should be reflected where the ???`s are) without significantly 'damaging' the CLI structure?