Commit 1f2eef11 authored by deuce's avatar deuce
Browse files

echocfg now uses uifc32 and supports the I,M,C, and E command-line args

ala scfg
parent 3bc99dbf
......@@ -26,8 +26,9 @@ endif
#USE_DIALOG = 1 # Dialog vesrion of UIFC
#USE_FLTK = 1 # Use Windowed version
#USE_CURSES = 1 # Use *nix curses version
ifndef NO_CURSES
USE_CURSES = 1 # Curses version of UIFC
USE_UIFC32 = 1 # Curses version of UIFC
endif
ifdef DEBUG
......@@ -191,6 +192,17 @@ ifdef USE_CURSES
UIFC_OBJS += $(LIBODIR)/uifcc.o
endif
ifdef USE_UIFC32
CFLAGS += -DUSE_UIFC32
ifeq ($(os),qnx)
UIFC_LFLAGS += -lncurses
else
UIFC_LFLAGS += -lcurses
endif
UIFC_OBJS += $(LIBODIR)/uifc32.o
UIFC_OBJS += $(LIBODIR)/ciowrap.o
endif
#The following is needed for nspr support on Linux
ifeq ($(os),linux)
LFLAGS += -ldl
......
......@@ -132,6 +132,18 @@ int main(int argc, char **argv)
case 'D':
door_mode=TRUE;
break;
case 'I':
uifc.mode|=UIFC_IBM;
break;
case 'M': /* Monochrome mode */
uifc.mode|=UIFC_MONO;
break;
case 'C':
uifc.mode|=UIFC_COLOR;
break;
case 'E':
uifc.esc_delay=atoi(argv[i]+2);
break;
}
else
strcpy(str,argv[1]);
......@@ -180,15 +192,19 @@ int main(int argc, char **argv)
i=uifcinifltk(&uifc); /* dialog */
else
#endif
#ifdef USE_DIALOG
#if defined(USE_UIFC32)
if(!door_mode)
i=uifcini32(&uifc);
else
#elif defined(USE_DIALOG)
if(!door_mode)
i=uifcinid(&uifc);
else
#elif defined USE_CURSES
#elif defined(USE_CURSES)
if(!door_mode)
i=uifcinic(&uifc);
else
#elif !defined(__unix__)
#elif !defined(__unix__) && !defined(USE_UIFC32)
if(!door_mode)
i=uifcini(&uifc);
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment