1. Using iptraf-ng 1.1.2 on Arch Linux x86_64, window resize seems
broken. A segmentation fault happens when the terminal size changes.
But probably you are aware of this bug :-/
2. Arch Linux uses ncurses compiled with wide character support by
default but with symlinks from libncursesw.so to libncurses.so for
compatibility. But only `ncursesw5-config' is installed. Would be
great to improve configure.ac:
---8<-- configure.ac ---------------------------------------------------
dnl checks for libraries ncurses[5,6]
dnl removed ncursesw[5,6]; iptraf-ng does not use it
AC_CHECK_PROG([ncurses5_config], [ncurses5-config], [yes])
AC_CHECK_PROG([ncurses6_config], [ncurses6-config], [yes])
if test "x$ncurses6_config" = "xyes"; then
libncurses_CFLAGS=$("ncurses6-config" --cflags)
libncurses_LIBS=$("ncurses6-config" --libs)
elif test "x$ncurses5_config" = "xyes"; then
libncurses_CFLAGS=$("ncurses5-config" --cflags)
libncurses_LIBS=$("ncurses5-config" --libs)
else
AC_MSG_ERROR([Install ncurses5-dev or ncurses6-dev])
fi
---8<-------------------------------------------------------------------
Basically, Arch Linux have only `ncursesw5-config' so check for its
presence and use it. So, could be possible to add?:
AC_CHECK_PROG([ncursesw5_config], [ncursesw5-config], [yes])
AC_CHECK_PROG([ncursesw6_config], [ncursesw6-config], [yes])
And adding the elif branches using it in the same way would suffice.
Just suggesting..., any feedback will be welcomed :-)
Best regards and thanks for such a great project!
--
Ricardo (
http://r.untroubled.be/)