+12
-2
@@ -2,15 +2,17 @@
|
||||
#define DEFINE_H_
|
||||
|
||||
#define CTRL_KEY(k) ((k) & 0x1f)
|
||||
#define ALT(k) ((k) | 0x200) // set bit 9 to mark as Option combo
|
||||
|
||||
|
||||
#define ESCAPE '\x1b'
|
||||
#define CURSOR_TOP_LEFT "\x1b[H"
|
||||
#define HIDE_CURSOR "\x1b[?25l"
|
||||
#define SHOW_CURSOR "\x1b[?25h"
|
||||
#define ERASE_END_LINE "\x1b[K"
|
||||
#define TAB "\x9"
|
||||
#define TAB "\t"
|
||||
#define SPACE "\x20"
|
||||
// #define APP_DEBUG
|
||||
#define APP_DEBUG
|
||||
|
||||
enum editorKey_e {
|
||||
BACKSPACE = 127,
|
||||
@@ -29,4 +31,12 @@ enum editorKey_e {
|
||||
|
||||
#define BELUGA_VERSION "2.4"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define CLIPBOARD_COPY_CMD "pbcopy"
|
||||
#define CLIPBOARD_PASTE_CMD "pbpaste"
|
||||
#else
|
||||
#define CLIPBOARD_COPY_CMD "xclip -selection clipboard"
|
||||
#define CLIPBOARD_PASTE_CMD "xclip -selection clipboard -o"
|
||||
#endif
|
||||
|
||||
#endif // DEFINE_H_
|
||||
|
||||
Reference in New Issue
Block a user