Exit on CTRL-C - thinglaunch - A simple command and password promtper for X11.
 (HTM) git clone git://bitreich.org/thinglaunch
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) LICENSE
       ---
 (DIR) commit 50920755d6cdfc642d76cecac2dbee9730af77c7
 (DIR) parent 88e9e929a0157489d4a6ef7b0096414b31e7c9d8
 (HTM) Author: Christoph Polcin <labs@polcin.de>
       Date:   Mon, 12 Mar 2018 11:49:45 +0100
       
       Exit on CTRL-C
       
       Signed-off-by: Christoph Polcin <labs@polcin.de>
       Signed-off-by: Christoph Lohmann <20h@r-36.net>
       
       Diffstat:
         M thinglaunch.c                       |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/thinglaunch.c b/thinglaunch.c
       @@ -415,6 +415,9 @@ keypress(XKeyEvent *keyevent)
                case XK_KP_Enter:
                        execcmd();
                        break;
       +        case XK_c:
       +                if (keyevent->state & ControlMask)
       +                        exit(0);
                default:
                        if (key_symbol > 255)
                                break;