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
f397db14
Commit
f397db14
authored
19 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some bcc32-exposed warnings.
Fixed typos in ANSI music help.
parent
978cbf22
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/term.c
+8
-9
8 additions, 9 deletions
src/syncterm/term.c
with
8 additions
and
9 deletions
src/syncterm/term.c
+
8
−
9
View file @
f397db14
...
@@ -397,12 +397,11 @@ static int recv_byte(void* unused, unsigned timeout)
...
@@ -397,12 +397,11 @@ static int recv_byte(void* unused, unsigned timeout)
void
purge_recv
(
void
)
void
purge_recv
(
void
)
{
{
int
ch
;
unsigned
count
=
0
;
unsigned
count
=
0
;
lprintf
(
LOG_NOTICE
,
"Purging receive buffer..."
);
lprintf
(
LOG_NOTICE
,
"Purging receive buffer..."
);
YIELD
();
YIELD
();
while
(
(
ch
=
recv_byte
(
NULL
,
0
)
)
>=
0
)
{
while
(
recv_byte
(
NULL
,
0
)
>=
0
)
{
YIELD
();
YIELD
();
count
++
;
count
++
;
}
}
...
@@ -546,7 +545,7 @@ void erase_transfer_window(void) {
...
@@ -546,7 +545,7 @@ void erase_transfer_window(void) {
_setcursortype
(
_NORMALCURSOR
);
_setcursortype
(
_NORMALCURSOR
);
}
}
static
binary_mode_on
(
struct
bbslist
*
bbs
)
static
void
binary_mode_on
(
struct
bbslist
*
bbs
)
{
{
if
(
bbs
->
conn_type
==
CONN_TYPE_TELNET
)
{
if
(
bbs
->
conn_type
==
CONN_TYPE_TELNET
)
{
request_telnet_opt
(
TELNET_DO
,
TELNET_BINARY_TX
);
request_telnet_opt
(
TELNET_DO
,
TELNET_BINARY_TX
);
...
@@ -554,7 +553,7 @@ static binary_mode_on(struct bbslist *bbs)
...
@@ -554,7 +553,7 @@ static binary_mode_on(struct bbslist *bbs)
}
}
}
}
static
binary_mode_off
(
struct
bbslist
*
bbs
)
static
void
binary_mode_off
(
struct
bbslist
*
bbs
)
{
{
if
(
bbs
->
conn_type
==
CONN_TYPE_TELNET
)
{
if
(
bbs
->
conn_type
==
CONN_TYPE_TELNET
)
{
request_telnet_opt
(
TELNET_DONT
,
TELNET_BINARY_TX
);
request_telnet_opt
(
TELNET_DONT
,
TELNET_BINARY_TX
);
...
@@ -562,7 +561,7 @@ static binary_mode_off(struct bbslist *bbs)
...
@@ -562,7 +561,7 @@ static binary_mode_off(struct bbslist *bbs)
}
}
}
}
void
ascii_upload
(
FILE
*
fp
,
char
*
path
);
void
ascii_upload
(
FILE
*
fp
);
void
zmodem_upload
(
struct
bbslist
*
bbs
,
FILE
*
fp
,
char
*
path
);
void
zmodem_upload
(
struct
bbslist
*
bbs
,
FILE
*
fp
,
char
*
path
);
void
begin_upload
(
struct
bbslist
*
bbs
,
BOOL
autozm
)
void
begin_upload
(
struct
bbslist
*
bbs
,
BOOL
autozm
)
...
@@ -610,7 +609,7 @@ void begin_upload(struct bbslist *bbs, BOOL autozm)
...
@@ -610,7 +609,7 @@ void begin_upload(struct bbslist *bbs, BOOL autozm)
zmodem_upload
(
bbs
,
fp
,
path
);
zmodem_upload
(
bbs
,
fp
,
path
);
break
;
break
;
case
1
:
case
1
:
ascii_upload
(
fp
,
path
);
ascii_upload
(
fp
);
break
;
break
;
}
}
}
}
...
@@ -804,7 +803,7 @@ void guts_transfer(struct bbslist *bbs)
...
@@ -804,7 +803,7 @@ void guts_transfer(struct bbslist *bbs)
}
}
#endif
#endif
void
ascii_upload
(
FILE
*
fp
,
char
*
path
)
void
ascii_upload
(
FILE
*
fp
)
{
{
char
linebuf
[
1024
+
2
];
/* One extra for terminator, one extra for added CR */
char
linebuf
[
1024
+
2
];
/* One extra for terminator, one extra for added CR */
char
*
p
;
char
*
p
;
...
@@ -949,8 +948,8 @@ void music_control(struct bbslist *bbs)
...
@@ -949,8 +948,8 @@ void music_control(struct bbslist *bbs)
"so-called ANSI music replaced the Delete Line ANSI sequence. Many
\n
"
"so-called ANSI music replaced the Delete Line ANSI sequence. Many
\n
"
"full-screen editors use DL, and to this day, some programs (Such as
\n
"
"full-screen editors use DL, and to this day, some programs (Such as
\n
"
"BitchX) require it to run.
\n\n
"
"BitchX) require it to run.
\n\n
"
"To deal with this, BananaCom decided to use what *they* though was an
\n
"
"To deal with this, BananaCom decided to use what *they* though
t
was an
\n
"
"unspecified escape code ESC[N for ANSI music. Unfortunately, this is
\n
"
"unspecified escape code
,
ESC[N
,
for ANSI music. Unfortunately, this is
\n
"
"broken also. Although rarely implemented in BBS clients, ESC[N is
\n
"
"broken also. Although rarely implemented in BBS clients, ESC[N is
\n
"
"the erase field sequence.
\n\n
"
"the erase field sequence.
\n\n
"
"SyncTERM has now defined a third ANSI music sequence which *IS* legal
\n
"
"SyncTERM has now defined a third ANSI music sequence which *IS* legal
\n
"
...
...
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