![]() |
|
|||
File indexing completed on 2025-09-15 08:55:05
0001 //------------------------------- -*- C++ -*- -------------------------------// 0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details 0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0004 //---------------------------------------------------------------------------// 0005 //! \file corecel/io/ColorUtils.hh 0006 //! \brief Helper functions for writing colors to the terminal 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 namespace celeritas 0011 { 0012 //---------------------------------------------------------------------------// 0013 // Whether colors are enabled (currently read-only) 0014 bool use_color(); 0015 0016 //---------------------------------------------------------------------------// 0017 // Get an ANSI color code: [y]ellow / [r]ed / [ ]default / ... 0018 char const* color_code(char abbrev); 0019 0020 //---------------------------------------------------------------------------// 0021 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |