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
ed4f3963
Commit
ed4f3963
authored
2 years ago
by
Rob Swindell
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into new_config_format
parents
d8f09190
c6c42c0c
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/sbbs3/asc2ans.c
+0
-16
0 additions, 16 deletions
src/sbbs3/asc2ans.c
src/sbbs3/chat.cpp
+15
-2
15 additions, 2 deletions
src/sbbs3/chat.cpp
with
15 additions
and
18 deletions
src/sbbs3/asc2ans.c
+
0
−
16
View file @
ed4f3963
/* asc2ans.c */
/* Converts Synchronet Ctrl-A codes into ANSI escape sequences */
/* $Id: asc2ans.c,v 1.12 2020/05/09 23:06:53 rswindell Exp $ */
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
...
...
@@ -17,21 +13,9 @@
* See the GNU General Public License for more details: gpl.txt or *
* http://www.fsf.org/copyleft/gpl.html *
* *
* Anonymous FTP access to the most recent released source is available at *
* ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net *
* *
* Anonymous CVS access to the development source and modification history *
* is available at cvs.synchro.net:/cvsroot/sbbs, example: *
* cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs login *
* (just hit return, no password is necessary) *
* cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs checkout src *
* *
* For Synchronet coding style and modification guidelines, see *
* http://www.synchro.net/source.html *
* *
* You are encouraged to submit any modifications (preferably in Unix diff *
* format) via e-mail to mods@synchro.net *
* *
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/chat.cpp
+
15
−
2
View file @
ed4f3963
...
...
@@ -1091,10 +1091,17 @@ void sbbs_t::privchat(bool forced, int node_num)
lseek
(
in
,
0L
,
SEEK_SET
);
ch
=
0
;
utime
(
inpath
,
NULL
);
if
(
read
(
in
,
&
ch
,
1
)
!=
1
)
int
rd
=
read
(
in
,
&
ch
,
1
);
if
(
rd
!=
1
)
{
lprintf
(
LOG_ERR
,
"read character from %s returned %d instead of 1"
,
inpath
,
rd
);
ch
=
0
;
}
(
void
)
lseek
(
in
,
-
1L
,
SEEK_CUR
);
if
(
!
ch
)
break
;
/* char from other node */
if
(
ch
<
' '
)
lprintf
(
LOG_DEBUG
,
"read control character %u (%s) from %s"
,
ch
,
c_escape_char
(
ch
),
inpath
);
else
lprintf
(
LOG_DEBUG
,
"read character '%c' from %s"
,
ch
,
inpath
);
activity
=
1
;
if
(
sys_status
&
SS_SPLITP
&&
!
remote_activity
)
{
ansi_getxy
(
&
x
,
&
y
);
...
...
@@ -1162,7 +1169,13 @@ void sbbs_t::privchat(bool forced, int node_num)
}
}
ch
=
0
;
write
(
in
,
&
ch
,
1
);
int
wr
=
write
(
in
,
&
ch
,
1
);
if
(
wr
!=
1
)
lprintf
(
LOG_ERR
,
"write of character 0x%02X to %s returned %d"
,
ch
,
inpath
,
wr
);
else
if
(
ch
<
' '
)
lprintf
(
LOG_DEBUG
,
"wrote control character %u (%s) to %s"
,
ch
,
c_escape_char
(
ch
),
inpath
);
else
lprintf
(
LOG_DEBUG
,
"wrote character '%c' to %s"
,
ch
,
inpath
);
if
(
!
(
sys_status
&
SS_SPLITP
))
localchar
=
remotechar
;
...
...
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