Commit 0ba2ad74 authored by Peter Pentchev's avatar Peter Pentchev

Drop the HAVE_NCURSES config setting, autodetected at run time.

parent 987eaf78
......@@ -10,6 +10,8 @@ Change log for hexer, the multi-view binary editor
make(1) implementations that do not pass CPPFLAGS.
- deprecate config.* except for config.posix and config.linux
- clarify a README comment about the unpacked subdirectory
- drop the HAVE_NCURSES configuration setting, the support for
changing the foreground and background color is autodeteted
0.2.3 2015/12/10
- build with large file support on Linux
......
......@@ -7,7 +7,6 @@
#define HAVE_STRCASECMP 0
#define HAVE_SIGTYPE_INT 0
#define HAVE_MEMMOVE 0
#define HAVE_NCURSES 0
#define HAVE_USLEEP 0
#define HAVE_FLOAT_H 0
#define HAVE_ALLOCA_H 0
......
......@@ -7,7 +7,6 @@
#define HAVE_STRCASECMP 1
#define HAVE_SIGTYPE_INT 0
#define HAVE_MEMMOVE 1
#define HAVE_NCURSES 0
#define HAVE_USLEEP 1
#define HAVE_FLOAT_H 1
#define HAVE_ALLOCA_H 0
......
......@@ -5,7 +5,6 @@
#define HAVE_STRCASECMP 1
#define HAVE_SIGTYPE_INT 0
#define HAVE_MEMMOVE 1
#define HAVE_NCURSES 1
#define HAVE_USLEEP 1
#define HAVE_FLOAT_H 1
#define HAVE_ALLOCA_H 1
......
......@@ -5,7 +5,6 @@
#define HAVE_STRCASECMP 1
#define HAVE_SIGTYPE_INT 0
#define HAVE_MEMMOVE 1
#define HAVE_NCURSES 1
#define HAVE_USLEEP 1
#define HAVE_FLOAT_H 1
#define HAVE_ALLOCA_H 0
......
......@@ -7,7 +7,6 @@
#define HAVE_STRCASECMP 1
#define HAVE_SIGTYPE_INT 0
#define HAVE_MEMMOVE 0
#define HAVE_NCURSES 0
#define HAVE_USLEEP 1
#define HAVE_FLOAT_H 0
#define HAVE_ALLOCA_H 1
......
......@@ -88,10 +88,6 @@
#define USE_SET 1
#endif
#ifndef HAVE_NCURSES
#define HAVE_NCURSES 0
#endif
#include "defs.h"
#include "tio.h"
#include "util.h"
......@@ -1719,11 +1715,7 @@ tio_have_color(void)
/* returns a non-zero value if color is available, 0 else.
*/
{
#if !HAVE_NCURSES
return 0;
#else
return !!t_setab && !!t_setaf;
#endif
}
/* tio_have_color */
......@@ -1740,9 +1732,7 @@ tio_set_fg(int color)
/* set the foreground color to `color'.
*/
{
#if HAVE_NCURSES
tio_command(t_setaf, 1, color);
#endif
t_fg = color;
}
/* tio_set_af */
......@@ -1752,9 +1742,7 @@ tio_set_bg(int color)
/* set the background color to `color'.
*/
{
#if HAVE_NCURSES
tio_command(t_setab, 1, color);
#endif
t_bg = color;
}
/* tio_set_ab */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment