diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-19 11:51:56 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-19 11:51:56 +0100 |
commit | 72b948fb1eaba1fc06de7325cc095f0889ce4d7f (patch) | |
tree | 4f53e793ddda10ca4ddcff9355a5c51953a389e6 /src/sciteco.h | |
parent | a54b49f5a8858ae6603d0db56019adc3ce0dff90 (diff) | |
download | sciteco-72b948fb1eaba1fc06de7325cc095f0889ce4d7f.tar.gz |
allow <CTRL/C> to be typed; aborts last typed char
* CTRL/C will be a command so it is important to be able to type it directly
* aborting character processing is important because it allows aborting infinite loops
* since the loop interruption currently relies on SIGINT handling, there is only limited
support for XCurses and GTK - CTRL/C has to be typed in the terminal window.
later support for input queue polling might be added
Diffstat (limited to 'src/sciteco.h')
-rw-r--r-- | src/sciteco.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sciteco.h b/src/sciteco.h index 92014e2..a03c1d5 100644 --- a/src/sciteco.h +++ b/src/sciteco.h @@ -18,6 +18,8 @@ #ifndef __SCITECO_H #define __SCITECO_H +#include <signal.h> + #include <glib.h> #include "interface.h" @@ -30,6 +32,8 @@ namespace Flags { extern gint64 ed; } +extern sig_atomic_t sigint_occurred; + extern gchar *cmdline; extern bool quit_requested; |