• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

oga's tools


Commit MetaInfo

Révision2b954222ea3ef09d774377078a1059a3ccd5b238 (tree)
l'heure2014-02-09 14:17:50
Auteuroga <hyperoga@gmai...>
Commiteroga

Message de Log

add attributes sample

Change Summary

Modification

--- a/color.c
+++ b/color.c
@@ -1,7 +1,28 @@
11 #include <windows.h>
22 #include <stdio.h>
33
4-int main()
4+#if 0
5+#define FOREGROUND_BLUE 0x0001 // text color contains blue.
6+#define FOREGROUND_GREEN 0x0002 // text color contains green.
7+#define FOREGROUND_RED 0x0004 // text color contains red.
8+#define FOREGROUND_INTENSITY 0x0008 // text color is intensified.
9+#define BACKGROUND_BLUE 0x0010 // background color contains blue.
10+#define BACKGROUND_GREEN 0x0020 // background color contains green.
11+#define BACKGROUND_RED 0x0040 // background color contains red.
12+#define BACKGROUND_INTENSITY 0x0080 // background color is intensified.
13+#define COMMON_LVB_LEADING_BYTE 0x0100 // Leading Byte of DBCS
14+#define COMMON_LVB_TRAILING_BYTE 0x0200 // Trailing Byte of DBCS
15+#define COMMON_LVB_GRID_HORIZONTAL 0x0400 // DBCS: Grid attribute: top horizontal.
16+#define COMMON_LVB_GRID_LVERTICAL 0x0800 // DBCS: Grid attribute: left vertical.
17+#define COMMON_LVB_GRID_RVERTICAL 0x1000 // DBCS: Grid attribute: right vertical.
18+#define COMMON_LVB_REVERSE_VIDEO 0x4000 // DBCS: Reverse fore/back ground attribute.
19+#define COMMON_LVB_UNDERSCORE 0x8000 // DBCS: Underscore.
20+
21+#define COMMON_LVB_SBCSDBCS 0x0300 // SBCS or DBCS flag.
22+#endif
23+
24+
25+int main(int a, char *b[])
526 {
627 SetConsoleTextAttribute(
728 GetStdHandle(STD_OUTPUT_HANDLE),