login

<     >

2020-05-01 16:42:32 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

add special cases USR1/USR2 commands

diff --git a/README b/README
index dafea70..0107aab 100644
--- a/README
+++ b/README
@@ -32,6 +32,7 @@ Interaction
     ---       ------
     q         Quit isv
     j/k       Move selection cursor down/up
+    1/2       Send USR1/USR2 signal to service
     <UPPER>   Send command to selected service (e.g. 'U' -> 'up')
 
 That is,  to control a  service, we  first move the  cursor (<>) using  j/k to

diff --git a/isv.c b/isv.c
index 7506f61..3ef62b1 100644
--- a/isv.c
+++ b/isv.c
@@ -266,6 +266,9 @@ main(int argc, char *argv[])
                 case 'k':
                     selection = (selection + nservices + 1) % (nservices + 1) - 1;
                     break;
+                case '1': case '2': /* non-alphabetic cmds can't be uppercase */
+                    send_command(base_dir, nservices, selection, byte);
+                    break;
                 default:
                     got_cmd = false;
                 }