From 62d8733dfbae0ee35a6d71a77409e8bc33f2b8f8 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sun, 8 Jul 2018 14:54:37 +0200 Subject: [PATCH] patch signal handlers for catpoint As subject says. Avoid to garble the terminal on an exit due to signal. Quite straightforward ;) HND KatolaZ -- [ ~.,_ Enzo Nicosia aka KatolaZ - Devuan -- Freaknet Medialab ] [ "+. katolaz [at] freaknet.org --- katolaz [at] yahoo.it ] [ @) http://kalos.mine.nu --- Devuan GNU + Linux User ] [ @@) http://maths.qmul.ac.uk/~vnicosia -- GPG: 0B5F062F ] [ (@@@) Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ ] Signed-off-by: Christoph Lohmann <20h@r-36.net> --- catpoint.c | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/catpoint.c b/catpoint.c index cfb882b..208685f 100644 --- a/catpoint.c +++ b/catpoint.c @@ -10,21 +10,51 @@ #include #include #include +#include + +char **p; /* the slides */ +int n; /* the number of slides */ + +void +cleanup(int s) +{ + int i; + for (i = 0; i