summaryrefslogtreecommitdiffstats
path: root/testTerminal.c
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2012-05-02 12:46:10 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-01 18:38:57 (GMT)
commit7d3c2959fa9cb65b3be81bdfe3f69c29d31a9e67 (patch)
treebce89f47a95d9b29d52c9c8aa2847872fde59a42 /testTerminal.c
downloadCMake-7d3c2959fa9cb65b3be81bdfe3f69c29d31a9e67.zip
CMake-7d3c2959fa9cb65b3be81bdfe3f69c29d31a9e67.tar.gz
CMake-7d3c2959fa9cb65b3be81bdfe3f69c29d31a9e67.tar.bz2
KWSys 2012-05-02 (719638e2)
Extract upstream KWSys using the following shell code. $ sha1=719638e233b560afb0d9a0afdcf23469dc1827fe && git archive --prefix=KWSys-snapshot/ $sha1 | tar x
Diffstat (limited to 'testTerminal.c')
-rw-r--r--testTerminal.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/testTerminal.c b/testTerminal.c
new file mode 100644
index 0000000..0d2d7a7
--- /dev/null
+++ b/testTerminal.c
@@ -0,0 +1,31 @@
+/*============================================================================
+ KWSys - Kitware System Library
+ Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
+
+ Distributed under the OSI-approved BSD License (the "License");
+ see accompanying file Copyright.txt for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even the
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License for more information.
+============================================================================*/
+#include "kwsysPrivate.h"
+#include KWSYS_HEADER(Terminal.h)
+
+/* Work-around CMake dependency scanning limitation. This must
+ duplicate the above list of headers. */
+#if 0
+# include "Terminal.h.in"
+#endif
+
+int testTerminal(int argc, char* argv[])
+{
+ (void)argc;
+ (void)argv;
+ kwsysTerminal_cfprintf(kwsysTerminal_Color_ForegroundYellow |
+ kwsysTerminal_Color_BackgroundBlue |
+ kwsysTerminal_Color_AssumeTTY,
+ stdout, "Hello %s!", "World");
+ fprintf(stdout, "\n");
+ return 0;
+}