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
ac8ce7ed
Commit
ac8ce7ed
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Switch back to using stdout... Win32 still hates me.
parent
ff46f784
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/conio/ansi_cio.c
+2
-6
2 additions, 6 deletions
src/conio/ansi_cio.c
with
2 additions
and
6 deletions
src/conio/ansi_cio.c
+
2
−
6
View file @
ac8ce7ed
...
...
@@ -31,8 +31,6 @@ int ansi_row=0;
int
ansi_col
=
0
;
int
force_move
=
1
;
int
outfd
;
/* Control sequence table definitions. */
typedef
struct
{
...
...
@@ -139,7 +137,7 @@ void ansi_sendch(char ch)
ansi_row
=
ansi_rows
-
1
;
}
}
write
(
outfd
,
&
ch
,
1
);
f
write
(
&
ch
,
1
,
1
,
stdout
);
if
(
ch
<
' '
)
force_move
=
1
;
}
...
...
@@ -150,7 +148,7 @@ void ansi_sendstr(char *str,int len)
if
(
len
==-
1
)
len
=
strlen
(
str
);
if
(
len
)
{
write
(
outfd
,
str
,
len
);
f
write
(
str
,
len
,
1
,
stdout
);
}
}
...
...
@@ -641,8 +639,6 @@ int ansi_initciolib(long inmode)
atexit
(
ansi_fixterm
);
}
#endif
outfd
=
dup
(
fileno
(
stdout
));
fclose
(
stdout
);
vmem
=
(
WORD
*
)
malloc
(
ansi_rows
*
ansi_cols
*
sizeof
(
WORD
));
ansi_sendstr
(
init
,
-
1
);
for
(
i
=
0
;
i
<
ansi_rows
*
ansi_cols
;
i
++
)
...
...
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