summaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
authorIku <iku@yokattana.com>2017-02-07 10:43:01 +0100
committerIku <iku@yokattana.com>2017-02-07 10:47:14 +0100
commitaed24d7f90dc4769866f24ad01a46b2333949218 (patch)
tree5bf31d83d54b4aa5a168590ae72179e30604259f /src/macros.h
parentb21f7e879f097d6ba1154446820d6cb26e484c27 (diff)
Allow both backspace codes in any build
Backspace is represented differently on different operating systems. This was previously addressed with OS flags but even between Linux distributions and SSH clients the representation can differ. This commit allows both representations in any build, removing the hack flag.
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/macros.h b/src/macros.h
index be19abe..6b2e006 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -23,13 +23,8 @@
#define OKEY_DOWN 0x102
#define OKEY_UP 0x103
#define OKEY_DEL 0x14a
-
-#if ( defined(NETBSD) || defined(MACOSX) || defined(BSKEY_HACK) )
-#define OKEY_BS 0x7f
-#else
#define OKEY_BS 0x107
-#endif
-
+#define OKEY_BS2 0x7f // some BSDs, Linux distros, SSH/tmux configs
#define OKEY_HOME 0x106
#define OKEY_END 0x168
#define OKEY_PGUP 0x153