summaryrefslogtreecommitdiff
path: root/src/LYCharVals.h
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-09-24 22:26:00 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-09-24 22:26:00 +0200
commitc2ecaf87e462fd6600ce5ee6a29cb352de042714 (patch)
tree70f607a8c9bce7f0d40c559ec4112d3dd154eb50 /src/LYCharVals.h
downloadlynx-c2ecaf87e462fd6600ce5ee6a29cb352de042714.tar.gz
lynx-c2ecaf87e462fd6600ce5ee6a29cb352de042714.tar.bz2
lynx-c2ecaf87e462fd6600ce5ee6a29cb352de042714.zip
update
Diffstat (limited to 'src/LYCharVals.h')
-rw-r--r--src/LYCharVals.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/LYCharVals.h b/src/LYCharVals.h
new file mode 100644
index 0000000..43fac15
--- /dev/null
+++ b/src/LYCharVals.h
@@ -0,0 +1,34 @@
+#ifndef LYCHARVALS_H
+#define LYCHARVALS_H 1
+
+#ifndef HTUTILS_H
+#include <HTUtils.h>
+#endif
+
+/*
+ * Use integer values for character constants rather than '\octal' form, since
+ * not all compilers agree that those will fit in a character, even when cast.
+ */
+#ifndef CH_ESC
+#ifdef EBCDIC
+#define CH_DEL 0x07
+#define CH_ESC 0x27
+#define CH_ESC_PAR 0x27
+#define CH_HICTL 0x3f
+#define CH_NBSP 0x41
+#define CH_SHY 0xca
+#define LYCharINTERRUPT1 0x03 /* Control-C */
+#define LYCharINTERRUPT2 0x2f /* Control-G */
+#else /* EBCDIC */
+#define CH_ESC 0033
+#define CH_DEL 0177
+#define CH_ESC_PAR 0233
+#define CH_HICTL 0237
+#define CH_NBSP 0240
+#define CH_SHY 0255
+#define LYCharINTERRUPT1 0003 /* Control-C */
+#define LYCharINTERRUPT2 0007 /* Control-G */
+#endif /* EBCDIC */
+#endif /* CH_ESC */
+
+#endif /* LYCHARVALS_H */