diff --git a/configure.ac b/configure.ac index d489879..3f70214 100644 --- a/configure.ac +++ b/configure.ac @@ -80,15 +80,15 @@ case $host_os in esac dnl Checks for libraries. -AC_CHECK_LIB(ncurses, initscr) +AC_CHECK_LIB(ncursesw, initscr) AC_CHECK_LIB(form, new_form) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([limits.h stdlib.h string.h unistd.h curses.h form.h ncurses/form.h math.h sys/param.h sys/socket.h sys/time.h sys/ioctl.h arpa/inet.h netinet/in.h]) -if test "$ac_cv_lib_ncurses_initscr" != "yes"; then - AC_MSG_ERROR([ncurses library not found. ncurses is required for $PACKAGE_NAME.]) +if test "$ac_cv_lib_ncursesw_initscr" != "yes"; then + AC_MSG_ERROR([ncursesw library not found. ncursesw is required for $PACKAGE_NAME.]) fi if test "$ac_cv_header_curses_h" != "yes"; then AC_MSG_ERROR([ncurses development files not found. ncurses is required for $PACKAGE_NAME.]) diff --git a/src/graph.cpp b/src/graph.cpp index a43087b..b2c1e7a 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -101,11 +101,11 @@ void Graph::print(Window& window, int x, int y) unsigned long long restOfTraffic = *r - lowerLimit; if(restOfTraffic >= trafficPerLine) - window.print('#'); + window.print("█"); else if(restOfTraffic >= trafficPerLine * 7 / 10) - window.print('|'); + window.print("▟"); else if(restOfTraffic >= trafficPerLine * 3 / 10) - window.print('.'); + window.print("▗"); else window.print(' '); } diff --git a/src/main.cpp b/src/main.cpp index e84777d..447fa2f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,7 @@ #include #include +#include using namespace std; @@ -35,6 +36,7 @@ static void signalHandler(int signal); int main(int argc, char *argv[]) { + setlocale(LC_ALL, ""); App application; m_application = &application;