Browse Source

Temp fix for libncursesw

Need to fix up tool script to use ncursesx6-config
master
cancel 6 years ago
parent
commit
2004b2cb37
  1. 2
      tool
  2. 4
      tui_main.c

2
tool

@ -254,7 +254,7 @@ build_target() {
add cc_flags -D_POSIX_C_SOURCE=200809L add cc_flags -D_POSIX_C_SOURCE=200809L
;; ;;
esac esac
add libraries -lmenu -lncurses add libraries -lmenuw -lncursesw
# If we wanted wide chars, use -lncursesw on Linux, and still just # If we wanted wide chars, use -lncursesw on Linux, and still just
# -lncurses on Mac. # -lncurses on Mac.
;; ;;

4
tui_main.c

@ -1725,8 +1725,8 @@ int main(int argc, char** argv) {
// Enable UTF-8 by explicitly initializing our locale before initializing // Enable UTF-8 by explicitly initializing our locale before initializing
// ncurses. Only needed (maybe?) if using libncursesw/wide-chars or UTF-8. // ncurses. Only needed (maybe?) if using libncursesw/wide-chars or UTF-8.
// Using it unguarded will mess up box drawing chars in Linux virtual // Using it unguarded will mess up box drawing chars in Linux virtual
// consoles. // consoles unless using libncursesw.
// setlocale(LC_ALL, ""); setlocale(LC_ALL, "");
// Initialize ncurses // Initialize ncurses
initscr(); initscr();
// Allow ncurses to control newline translation. Fine to use with any modern // Allow ncurses to control newline translation. Fine to use with any modern

Loading…
Cancel
Save