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
bb3b8f12
Commit
bb3b8f12
authored
18 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add uifcinput() function (used to get password when blank)
parent
a7f5c4e5
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/syncterm/uifcinit.c
+25
-0
25 additions, 0 deletions
src/syncterm/uifcinit.c
src/syncterm/uifcinit.h
+1
-0
1 addition, 0 deletions
src/syncterm/uifcinit.h
with
26 additions
and
0 deletions
src/syncterm/uifcinit.c
+
25
−
0
View file @
bb3b8f12
...
...
@@ -95,6 +95,31 @@ void uifcmsg(char *msg, char *helpbuf)
}
}
void
uifcinput
(
char
*
title
,
int
len
,
char
*
msg
,
int
mode
,
char
*
helpbuf
)
{
int
i
;
char
*
buf
;
struct
text_info
txtinfo
;
gettextinfo
(
&
txtinfo
);
i
=
uifc_initialized
;
if
(
!
i
)
{
buf
=
(
char
*
)
alloca
(
txtinfo
.
screenheight
*
txtinfo
.
screenwidth
*
2
);
gettext
(
1
,
1
,
txtinfo
.
screenwidth
,
txtinfo
.
screenheight
,
buf
);
}
init_uifc
(
FALSE
,
FALSE
);
if
(
uifc_initialized
)
{
uifc
.
helpbuf
=
helpbuf
;
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
title
,
msg
,
len
,
mode
);
}
else
fprintf
(
stderr
,
"%s
\n
"
,
msg
);
if
(
!
i
)
{
uifcbail
();
puttext
(
1
,
1
,
txtinfo
.
screenwidth
,
txtinfo
.
screenheight
,
buf
);
}
}
int
confirm
(
char
*
msg
,
char
*
helpbuf
)
{
int
i
;
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/uifcinit.h
+
1
−
0
View file @
bb3b8f12
...
...
@@ -9,6 +9,7 @@ extern uifcapi_t uifc; /* User Interface (UIFC) Library API */
int
init_uifc
(
BOOL
scrn
,
BOOL
bottom
);
void
uifcbail
(
void
);
void
uifcmsg
(
char
*
msg
,
char
*
helpbuf
);
void
uifcinput
(
char
*
title
,
int
len
,
char
*
msg
,
int
mode
,
char
*
helpbuf
);
int
confirm
(
char
*
msg
,
char
*
helpbuf
);
#endif
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