testTerminal.c 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /*============================================================================
  2. KWSys - Kitware System Library
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "kwsysPrivate.h"
  11. #include KWSYS_HEADER(Terminal.h)
  12. /* Work-around CMake dependency scanning limitation. This must
  13. duplicate the above list of headers. */
  14. #if 0
  15. # include "Terminal.h.in"
  16. #endif
  17. int testTerminal(int argc, char* argv[])
  18. {
  19. (void)argc;
  20. (void)argv;
  21. kwsysTerminal_cfprintf(kwsysTerminal_Color_ForegroundYellow |
  22. kwsysTerminal_Color_BackgroundBlue |
  23. kwsysTerminal_Color_AssumeTTY,
  24. stdout, "Hello %s!", "World");
  25. fprintf(stdout, "\n");
  26. return 0;
  27. }