SLtt_Ignore_Beep = 1; /* don't do that #*$@^! annoying visual beep! */
SLsmg_Display_Eight_Bit = 128; /* characters above this are printable */
SLtt_set_color(0, NULL, "default", "default");
+#if SLANG_VERSION >= 20000
+ SLutf8_enable(-1);
+#endif
#else
/* should come before initscr() so that ncurses 4.2 doesn't try to install
its own SIGWINCH handler */
#define unix
#endif /* unix */
-#include "slcurses.h"
+#include <slang.h> /* in addition to slcurses.h, we need slang.h for the version
+ number to test for 2.x having UTF-8 support in main.c */
+#include <slcurses.h>
#define KEY_DC SL_KEY_DELETE
#define KEY_IC SL_KEY_IC