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
fffcf515
Commit
fffcf515
authored
10 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Save/restore cursor position when entering/leaving UIFC stuff.
parent
2961310c
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/syncterm/uifcinit.c
+5
-0
5 additions, 0 deletions
src/syncterm/uifcinit.c
with
5 additions
and
0 deletions
src/syncterm/uifcinit.c
+
5
−
0
View file @
fffcf515
...
...
@@ -21,6 +21,8 @@ static int uifc_initialized=0;
static
void
(
*
bottomfunc
)(
int
);
int
orig_ciolib_xlat
;
int
orig_vidflags
;
int
orig_x
;
int
orig_y
;
int
init_uifc
(
BOOL
scrn
,
BOOL
bottom
)
{
int
i
;
...
...
@@ -33,6 +35,8 @@ int init_uifc(BOOL scrn, BOOL bottom) {
uifc
.
scrn_len
=
0
;
orig_ciolib_xlat
=
ciolib_xlat
;
orig_vidflags
=
getvideoflags
();
orig_x
=
wherex
();
orig_y
=
wherey
();
setvideoflags
(
orig_vidflags
&
(
CIOLIB_VIDEO_NOBLINK
|
CIOLIB_VIDEO_BGBRIGHT
));
ciolib_xlat
=
TRUE
;
uifc
.
chars
=
NULL
;
...
...
@@ -80,6 +84,7 @@ void uifcbail(void)
ciolib_xlat
=
orig_ciolib_xlat
;
setvideoflags
(
orig_vidflags
);
loadfont
(
NULL
);
gotoxy
(
orig_x
,
orig_y
);
}
uifc_initialized
=
0
;
}
...
...
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