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
3dd88c52
Commit
3dd88c52
authored
19 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Don't display "F1 Help" on bottom line if no help text defined.
parent
0c0602c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/uifc/uifc32.c
+17
-11
17 additions, 11 deletions
src/uifc/uifc32.c
with
17 additions
and
11 deletions
src/uifc/uifc32.c
+
17
−
11
View file @
3dd88c52
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
4
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
5
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
...
...
@@ -527,6 +527,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if
(
mode
&
WIN_SAV
&&
api
->
savnum
>=
MAX_BUFS
-
1
)
putch
(
7
);
if
(
api
->
helpbuf
!=
NULL
||
api
->
helpixbfile
[
0
]
!=
0
)
bline
|=
BL_HELP
;
if
(
mode
&
WIN_INS
)
bline
|=
BL_INS
;
if
(
mode
&
WIN_DEL
)
bline
|=
BL_DEL
;
if
(
mode
&
WIN_GET
)
bline
|=
BL_GET
;
...
...
@@ -2082,10 +2083,12 @@ void bottomline(int line)
uprintf
(
i
,
api
->
scrn_len
+
1
,
api
->
bclr
|
(
api
->
cclr
<<
4
),
" "
);
i
+=
4
;
if
(
line
&
BL_HELP
)
{
uprintf
(
i
,
api
->
scrn_len
+
1
,
api
->
bclr
|
(
api
->
cclr
<<
4
),
"F1 "
);
i
+=
3
;
uprintf
(
i
,
api
->
scrn_len
+
1
,
BLACK
|
(
api
->
cclr
<<
4
),
"Help "
);
i
+=
6
;
}
if
(
line
&
BL_EDIT
)
{
uprintf
(
i
,
api
->
scrn_len
+
1
,
api
->
bclr
|
(
api
->
cclr
<<
4
),
"F2 "
);
i
+=
3
;
...
...
@@ -2553,11 +2556,16 @@ static void help(void)
long
l
;
FILE
*
fp
;
if
(
api
->
helpbuf
==
NULL
&&
api
->
helpixbfile
[
0
]
==
0
)
return
;
_setcursortype
(
_NOCURSOR
);
if
(
!
api
->
helpbuf
)
{
if
(
api
->
helpbuf
!=
NULL
)
strcpy
(
hbuf
,
api
->
helpbuf
);
else
{
if
((
fp
=
fopen
(
api
->
helpixbfile
,
"rb"
))
==
NULL
)
{
sprintf
(
hbuf
,
"
ERROR
Cannot open help index:
\r\n
%s"
sprintf
(
hbuf
,
"
\2
ERROR
\2
Cannot open help index:
\r\n
%s"
,
api
->
helpixbfile
);
}
else
{
...
...
@@ -2583,11 +2591,11 @@ static void help(void)
}
fclose
(
fp
);
if
(
l
==-
1L
)
sprintf
(
hbuf
,
"
ERROR
Cannot locate help key (%s:%u) in:
\r\n
"
sprintf
(
hbuf
,
"
\2
ERROR
\2
Cannot locate help key (%s:%u) in:
\r\n
"
" %s"
,
p
,
helpline
,
api
->
helpixbfile
);
else
{
if
((
fp
=
fopen
(
api
->
helpdatfile
,
"rb"
))
==
NULL
)
sprintf
(
hbuf
,
"
ERROR
Cannot open help file:
\r\n
%s"
sprintf
(
hbuf
,
"
\2
ERROR
\2
Cannot open help file:
\r\n
%s"
,
api
->
helpdatfile
);
else
{
fseek
(
fp
,
l
,
SEEK_SET
);
...
...
@@ -2597,8 +2605,6 @@ static void help(void)
}
}
}
else
strcpy
(
hbuf
,
api
->
helpbuf
);
showbuf
(
WIN_MID
|
WIN_HLP
,
0
,
0
,
76
,
api
->
scrn_len
,
"Online Help"
,
hbuf
,
NULL
,
NULL
);
}
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