aboutsummaryrefslogtreecommitdiff
path: root/contrib/less/less.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/less.h')
-rw-r--r--contrib/less/less.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/less/less.h b/contrib/less/less.h
index bf8b803649af..8f0d2d85e83c 100644
--- a/contrib/less/less.h
+++ b/contrib/less/less.h
@@ -149,6 +149,8 @@ void free();
#define IS_DIGIT(c) ((c) >= '0' && (c) <= '9')
#endif
+#define IS_CSI_START(c) ((c) == ESC || ((unsigned char)(c)) == CSI)
+
#ifndef NULL
#define NULL 0
#endif
@@ -424,6 +426,7 @@ struct textlist
#endif /* IS_EBCDIC_HOST */
#define ESC CONTROL('[')
+#define CSI ((unsigned char)'\233')
#if _OSK_MWC32
#define LSIGNAL(sig,func) os9_signal(sig,func)