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
892cea7a
Commit
892cea7a
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
color_set() is an ncurses extension... only use it for ncurses.
NetBSD doesn't have echochar()
parent
dead5ffe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/uifc/ciowrap.c
+3
-1
3 additions, 1 deletion
src/uifc/ciowrap.c
src/uifc/ciowrap.h
+4
-1
4 additions, 1 deletion
src/uifc/ciowrap.h
with
7 additions
and
2 deletions
src/uifc/ciowrap.c
+
3
−
1
View file @
892cea7a
...
...
@@ -322,10 +322,12 @@ void textattr(unsigned char attr)
{
attrs
|=
A_BLINK
;
}
attrset
(
attrs
);
colour
=
COLOR_PAIR
(
((
attr
&
7
)
|
((
attr
>>
1
)
&
56
))
+
1
);
#ifdef NCURSES_VERSION_MAJOR
attrset
(
attrs
);
color_set
(
colour
,
NULL
);
#else
attrset
(
attrs
|
colour
);
#endif
/* bkgdset(colour); */
bkgdset
(
colour
);
...
...
This diff is collapsed.
Click to expand it.
src/uifc/ciowrap.h
+
4
−
1
View file @
892cea7a
...
...
@@ -56,7 +56,10 @@ struct text_info {
extern
"C"
{
#endif
#define clreol() clrtoeol()
#define putch(x) echochar(x)
#ifdef __NetBSD__
#else
#define putch(x) addch(x)
#endif
short
curses_color
(
short
color
);
int
puttext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
unsigned
char
*
fill
);
#define gettext(x1,y1,x2,y2,z) cio_gettext(x1,y1,x2,y2,z)
...
...
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