aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/terminal.h b/terminal.h
index ab176b8..b54e022 100644
--- a/terminal.h
+++ b/terminal.h
@@ -1,11 +1,11 @@
-/*
- * terminal.h
- * Copyright 2019 Bruce Hill
- * Released under the MIT License
- *
- * Definitions of some basic terminal stuff, like reading keys and some
- * terminal escape sequences.
- */
+//
+// terminal.h
+// Copyright 2019 Bruce Hill
+// Released under the MIT License
+//
+// Definitions of some basic terminal stuff, like reading keys and some
+// terminal escape sequences.
+//
#ifndef FILE__TERMINAL_H
#define FILE__TERMINAL_H
@@ -48,22 +48,22 @@ typedef enum {
#define MOD_SHIFT (1 << (MOD_BITSHIFT + 3))
// Overlapping key codes:
-#define KEY_CTRL_BACKTICK 0x00 /* clash with ^@ */
-#define KEY_CTRL_2 0x00 /* clash with ^@ */
-#define KEY_BACKSPACE 0x08 /* clash with ^H */
-#define KEY_TAB 0x09 /* clash with ^I */
-#define KEY_ENTER 0x0D /* clash with ^M */
-#define KEY_ESC 0x1B /* clash with ^[ */
-#define KEY_CTRL_3 0x1B /* clash with ^[ */
-#define KEY_CTRL_4 0x1C /* clash with ^\ */
-#define KEY_CTRL_5 0x1D /* clash with ^] */
-#define KEY_CTRL_TILDE 0x1E /* clash with ^^ */
-#define KEY_CTRL_6 0x1E /* clash with ^^ */
-#define KEY_CTRL_7 0x1F /* clash with ^_ */
-#define KEY_CTRL_SLASH 0x1F /* clash with ^_ */
+#define KEY_CTRL_BACKTICK 0x00 // clash with ^@
+#define KEY_CTRL_2 0x00 // clash with ^@
+#define KEY_BACKSPACE 0x08 // clash with ^H
+#define KEY_TAB 0x09 // clash with ^I
+#define KEY_ENTER 0x0D // clash with ^M
+#define KEY_ESC 0x1B // clash with ^[
+#define KEY_CTRL_3 0x1B // clash with ^[
+#define KEY_CTRL_4 0x1C // clash with ^\
+#define KEY_CTRL_5 0x1D // clash with ^]
+#define KEY_CTRL_TILDE 0x1E // clash with ^^
+#define KEY_CTRL_6 0x1E // clash with ^^
+#define KEY_CTRL_7 0x1F // clash with ^_
+#define KEY_CTRL_SLASH 0x1F // clash with ^_
#define KEY_SPACE 0x20
#define KEY_BACKSPACE2 0x7F
-#define KEY_CTRL_8 0x7F /* clash with 'BACKSPACE2' */
+#define KEY_CTRL_8 0x7F // clash with 'BACKSPACE2'
// Terminal escape sequences:
#define T_WRAP "7"