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
35c1c45f
Commit
35c1c45f
authored
19 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Remove mono and colour command-line args.
parent
c26cc61f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/syncterm.c
+20
-24
20 additions, 24 deletions
src/syncterm/syncterm.c
with
20 additions
and
24 deletions
src/syncterm/syncterm.c
+
20
−
24
View file @
35c1c45f
...
...
@@ -299,6 +299,7 @@ int main(int argc, char **argv)
char
*
inpath
=
NULL
;
BOOL
exit_now
=
FALSE
;
int
conn_type
=
CONN_TYPE_TELNET
;
BOOL
dont_set_mode
=
FALSE
;
/* UIFC initialization */
memset
(
&
uifc
,
0
,
sizeof
(
uifc
));
...
...
@@ -313,9 +314,6 @@ int main(int argc, char **argv)
#endif
)
switch
(
toupper
(
argv
[
i
][
1
]))
{
case
'C'
:
uifc
.
mode
|=
UIFC_COLOR
;
break
;
case
'E'
:
uifc
.
esc_delay
=
atoi
(
argv
[
i
]
+
2
);
break
;
...
...
@@ -345,9 +343,7 @@ int main(int argc, char **argv)
break
;
case
'L'
:
uifc
.
scrn_len
=
atoi
(
argv
[
i
]
+
2
);
break
;
case
'M'
:
/* Monochrome mode */
uifc
.
mode
|=
UIFC_MONO
;
dont_set_mode
=
TRUE
;
break
;
case
'R'
:
conn_type
=
CONN_TYPE_RLOGIN
;
...
...
@@ -365,22 +361,24 @@ int main(int argc, char **argv)
load_settings
(
&
settings
);
initciolib
(
ciolib_mode
);
switch
(
settings
.
startup_mode
)
{
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
;
if
(
!
dont_set_mode
)
{
switch
(
settings
.
startup_mode
)
{
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
;
}
}
gettextinfo
(
&
txtinfo
);
...
...
@@ -518,8 +516,6 @@ int main(int argc, char **argv)
clrscr
();
cprintf
(
"
\n
usage: syncterm [options] [URL]"
"
\n\n
options:
\n\n
"
"-c = force color mode
\n
"
"-m = force monochrome mode
\n
"
"-e# = set escape delay to #msec
\n
"
"-iX = set interface mode to X (default=auto) where X is one of:
\n
"
#ifdef __unix__
...
...
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