Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
bb588d90
Commit
bb588d90
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Deuce's support for FLTK cross-platform C/C++ GUI framework.
Plus my modification to use -T (instead of -G) to disable GUI mode.
parent
63ac92e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/scfg.c
+23
-8
23 additions, 8 deletions
src/sbbs3/scfg/scfg.c
with
23 additions
and
8 deletions
src/sbbs3/scfg/scfg.c
+
23
−
8
View file @
bb588d90
...
...
@@ -79,6 +79,7 @@ int main(int argc, char **argv)
int
i
,
j
,
main_dflt
=
0
,
chat_dflt
=
0
;
char
str
[
129
];
char
exepath
[
MAX_PATH
+
1
];
BOOL
gui_mode
=
TRUE
;
BOOL
door_mode
=
FALSE
;
printf
(
"
\r\n
Synchronet Configuration Utility (%s) v%s Copyright 2002 "
...
...
@@ -102,8 +103,6 @@ int main(int argc, char **argv)
switch
(
toupper
(
argv
[
i
][
1
]))
{
case
'M'
:
/* Show free mem */
case
'N'
:
/* No EMS */
case
'T'
:
/* Windows/OS2 time slice API */
/* do nothing */
continue
;
case
'C'
:
uifc
.
mode
|=
UIFC_COLOR
;
...
...
@@ -132,11 +131,14 @@ int main(int argc, char **argv)
case
'E'
:
uifc
.
esc_delay
=
atoi
(
argv
[
i
]
+
2
);
break
;
case
'T'
:
gui_mode
=
FALSE
;
break
;
case
'I'
:
uifc
.
mode
|=
UIFC_IBM
;
break
;
case
'V'
:
#if !defined(__unix__)
#if !defined(__unix__)
&& !defined(_MSC_VER)
textmode
(
atoi
(
argv
[
i
]
+
2
));
#endif
break
;
...
...
@@ -148,16 +150,20 @@ int main(int argc, char **argv)
"-u = update all message base status headers
\r\n
"
"-h = don't update message base status headers
\r\n
"
"-d = run in standard input/output/door mode
\r\n
"
#ifdef USE_FLTK
"-t = use text/terminal user interface (disable GUI)
\r\n
"
#endif
"-c = force color mode
\r\n
"
#ifdef USE_CURSES
"-e# = set escape delay to #msec
\r\n
"
"-i = force IBM charset
\r\n
"
#endif
#if !defined(__unix__)
"-v# = set video mode to #
\r\n
"
#if !defined(__unix__)
&& !defined(_MSC_VER)
"-v# = set video mode to #
(default=auto)
\r\n
"
#endif
"-l# = set screen lines to #
\r\n
"
"-b# = set automatic back-up level (default=3 max=10)
\r\n
"
"-l# = set screen lines to # (default=auto-detect)
\r\n
"
"-b# = set automatic back-up level (default=%d)
\r\n
"
,
backup_level
);
exit
(
0
);
}
...
...
@@ -176,6 +182,15 @@ if(chdir(cfg.ctrl_dir)!=0) {
}
uifc
.
size
=
sizeof
(
uifc
);
#if defined(USE_FLTK)
if
(
!
door_mode
&&
gui_mode
==
TRUE
#if defined(__unix__)
&&
(
getenv
(
"DISPLAY"
)
!=
NULL
)
#endif
)
i
=
uifcinifltk
(
&
uifc
);
/* dialog */
else
#endif
#if defined(USE_DIALOG)
if
(
!
door_mode
)
i
=
uifcinid
(
&
uifc
);
/* dialog */
...
...
@@ -184,7 +199,7 @@ else
if
(
!
door_mode
)
i
=
uifcinic
(
&
uifc
);
/* curses */
else
#elif !defined(__unix__)
#elif !defined(__unix__)
&& !defined(_MSC_VER)
if
(
!
door_mode
)
i
=
uifcini
(
&
uifc
);
/* conio */
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment