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
b0c87a8e
Commit
b0c87a8e
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Use getcchar() so we can still use the NetBSD native curses
parent
56b4d817
No related branches found
No related tags found
No related merge requests found
Pipeline
#5484
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/curs_cio.c
+10
-2
10 additions, 2 deletions
src/conio/curs_cio.c
with
10 additions
and
2 deletions
src/conio/curs_cio.c
+
10
−
2
View file @
b0c87a8e
...
...
@@ -425,7 +425,15 @@ int curs_vmem_gettext(int sx, int sy, int ex, int ey, struct vmem_cell *fill)
int
fillpos
=
0
;
unsigned
char
attrib
;
unsigned
char
colour
;
short
cpair
;
int
oldx
,
oldy
;
#ifdef CURSES_CCHAR_MAX
wchar_t
allchars
[
CURSES_CCHAR_MAX
];
#else
#ifdef CCHARW_MAX
wchar_t
allchars
[
CCHARW_MAX
];
#endif
#endif
unsigned
char
thischar
;
int
ext_char
;
struct
text_info
ti
;
...
...
@@ -457,8 +465,8 @@ int curs_vmem_gettext(int sx, int sy, int ex, int ey, struct vmem_cell *fill)
for
(
x
=
sx
-
1
;
x
<=
ex
-
1
;
x
++
)
{
mvin_wch
(
y
,
x
,
&
cchar
);
attr
=
cchar
.
attr
;
thischar
=
ext_char
=
cchar
.
chars
[
0
];
getcchar
(
&
cchar
,
allchars
,
&
attr
,
&
cpair
,
NULL
)
;
thischar
=
ext_char
=
all
chars
[
0
];
if
(
attr
&
WA_REVERSE
)
{
thischar
=
(
thischar
)
-
'A'
+
1
;
}
...
...
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