1 /*=========================================================================
3 Program: KWSys - Kitware System Library
4 Module: $RCSfile: testTerminal.c,v $
6 Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
7 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notices for more information.
13 =========================================================================*/
14 #include "kwsysPrivate.h"
15 #include KWSYS_HEADER(Terminal.h)
17 /* Work-around CMake dependency scanning limitation. This must
18 duplicate the above list of headers. */
20 # include "Terminal.h.in"
23 int testTerminal(int argc
, char* argv
[])
27 kwsysTerminal_cfprintf(kwsysTerminal_Color_ForegroundYellow
|
28 kwsysTerminal_Color_BackgroundBlue
|
29 kwsysTerminal_Color_AssumeTTY
,
30 stdout
, "Hello %s!", "World");
31 fprintf(stdout
, "\n");