Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
a2050baf
Commit
a2050baf
authored
Apr 10, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Command to test console colors.
parent
37fd2b93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/misc/util/utilColor.c
+4
-4
No files found.
src/misc/util/utilColor.c
View file @
a2050baf
...
@@ -54,16 +54,16 @@ void Abc_ColorTest()
...
@@ -54,16 +54,16 @@ void Abc_ColorTest()
#ifdef WIN32
#ifdef WIN32
int
x
,
y
;
int
x
,
y
;
HANDLE
hConsole
=
GetStdHandle
(
STD_OUTPUT_HANDLE
);
HANDLE
hConsole
=
GetStdHandle
(
STD_OUTPUT_HANDLE
);
printf
(
"Background color
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14
15
\n
"
);
printf
(
"Background color
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14
15
\n
"
);
printf
(
" -----------------------------------------------
\n
"
);
printf
(
" -----------------------------------------------
-------------------------------
\n
"
);
for
(
y
=
0
;
y
<
16
;
y
++
)
for
(
y
=
0
;
y
<
16
;
y
++
)
{
{
printf
(
"Foreground color %02d"
,
y
);
printf
(
"Foreground color %02d"
,
y
);
for
(
x
=
0
;
x
<
16
;
x
++
)
for
(
x
=
0
;
x
<
16
;
x
++
)
{
{
printf
(
" "
);
printf
(
" "
);
SetConsoleTextAttribute
(
hConsole
,
(
WORD
)(
16
*
y
+
x
)
);
SetConsoleTextAttribute
(
hConsole
,
(
WORD
)(
16
*
x
+
y
)
);
printf
(
"
Hi
"
);
printf
(
"
Hi
"
);
SetConsoleTextAttribute
(
hConsole
,
7
);
SetConsoleTextAttribute
(
hConsole
,
7
);
}
}
printf
(
"
\n
"
);
printf
(
"
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment