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
44619882
Commit
44619882
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Ensure that gettextinfo() works as the first conio call.
parent
39f9858a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/conio.c
+14
-14
14 additions, 14 deletions
src/conio/conio.c
with
14 additions
and
14 deletions
src/conio/conio.c
+
14
−
14
View file @
44619882
...
...
@@ -241,20 +241,20 @@ void gettextinfo(struct text_info *info)
initciowrap
(
3
);
else
{
cio_api
.
gettextinfo
(
&
cio_textinfo
);
if
(
info
!=&
cio_textinfo
)
{
info
->
winleft
=
cio_textinfo
.
winleft
;
/* left window coordinate */
info
->
win
top
=
cio_textinfo
.
win
top
;
/*
top
window coordinate */
info
->
win
right
=
cio_textinfo
.
win
right
;
/*
right
window coordinate */
info
->
win
bottom
=
cio_textinfo
.
win
bottom
;
/*
bottom
window coordinate */
info
->
attribute
=
cio_textinfo
.
attribute
;
/*
text attribu
te */
info
->
norm
attr
=
cio_textinfo
.
normattr
;
/*
normal
attribute */
info
->
currmode
=
cio_textinfo
.
currmode
;
/*
current video mode:
BW40, BW80, C40, C80, or C4350 */
info
->
screenheight
=
cio_textinfo
.
screenheight
;
/* text screen's height
*/
info
->
screen
width
=
cio_textinfo
.
screen
width
;
/* text screen's
width
*/
info
->
curx
=
cio_textinfo
.
curx
;
/* x-coordinate in current window
*/
info
->
cur
y
=
cio_textinfo
.
cur
y
;
/*
y
-coordinate in current window */
}
}
if
(
info
!=&
cio_textinfo
)
{
info
->
win
left
=
cio_textinfo
.
win
left
;
/*
left
window coordinate */
info
->
win
top
=
cio_textinfo
.
win
top
;
/*
top
window coordinate */
info
->
win
right
=
cio_textinfo
.
win
right
;
/*
right
window coordinate */
info
->
winbottom
=
cio_textinfo
.
winbottom
;
/*
bottom window coordina
te */
info
->
attr
ibute
=
cio_textinfo
.
attribute
;
/*
text
attribute */
info
->
normattr
=
cio_textinfo
.
normattr
;
/*
normal attribute */
info
->
currmode
=
cio_textinfo
.
currmode
;
/* current video mode:
BW40, BW80, C40, C80, or C4350
*/
info
->
screen
height
=
cio_textinfo
.
screen
height
;
/* text screen's
height
*/
info
->
screenwidth
=
cio_textinfo
.
screenwidth
;
/* text screen's width
*/
info
->
cur
x
=
cio_textinfo
.
cur
x
;
/*
x
-coordinate in current window */
info
->
cury
=
cio_textinfo
.
cury
;
/* y-coordinate in current window */
}
}
...
...
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