configure: add tui by default
authorNiki Roo <niki@nikiroo.be>
Wed, 13 Mar 2019 21:36:33 +0000 (22:36 +0100)
committerNiki Roo <niki@nikiroo.be>
Wed, 13 Mar 2019 21:36:33 +0000 (22:36 +0100)
configure.sh

index e054bf646ad3b7fbcafdbb333bf817217bb45bf0..2d3e2fecc0d8beadb1dd0ffb7b460f913b64aad7 100755 (executable)
@@ -6,11 +6,11 @@ PROGS="java javac jar make sed"
 
 IMG=be/nikiroo/utils/ui/ImageUtilsAwt
 CLI=be/nikiroo/fanfix/reader/cli/CliReader
-TUI=
+TUI=be/nikiroo/fanfix/reader/tui/TuiReader
 GUI=be/nikiroo/fanfix/reader/ui/GuiReader
 JIMG=
 JCLI=
-JTUI=
+JTUI="-C bin/ jexer"
 JGUI=
 
 valid=true
@@ -34,12 +34,8 @@ while [ "$*" != "" ]; do
        --cli) #=no     Disable CLI support (System.out)
                [ "$val" = no -o "$val" = false ] && CLI= && JCLI=
        ;;
-       --tui) #=yes    Enable TUI support (Jexer, experimental)
+       --tui) #=no     Enable TUI support (Jexer)
                [ "$val" = no -o "$val" = false ] && TUI= && JTUI=
-               if [ "$val" = yes -o "$val" = true ]; then
-                       TUI=be/nikiroo/fanfix/reader/tui/TuiReader
-                       JTUI="-C bin/ jexer"
-               fi
        ;;
        --gui) #=no     Disable GUI support (Swing)
                [ "$val" = no -o "$val" = false ] && GUI= && JGUI=