summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--im.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/im.h b/im.h
index 3ded146..e3b2b65 100644
--- a/im.h
+++ b/im.h
@@ -12,7 +12,10 @@
#include "boshiamy.h"
#define ENTER_KEY 0x0D
+//Two different backspace keys are defined, to disable one set both macros to
+//the one you desire
#define BACKSPACE_KEY 0x7F
+#define BACKSPACE_KEY_2 0x08
//setting it to the actual escape character interferes with arrow keys and
//whatnot
//#define ESCAPE_KEY 0x1B
@@ -141,6 +144,7 @@ int update_im_state(char input, char * output) {
clear_im_buffer();
return tmp;
break;
+ case BACKSPACE_KEY_2:
//backspace
case BACKSPACE_KEY:
if (im_buffer_pos > 0) {