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
3fd254d2
Commit
3fd254d2
authored
2 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic improvements to the Setup Wizard, especial for > 80 col screens
parent
e2a01274
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/scfg/scfg.c
+7
-14
7 additions, 14 deletions
src/sbbs3/scfg/scfg.c
src/sbbs3/scfg/scfgsys.c
+1
-1
1 addition, 1 deletion
src/sbbs3/scfg/scfgsys.c
with
8 additions
and
15 deletions
src/sbbs3/scfg/scfg.c
+
7
−
14
View file @
3fd254d2
...
@@ -155,13 +155,13 @@ void sort_dirs(int libnum)
...
@@ -155,13 +155,13 @@ void sort_dirs(int libnum)
void
wizard_msg
(
const
char
*
text
)
void
wizard_msg
(
const
char
*
text
)
{
{
uifc
.
showbuf
(
WIN_HLP
|
WIN_DYN
|
WIN_L2R
,
2
,
2
,
8
0
,
20
,
"Setup Wizard"
,
text
,
NULL
,
NULL
);
uifc
.
showbuf
(
WIN_HLP
|
WIN_DYN
|
WIN_L2R
,
2
,
2
,
7
8
,
20
,
"Setup Wizard"
,
text
,
NULL
,
NULL
);
}
}
static
bool
abort_wizard
(
void
)
static
bool
abort_wizard
(
void
)
{
{
char
*
opt
[]
=
{
"Abort"
,
"Restart"
,
NULL
};
char
*
opt
[]
=
{
"Abort"
,
"Restart"
,
NULL
};
wizard_msg
(
"You can abort the Setup Wizard or restart from the beginning."
);
wizard_msg
(
"You can abort the Setup Wizard
now
or restart from the beginning."
);
return
uifc
.
list
(
WIN_SAV
|
WIN_L2R
|
WIN_NOBRDR
,
0
,
10
,
0
,
NULL
,
NULL
return
uifc
.
list
(
WIN_SAV
|
WIN_L2R
|
WIN_NOBRDR
,
0
,
10
,
0
,
NULL
,
NULL
,
"Abort Setup Wizard"
,
opt
)
==
0
;
,
"Abort Setup Wizard"
,
opt
)
==
0
;
}
}
...
@@ -195,8 +195,7 @@ void cfg_wizard(void)
...
@@ -195,8 +195,7 @@ void cfg_wizard(void)
"Press ~ ENTER ~ to advance through the setup wizard or ~ ESC ~ to abort
\n
"
"Press ~ ENTER ~ to advance through the setup wizard or ~ ESC ~ to abort
\n
"
"or restart the wizard."
"or restart the wizard."
);
);
if
(
uifc
.
list
(
WIN_SAV
|
WIN_L2R
|
WIN_NOBRDR
,
0
,
12
,
0
,
NULL
,
NULL
if
(
uifc
.
list
(
WIN_SAV
|
WIN_L2R
|
WIN_NOBRDR
,
0
,
12
,
0
,
NULL
,
NULL
,
NULL
,
opt
)
==
-
1
)
,
"Continue"
,
opt
)
==
-
1
)
continue
;
continue
;
if
(
edit_sys_name
(
true
)
<
1
)
if
(
edit_sys_name
(
true
)
<
1
)
continue
;
continue
;
...
@@ -253,18 +252,12 @@ void cfg_wizard(void)
...
@@ -253,18 +252,12 @@ void cfg_wizard(void)
"required to run Synchronet - the ultimate choice in BBS software for the
\n
"
"required to run Synchronet - the ultimate choice in BBS software for the
\n
"
"Internet Age.
\n
"
"Internet Age.
\n
"
"
\n
"
"
\n
"
"
\n
"
"
\n
"
"
\n
"
"
\n
"
"
\n
"
"
\n
"
"
\n
"
"
\n
"
"Thank you for choosing Synchronet,
\n
"
"Thank you for choosing Synchronet,
\n
"
" Rob Swindell (digital man)
\n
"
"
\n
"
"Rob Swindell (digital man)
\n
"
);
);
if
(
!
uifc
.
confirm
(
"Save Changes"
))
char
*
save_opts
[]
=
{
"Save Changes"
,
"Discard Changes"
,
NULL
};
if
(
uifc
.
list
(
WIN_SAV
|
WIN_L2R
|
WIN_NOBRDR
,
0
,
14
,
0
,
NULL
,
NULL
,
NULL
,
save_opts
)
!=
0
)
continue
;
continue
;
if
(
strcmp
(
saved_cfg
.
sys_pass
,
cfg
.
sys_pass
)
!=
0
)
if
(
strcmp
(
saved_cfg
.
sys_pass
,
cfg
.
sys_pass
)
!=
0
)
reencrypt_keys
(
saved_cfg
.
sys_pass
,
cfg
.
sys_pass
);
reencrypt_keys
(
saved_cfg
.
sys_pass
,
cfg
.
sys_pass
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/scfg/scfgsys.c
+
1
−
1
View file @
3fd254d2
...
@@ -231,7 +231,7 @@ int edit_sys_timezone(bool wiz)
...
@@ -231,7 +231,7 @@ int edit_sys_timezone(bool wiz)
;
;
if
(
wiz
)
if
(
wiz
)
mode
=
wiz_help
(
uifc
.
helpbuf
);
mode
=
wiz_help
(
uifc
.
helpbuf
);
i
=
uifc
.
list
(
mode
,
0
,
10
,
0
,
&
i
,
0
i
=
uifc
.
list
(
mode
,
0
,
9
,
0
,
&
i
,
0
,
"U.S. Time Zone"
,
opt
);
,
"U.S. Time Zone"
,
opt
);
if
(
i
==-
1
)
if
(
i
==-
1
)
return
-
1
;
return
-
1
;
...
...
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