]> git.wh0rd.org Git - nano.git/commitdiff
- nano.h: - Add support for HP-UX's curses, which doesn't seem to support KEY_HOME...
authorChris Allegretta <chrisa@asty.org>
Sat, 14 Sep 2002 21:16:40 +0000 (21:16 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 14 Sep 2002 21:16:40 +0000 (21:16 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
nano.h

index 234cef5415a4048f7b52ac99ac5714e0ffac67bc..e811e41b0af910357e7b712fc1df0aa1ab77311e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -111,6 +111,8 @@ CVS code -
        - Change search toggles for case sensitive searching and regexp
          searching to M-C and M-R, respectively. (DLR; suggested by
          Chris)
+       - Add support for HP-UX's curses, which doesn't seem to support
+         KEY_HOME and KEY_END.
 - nanorc.sample:
        - Fix the c-file regex for all caps words to be extended regex
          format ({} instead of \{\}) (found by DLR).
diff --git a/nano.h b/nano.h
index 8fcb846dc348658a779bd3b75d3f099068001bd4..e16a941cda66be2d527e335db1909bca158fdfb3 100644 (file)
--- a/nano.h
+++ b/nano.h
 # endif
 #endif
 
+/* HP-UX 10 & 11 do not seem to support KEY_HOME and KEY_END */
+#ifndef KEY_HOME
+#define KEY_HOME -1
+#endif /* KEY_HOME */
+
+#ifndef KEY_END
+#define KEY_END -1
+#endif /* KEY_END */
+
+
 #define VERMSG "GNU nano " VERSION
 
 #if defined(DISABLE_WRAPPING) && defined(DISABLE_JUSTIFY)