about summary refs log tree commit diff stats
path: root/src/LYUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYUtils.h')
-rw-r--r--src/LYUtils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/LYUtils.h b/src/LYUtils.h
index 4573192e..6d78a076 100644
--- a/src/LYUtils.h
+++ b/src/LYUtils.h
@@ -34,6 +34,10 @@
 
 #define LYIsPipeCommand(s) ((s)[0] == '|')
 
+#define LYCharINTERRUPT1 (FROMASCII(3)) /* Control-C */
+#define LYCharINTERRUPT2 (FROMASCII(7)) /* Control-G */
+#define LYCharIsINTERRUPT(ch)	((ch) == LYCharINTERRUPT1 || ch == LYCharINTERRUPT2)
+
 #if defined(DOSPATH) || defined(__EMX__)
 #define LYIsPathSep(ch) ((ch) == '/' || (ch) == '\\')
 #else