aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-10-22 10:36:58 +0200
committerHarald Welte <laforge@osmocom.org>2023-10-24 15:10:01 +0200
commit237ddb5bb39eef5acfc80bda35875e7ce270f243 (patch)
treea842b1aa35bb5163b9dc2c183adb5fda4cd77b63 /pySim-shell.py
parent20650997e8f7652957b83116c16df7f3b180f3b4 (diff)
pySim-shell: Include current logical channel in prompt
Now that pySim-shell can switch between logical channels, let's state the currently used logical channel in the prompt. Change-Id: I45781a6fba205eeb4ac7f58d5cb642b7131bdd88 Related: OS#6230
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index 2f97389..022b276 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -291,7 +291,7 @@ class PysimApp(Cmd2Compat):
def update_prompt(self):
if self.lchan:
path_str = self.lchan.selected_file.fully_qualified_path_str(not self.numeric_path)
- self.prompt = 'pySIM-shell (%s)> ' % (path_str)
+ self.prompt = 'pySIM-shell (%02u:%s)> ' % (self.lchan.lchan_nr, path_str)
else:
if self.card:
self.prompt = 'pySIM-shell (no card profile)> '