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
fdc8171f
Commit
fdc8171f
authored
3 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Remove summary thing.
parent
fa6b8ca2
No related branches found
No related tags found
No related merge requests found
Pipeline
#8217
passed
3 months ago
Stage: build
Stage: test
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/bbslist.c
+1
-80
1 addition, 80 deletions
src/syncterm/bbslist.c
with
1 addition
and
80 deletions
src/syncterm/bbslist.c
+
1
−
80
View file @
fdc8171f
...
@@ -2086,82 +2086,6 @@ del_bbs(char *listpath, struct bbslist *bbs)
...
@@ -2086,82 +2086,6 @@ del_bbs(char *listpath, struct bbslist *bbs)
}
}
}
}
#if 0
static int
entry_summary(struct bbslist *entry, char *buf, size_t bufsz)
{
if (entry == NULL) {
buf[0] = 0;
return 0;
}
#define HBCHECK() if (++lc >= 7 || hblen >= bufsz) return lc
size_t hblen = 0;
int lc = 0;
bool is_ansi = true;
bool is_serial = ((entry->conn_type == CONN_TYPE_MODEM) || (entry->conn_type == CONN_TYPE_SERIAL)
|| (entry->conn_type == CONN_TYPE_SERIAL_NORTS));
if (get_emulation(entry) != CTERM_EMULATION_ANSI_BBS)
is_ansi = false;
hblen += snprintf(&buf[hblen], bufsz - hblen, "Name: %.28s\r\n", entry->name);
HBCHECK();
switch (entry->conn_type) {
case CONN_TYPE_MODEM:
hblen += snprintf(&buf[hblen], bufsz - hblen, "Phone Number: %.20s\r\n", entry->addr);
break;
case CONN_TYPE_SERIAL:
case CONN_TYPE_SERIAL_NORTS:
hblen += snprintf(&buf[hblen], bufsz - hblen, "Device Name: %.21s\r\n", entry->addr);
break;
case CONN_TYPE_SHELL:
hblen += snprintf(&buf[hblen], bufsz - hblen, "Command: %.25s\r\n", entry->addr);
break;
default:
hblen += snprintf(&buf[hblen], bufsz - hblen, "Address: %.25s\r\n", entry->addr);
break;
}
HBCHECK();
hblen += snprintf(&buf[hblen], bufsz - hblen, "Connection Type: %.17s\r\n", conn_types[entry->conn_type]);
HBCHECK();
if (is_serial) {
// TODO: Speed/n81/etc.
}
else if (entry->conn_type != CONN_TYPE_SHELL) {
hblen += snprintf(&buf[hblen], bufsz - hblen, "Port: %hu\r\n", entry->port);
HBCHECK();
}
if (entry->conn_type == CONN_TYPE_MBBS_GHOST) {
}
else if (entry->conn_type == CONN_TYPE_SSHNA) {
hblen += snprintf(&buf[hblen], bufsz - hblen, "BBS Username: %.20s\r\n", entry->password);
HBCHECK();
}
else {
hblen += snprintf(&buf[hblen], bufsz - hblen, "Username: %.24s\r\n", entry->user);
HBCHECK();
}
hblen += snprintf(&buf[hblen], bufsz - hblen, "Screen Mode: %.21s\r\n", screen_modes[entry->screen_mode]);
HBCHECK();
#undef HBCHECK
hblen += snprintf(&buf[hblen], bufsz - hblen, "Font: %.28s\r\n", entry->font);
return lc;
}
static void
update_summary(struct bbslist *entry)
{
char buf[40*9];
int opt = 0;
int bar = 0;
int lc = entry_summary(entry, buf, sizeof(buf));
uifc.showbuf(WIN_PACK | WIN_T2B | WIN_RHT | WIN_EXTKEYS | WIN_DYN | WIN_ACT | WIN_INACT, -5, 0, 32, 11, "Summary", buf, &opt, &bar);
}
#else
static
void
update_summary
(
struct
bbslist
*
entry
)
{}
#endif
static
int
static
int
settings_list
(
int
*
opt
,
int
*
bar
,
char
**
opts
,
uifc_winmode_t
extra_opts
)
settings_list
(
int
*
opt
,
int
*
bar
,
char
**
opts
,
uifc_winmode_t
extra_opts
)
{
{
...
@@ -3310,7 +3234,6 @@ show_bbslist(char *current, int connected)
...
@@ -3310,7 +3234,6 @@ show_bbslist(char *current, int connected)
else
else
SAFECOPY
(
title
,
syncterm_version
);
SAFECOPY
(
title
,
syncterm_version
);
settitle
(
title
);
settitle
(
title
);
update_summary
(
list
[
opt
]);
}
}
oldopt
=
opt
;
oldopt
=
opt
;
uifc
.
list_height
=
listcount
+
5
;
uifc
.
list_height
=
listcount
+
5
;
...
@@ -3833,10 +3756,8 @@ show_bbslist(char *current, int connected)
...
@@ -3833,10 +3756,8 @@ show_bbslist(char *current, int connected)
" Display compile options selected at build time
\n\n
"
" Display compile options selected at build time
\n\n
"
"~ "
ALT_KEY_NAMEP
"-B ~
\n
"
"~ "
ALT_KEY_NAMEP
"-B ~
\n
"
" View scrollback of last session
\n
"
;
" View scrollback of last session
\n
"
;
if
(
oldopt
!=
-
2
)
{
if
(
oldopt
!=
-
2
)
settitle
(
syncterm_version
);
settitle
(
syncterm_version
);
update_summary
(
NULL
);
}
oldopt
=
-
2
;
oldopt
=
-
2
;
if
(
!
nowait
)
{
if
(
!
nowait
)
{
kbwait
();
kbwait
();
...
...
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