2015-12-05 Chris Allegretta <chrisa@asty.org>
* src/nano.c (main) : key_defined() is an ncurses-ism. Add better checks for this. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5482 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
bb31118fcb
commit
c4a6725ad6
|
@ -1,3 +1,7 @@
|
||||||
|
2015-12-05 Chris Allegretta <chrisa@asty.org>
|
||||||
|
* src/nano.c (main) : key_defined() is an ncurses-ism. Add
|
||||||
|
better checks for this.
|
||||||
|
|
||||||
2015-12-05 Benno Schulenberg <bensberg@justemail.net>
|
2015-12-05 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/text.c: Fix compilation with --enable-tiny --enable-justify.
|
* src/text.c: Fix compilation with --enable-tiny --enable-justify.
|
||||||
* doc/man/{nano.1,rnano.1,nanorc.5}, doc/texinfo/nano.texi:
|
* doc/man/{nano.1,rnano.1,nanorc.5}, doc/texinfo/nano.texi:
|
||||||
|
|
|
@ -527,6 +527,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_LIB([$CURSES_LIB_NAME], use_default_colors, AC_DEFINE(HAVE_USE_DEFAULT_COLORS, 1, [Define this if your curses library has the use_default_colors() command.]))
|
AC_CHECK_LIB([$CURSES_LIB_NAME], use_default_colors, AC_DEFINE(HAVE_USE_DEFAULT_COLORS, 1, [Define this if your curses library has the use_default_colors() command.]))
|
||||||
|
AC_CHECK_LIB([$CURSES_LIB_NAME], key_defined, AC_DEFINE(HAVE_KEY_DEFINED, 1, [Define this if your curses library has the key_defined() command.]))
|
||||||
|
|
||||||
dnl Parse any configure options.
|
dnl Parse any configure options.
|
||||||
|
|
||||||
|
|
|
@ -2706,7 +2706,7 @@ int main(int argc, char **argv)
|
||||||
interface_color_pair[FUNCTION_TAG].bright = FALSE;
|
interface_color_pair[FUNCTION_TAG].bright = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(NANO_TINY) && !defined(USE_SLANG)
|
#if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED)
|
||||||
/* Ask ncurses for the key codes for Control+Left and Control+Right. */
|
/* Ask ncurses for the key codes for Control+Left and Control+Right. */
|
||||||
if ((int)tigetstr("kLFT5") > 0)
|
if ((int)tigetstr("kLFT5") > 0)
|
||||||
controlleft = key_defined(tigetstr("kLFT5"));
|
controlleft = key_defined(tigetstr("kLFT5"));
|
||||||
|
|
Loading…
Reference in New Issue