aboutsummaryrefslogtreecommitdiffstats
path: root/accesslist-duplicates.capsman
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-03-16 23:36:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-03-16 23:36:38 +0100
commit213d326ad46dd115c3e6eaf673c4d384d89ec3c3 (patch)
tree2afa3ffef537e489297d68571945a63a678e282c /accesslist-duplicates.capsman
parent39d1027d697c09ec709a1b847a185ccff3b00540 (diff)
accesslist-duplicates: Read index from terminal inkey
Diffstat (limited to 'accesslist-duplicates.capsman')
-rw-r--r--accesslist-duplicates.capsman6
1 files changed, 3 insertions, 3 deletions
diff --git a/accesslist-duplicates.capsman b/accesslist-duplicates.capsman
index 633c771..a7ae099 100644
--- a/accesslist-duplicates.capsman
+++ b/accesslist-duplicates.capsman
@@ -21,9 +21,9 @@
/ caps-man access-list print where mac-address=$Mac;
:set Shown ($Shown, $Mac);
- :put "\nEnter to skip, numeric id to remove!";
- :local Remove [ :return ];
- :if ($Remove != "") do={
+ :put "\nNumeric id to remove, any key to skip!";
+ :local Remove ([ :terminal inkey ] - 48);
+ :if ($Remove >= 0 && $Remove <= 9) do={
:put ("Removing numeric id " . $Remove . "...\n");
/ caps-man access-list remove $Remove;
}