pySim-shell: change Prompt character to "#" after "verify_adm"

Let's change the prompt from ">" to "#" when the user gains admin
privilegs using verify_adm.

Related: OS#6640
Change-Id: I957b9df7b5069b6fce5bf958c94e8ffda833c77f
This commit is contained in:
Philipp Maier
2024-11-22 12:24:16 +01:00
parent 9f9e931378
commit 67c0fff15b
2 changed files with 13 additions and 4 deletions

View File

@@ -53,6 +53,7 @@ class RuntimeState:
# this is a dict of card identities which different parts of the code might populate,
# typically with something like ICCID, EID, ATR, ...
self.identity = {}
self.adm_verified = False
# make sure the class and selection control bytes, which are specified
# by the card profile are used
@@ -139,6 +140,7 @@ class RuntimeState:
if lchan_nr == 0:
continue
del self.lchan[lchan_nr]
self.adm_verified = False
atr = i2h(self.card.reset())
if cmd_app:
cmd_app.lchan = self.lchan[0]