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
Commits
8d98cb08
Commit
8d98cb08
authored
Jan 25, 2002
by
rswindell
Browse files
Fixed line counter/pause.
parent
79e2d6f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/uifc/uifcx.c
src/uifc/uifcx.c
+5
-2
No files found.
src/uifc/uifcx.c
View file @
8d98cb08
...
...
@@ -118,6 +118,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar
int
i
,
j
,
opts
;
int
optnumlen
;
int
yesno
=
0
;
int
lines
;
for
(
opts
=
0
;
opts
<
MAX_OPTS
;
opts
++
)
if
(
option
[
opts
][
0
]
==
0
)
...
...
@@ -143,9 +144,11 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar
printf
(
"%s? "
,
title
);
}
else
{
printf
(
"
\n
[%s]
\n
"
,
title
);
lines
=
2
;
for
(
i
=
0
;
i
<
opts
;
i
++
)
{
printf
(
"%*d: %s
\n
"
,
optnumlen
,
i
+
1
,
option
[
i
]);
if
(
i
&&
!
(
i
%
(
api
->
scrn_len
-
2
)))
{
lines
++
;
if
(
!
(
lines
%
api
->
scrn_len
))
{
printf
(
"More? "
);
str
[
0
]
=
0
;
fgets
(
str
,
sizeof
(
str
)
-
1
,
stdin
);
...
...
@@ -342,7 +345,7 @@ void help()
puts
(
hbuf
);
if
(
strlen
(
hbuf
)
>
200
)
{
printf
(
"Hit enter"
);
get
c
(
stdin
);
f
get
s
(
str
,
sizeof
(
str
)
-
1
,
stdin
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment