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
5e7953c1
Commit
5e7953c1
authored
19 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Copy count of lines in scrollback out before ending CTerm.
parent
de11bf03
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/syncterm/bbslist.c
+2
-0
2 additions, 0 deletions
src/syncterm/bbslist.c
src/syncterm/syncterm.c
+1
-0
1 addition, 0 deletions
src/syncterm/syncterm.c
src/syncterm/syncterm.h
+1
-0
1 addition, 0 deletions
src/syncterm/syncterm.h
src/syncterm/term.c
+8
-4
8 additions, 4 deletions
src/syncterm/term.c
with
12 additions
and
4 deletions
src/syncterm/bbslist.c
+
2
−
0
View file @
5e7953c1
...
...
@@ -547,6 +547,8 @@ void change_settings(void)
uifc
.
msg
(
"Cannot allocate space for scrollback."
);
}
else
{
if
(
scrollback_lines
>
j
)
scrollback_lines
=
j
;
scrollback_buf
=
tmpscroll
;
settings
.
backlines
=
j
;
iniSetInteger
(
&
inicontents
,
"SyncTERM"
,
"ScrollBackLines"
,
settings
.
backlines
,
&
ini_style
);
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/syncterm.c
+
1
−
0
View file @
5e7953c1
...
...
@@ -38,6 +38,7 @@ int default_font=0;
struct
syncterm_settings
settings
;
char
*
font_names
[
sizeof
(
conio_fontdata
)
/
sizeof
(
struct
conio_font_data_struct
)];
unsigned
char
*
scrollback_buf
=
NULL
;
unsigned
int
scrollback_lines
=
0
;
#ifdef _WINSOCKAPI_
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/syncterm.h
+
1
−
0
View file @
5e7953c1
...
...
@@ -18,6 +18,7 @@ struct syncterm_settings {
extern
char
*
inpath
;
extern
char
*
syncterm_version
;
extern
unsigned
char
*
scrollback_buf
;
extern
unsigned
int
scrollback_lines
;
extern
struct
syncterm_settings
settings
;
void
parse_url
(
char
*
url
,
struct
bbslist
*
bbs
,
int
dflt_conn_type
,
int
force_defaults
);
extern
int
default_font
;
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/term.c
+
8
−
4
View file @
5e7953c1
...
...
@@ -886,7 +886,8 @@ BOOL doterm(struct bbslist *bbs)
case
-
1
:
if
(
!
is_connected
(
NULL
))
{
uifcmsg
(
"Disconnected"
,
"`Disconnected`
\n\n
Remote host dropped connection"
);
cterm
.
write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
cterm_write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
scrollback_lines
=
cterm
.
backpos
;
cterm_end
();
conn_close
();
hidemouse
();
...
...
@@ -1096,7 +1097,8 @@ BOOL doterm(struct bbslist *bbs)
if
(
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
NULL
,
"Disconnect... Are you sure?"
,
opts
)
==
0
)
{
uifcbail
();
free
(
buf
);
cterm
.
write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
cterm_write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
scrollback_lines
=
cterm
.
backpos
;
cterm_end
();
conn_close
();
hidemouse
();
...
...
@@ -1129,7 +1131,8 @@ BOOL doterm(struct bbslist *bbs)
if
(
!
confirm
(
"Disconnect?"
,
NULL
))
continue
;
#endif
cterm
.
write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
cterm_write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
scrollback_lines
=
cterm
.
backpos
;
cterm_end
();
conn_close
();
hidemouse
();
...
...
@@ -1174,7 +1177,8 @@ BOOL doterm(struct bbslist *bbs)
if
(
!
confirm
(
"Disconnect?"
,
NULL
))
continue
;
#endif
cterm
.
write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
cterm_write
(
"
\x0c
"
,
1
,
NULL
,
0
,
NULL
);
/* Clear screen into scrollback */
scrollback_lines
=
cterm
.
backpos
;
cterm_end
();
conn_close
();
hidemouse
();
...
...
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