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
045c85fa
Commit
045c85fa
authored
19 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Allow changing of the current screen mode.
parent
9ef8908e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/syncterm/bbslist.c
+34
-0
34 additions, 0 deletions
src/syncterm/bbslist.c
src/syncterm/syncterm.c
+1
-0
1 addition, 0 deletions
src/syncterm/syncterm.c
with
35 additions
and
0 deletions
src/syncterm/bbslist.c
+
34
−
0
View file @
045c85fa
...
@@ -755,6 +755,40 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
...
@@ -755,6 +755,40 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
case
0
:
/* Edit default connection settings */
case
0
:
/* Edit default connection settings */
edit_list
(
&
defaults
,
listpath
,
TRUE
);
edit_list
(
&
defaults
,
listpath
,
TRUE
);
break
;
break
;
case
2
:
{
/* Screen Setup */
struct
text_info
ti
;
gettextinfo
(
&
ti
);
uifc
.
helpbuf
=
"`Screen Setup`
\n\n
"
"Select the new screen size.
\n
"
;
i
=
ti
.
currmode
;
i
=
uifc
.
list
(
WIN_SAV
,
0
,
0
,
0
,
&
i
,
NULL
,
"Screen Setup"
,
screen_modes
);
if
(
i
>=
0
)
{
uifcbail
();
switch
(
i
)
{
case
SCREEN_MODE_80X25
:
textmode
(
C80
);
break
;
case
SCREEN_MODE_80X28
:
textmode
(
C80X28
);
break
;
case
SCREEN_MODE_80X43
:
textmode
(
C80X43
);
break
;
case
SCREEN_MODE_80X50
:
textmode
(
C80X50
);
break
;
case
SCREEN_MODE_80X60
:
textmode
(
C80X60
);
break
;
}
init_uifc
(
TRUE
,
TRUE
);
}
val
=
uifc
.
list
((
listcount
<
MAX_OPTS
?
WIN_XTR
:
0
)
|
WIN_T2B
|
WIN_IMM
|
WIN_INACT
,
0
,
0
,
0
,
&
opt
,
&
bar
,
mode
==
BBSLIST_SELECT
?
"Directory"
:
"Edit"
,(
char
**
)
list
);
}
break
;
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/syncterm.c
+
1
−
0
View file @
045c85fa
...
@@ -309,6 +309,7 @@ int main(int argc, char **argv)
...
@@ -309,6 +309,7 @@ int main(int argc, char **argv)
return
(
1
);
return
(
1
);
while
(
bbs
!=
NULL
||
(
bbs
=
show_bbslist
(
listpath
,
BBSLIST_SELECT
,
home
))
!=
NULL
)
{
while
(
bbs
!=
NULL
||
(
bbs
=
show_bbslist
(
listpath
,
BBSLIST_SELECT
,
home
))
!=
NULL
)
{
gettextinfo
(
&
txtinfo
);
/* Current mode may have changed while in show_bbslist() */
if
(
!
conn_connect
(
bbs
->
addr
,
bbs
->
port
,
bbs
->
reversed
?
bbs
->
password
:
bbs
->
user
,
bbs
->
reversed
?
bbs
->
user
:
bbs
->
password
,
bbs
->
syspass
,
bbs
->
conn_type
,
bbs
->
bpsrate
))
{
if
(
!
conn_connect
(
bbs
->
addr
,
bbs
->
port
,
bbs
->
reversed
?
bbs
->
password
:
bbs
->
user
,
bbs
->
reversed
?
bbs
->
user
:
bbs
->
password
,
bbs
->
syspass
,
bbs
->
conn_type
,
bbs
->
bpsrate
))
{
/* ToDo: Update the entry with new lastconnected */
/* ToDo: Update the entry with new lastconnected */
/* ToDo: Disallow duplicate entries */
/* ToDo: Disallow duplicate entries */
...
...
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