Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
bb43c70b320f8441113004bb0344309755997df7...f0b0e4efae9cee1d5bc79d4cc1ce2faab912d3ae
Commits (1)
Give the timed event config menu the left/right arrow key treatment
· f0b0e4ef
Rob Swindell
authored
Apr 28, 2022
Allows quick traversing through timed events (e.g. for comparison of settings).
f0b0e4ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/sbbs3/scfg/scfgxtrn.c
src/sbbs3/scfg/scfgxtrn.c
+16
-1
No files found.
src/sbbs3/scfg/scfgxtrn.c
View file @
f0b0e4ef
...
...
@@ -553,13 +553,28 @@ void tevents_cfg()
"external program that performs some type of automated function on the
\n
"
"system. Use this menu to configure how and when this event will be
\n
"
"executed.
\n
"
"
\n
"
"The left and right arrow keys may be used to cycle through events.
\n
"
;
sprintf
(
str
,
"%s Timed Event"
,
cfg
.
event
[
i
]
->
code
);
switch
(
uifc
.
list
(
WIN_SAV
|
WIN_ACT
|
WIN_L2R
|
WIN_BOT
,
0
,
0
,
70
,
&
dfltopt
,
0
uifc_winmode_t
wmode
=
WIN_SAV
|
WIN_ACT
|
WIN_L2R
|
WIN_BOT
|
WIN_EXTKEYS
;
if
(
i
>
0
)
wmode
|=
WIN_LEFTKEY
;
if
(
i
+
1
<
cfg
.
total_events
)
wmode
|=
WIN_RIGHTKEY
;
switch
(
uifc
.
list
(
wmode
,
0
,
0
,
70
,
&
dfltopt
,
0
,
str
,
opt
))
{
case
-
1
:
done
=
1
;
break
;
case
-
CIO_KEY_LEFT
-
2
:
if
(
i
>
0
)
i
--
;
break
;
case
-
CIO_KEY_RIGHT
-
2
:
if
(
i
+
1
<
cfg
.
total_events
)
i
++
;
break
;
case
0
:
SAFECOPY
(
str
,
cfg
.
event
[
i
]
->
code
);
uifc
.
helpbuf
=
...
...