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
7ca7edbb
Commit
7ca7edbb
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fixed conio() function definitions.
parent
14101e5f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/ansi_cio.c
+6
-4
6 additions, 4 deletions
src/conio/ansi_cio.c
with
6 additions
and
4 deletions
src/conio/ansi_cio.c
+
6
−
4
View file @
7ca7edbb
...
...
@@ -151,13 +151,14 @@ void ansi_sendstr(char *str,int len)
}
}
int
ansi_puttext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
unsigned
char
*
fill
)
int
ansi_puttext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
buf
)
{
int
x
,
y
;
unsigned
char
*
out
;
WORD
sch
;
struct
text_info
ti
;
int
attrib
;
unsigned
char
*
fill
=
(
unsigned
char
*
)
buf
;
gettextinfo
(
&
ti
);
...
...
@@ -202,12 +203,13 @@ int ansi_puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
textattr
(
ti
.
attribute
);
}
int
ansi_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
unsigned
char
*
fill
)
int
ansi_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
buf
)
{
int
x
,
y
;
unsigned
char
*
out
;
WORD
sch
;
struct
text_info
ti
;
unsigned
char
*
fill
=
(
unsigned
char
*
)
buf
;
gettextinfo
(
&
ti
);
...
...
@@ -234,7 +236,7 @@ int ansi_gettext(int sx, int sy, int ex, int ey, unsigned char *fill)
}
}
void
ansi_textattr
(
unsigned
char
attr
)
void
ansi_textattr
(
int
attr
)
{
char
str
[
16
];
int
fg
,
ofg
;
...
...
@@ -405,7 +407,7 @@ int ansi_wherex(void)
* The special characters return, linefeed, bell, and backspace are handled
* properly, as is line wrap and scrolling. The cursor position is updated.
*/
int
ansi_putch
(
unsigned
char
ch
)
int
ansi_putch
(
int
ch
)
{
struct
text_info
ti
;
WORD
sch
;
...
...
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