cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 5d11a5c7ba818cd496f62872c9a435e316b34934
parent 4818da85b0fb01ff3e3b9e060fbc059d8630d9c1
Author: Alexander Bachler Jansson <alexander.bachler.jansson@gmail.com>
Date:   Tue,  5 Dec 2017 19:01:54 +0100

Added quit button

Diffstat:
Mcnping.c | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/cnping.c b/cnping.c @@ -97,7 +97,16 @@ void * PingSend( void * r ) -void HandleKey( int keycode, int bDown ){} +void HandleKey( int keycode, int bDown ) +{ + switch( keycode ) + { + case 'q': + exit(0); + break; + + } +} void HandleButton( int x, int y, int button, int bDown ){} void HandleMotion( int x, int y, int mask ){} void HandleDestroy() { exit(0); }