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
f627877c
Commit
f627877c
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added xtrn program toggle option for XTRN_PAUSE (force hit-a-key prompt
after execution).
parent
a4004fcf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/scfgxtrn.c
+28
-2
28 additions, 2 deletions
src/sbbs3/scfg/scfgxtrn.c
with
28 additions
and
2 deletions
src/sbbs3/scfg/scfgxtrn.c
+
28
−
2
View file @
f627877c
...
...
@@ -912,6 +912,8 @@ online program name.
if
(
cfg
.
xtrn
[
i
]
->
misc
&
EVENTONLY
&&
cfg
.
xtrn
[
i
]
->
event
)
strcat
(
str
,
", Only"
);
sprintf
(
opt
[
k
++
],
"%-27.27s%s"
,
"Execute on Event"
,
str
);
sprintf
(
opt
[
k
++
],
"%-27.27s%s"
,
"Pause After Execution"
,
cfg
.
xtrn
[
i
]
->
misc
&
XTRN_PAUSE
?
"Yes"
:
"No"
);
sprintf
(
opt
[
k
++
],
"%-23.23s%-4s%s"
,
"BBS Drop File Type"
,
cfg
.
xtrn
[
i
]
->
misc
&
REALNAME
?
"(R)"
:
nulstr
,
dropfile
(
cfg
.
xtrn
[
i
]
->
type
,
cfg
.
xtrn
[
i
]
->
misc
));
...
...
@@ -1215,6 +1217,30 @@ to Yes.
uifc
.
changes
=
TRUE
;
}
break
;
case
14
:
k
=
cfg
.
xtrn
[
i
]
->
misc
&
XTRN_PAUSE
?
0
:
1
;
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
SETHELP
(
WHERE
);
/*
`Pause Screen After Execution:`
Set this option to ~Yes~ if you would like an automatic screen pause
(`[Hit a key]` prompt) to appear after the program executes.
This can be useful if the program displays information just before exiting
or you want to debug a program with a program not running correctly.
*/
uifc
.
savnum
=
4
;
k
=
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
k
,
0
,
"Pause After Execution"
,
opt
);
if
((
!
k
&&
!
(
cfg
.
xtrn
[
i
]
->
misc
&
XTRN_PAUSE
))
||
(
k
&&
cfg
.
xtrn
[
i
]
->
misc
&
XTRN_PAUSE
))
{
cfg
.
xtrn
[
i
]
->
misc
^=
XTRN_PAUSE
;
uifc
.
changes
=
TRUE
;
}
break
;
case
15
:
k
=
0
;
strcpy
(
opt
[
k
++
],
"None"
);
sprintf
(
opt
[
k
++
],
"%-15s %s"
,
"Synchronet"
,
"XTRN.DAT"
);
...
...
@@ -1278,7 +1304,7 @@ format, select the file format from the list.
}
}
break
;
case
1
5
:
case
1
6
:
k
=
0
;
strcpy
(
opt
[
0
],
"Node Directory"
);
strcpy
(
opt
[
1
],
"Start-up Directory"
);
...
...
@@ -1300,7 +1326,7 @@ You can have the data file created in the current Node Directory or the
cfg
.
xtrn
[
i
]
->
misc
|=
STARTUPDIR
;
uifc
.
changes
=
TRUE
;
}
break
;
case
1
6
:
case
1
7
:
while
(
1
)
{
k
=
0
;
if
(
cfg
.
xtrn
[
i
]
->
textra
)
...
...
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