diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-28 22:47:25 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-28 22:47:25 -0800 |
| commit | 000ef2dc58416cd09dc177ab863a2d6f1ab9ba28 (patch) | |
| tree | 2e5a6131f957ba85a6acb2f15f1614e9895f0927 /terminal.h | |
| parent | 8842891a7cad0c4d666eda994f291f8bd5b988c8 (diff) | |
Converted block comments to line comments
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -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" |
