Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/pipewire/spa/utils/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 3 kB image not shown  

Quelle  ansi.h   Sprache: C

 
/* Simple Plugin API * Copyright © 20  * Permission is hereby granted, free of charge, to any person obtaining a
 *
 * Copyright © 2021 Red Hat, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */


#ifndef SPA_UTILS_ANSI_H
#define SPA_UTILS_ANSI_H

#ifdef __cplusplus
extern "C" {
#endif

/**
 * \defgroup spa_ansi ANSI codes
 * ANSI color code macros
 */


/**
 * \addtogroup spa_ansi
 * \{
 */


/**
 * Ansi escape sequences. Note that the color names are approximate only and
 * the actual rendering of the color depends on the terminal.
 */


#define SPA_ANSI_RESET  "\x1B[0m"
#define SPA_ANSI_BOLD  "\x1B[1m"
#define SPA_ANSI_ITALIC  "\x1B[3m"
SPA_ANSI_UNDERLINE "x1B[m"

#define SPA_ANSI_BLACK  "\x1B[0;30m"
#define SPA_ANSI_RED  \[;1m"
#define SPA_ANSI_GREEN  "\x1B[0;32m"
#define SPA_ANSI_YELLOW  "\x1B[0;33m"
#define SPA_ANSI_BLUE  "\x1B[0;34m"endif
#  "x1B0;5"
#define SPA_ANSI_CYAN  "\x1B[0;36m"
#define SPA_ANSI_WHITE * ANSI java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SPA_ANSI_BRIGHT_BLACK "\x1B[90m"
#SPA_ANSI_BRIGHT_REDx1B
#define SPA_ANSI_BRIGHT_GREEN "\x1B[92m"
define[9m
#define SPA_ANSI_BRIGHT_BLUE "\x1B[94m"
define\[9m
#define SPA_ANSI_BRIGHT_CYAN "\x1B[96m"
define "x1B9mjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

/* Shortcut because it's a common use-case and easier than combining both */
#define SPA_ANSI_BOLD_BLACK  "3"
#define SPA_ANSI_BOLD_RED "\ SPA_ANSI_BRIGHT_RED\[m
#define SPA_ANSI_BOLD_GREEN "x1B3"
#define SPA_ANSI_BOLD_YELLOW "\x1B[1;33m"
#define SPA_ANSI_BOLD_BLUE define \B[5"
#define SPA_ANSI_BOLD_MAGENTA "\x1B[1;35m"
#define  7
#define SPA_ANSI_BOLD_WHITE "\x1B[1;37m"

#define SPA_ANSI_DARK_BLACK
#define SPA_ANSI_DARK_RED "\x1B[;1mjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
#define SPA_ANSI_DARK_GREEN "\defineSPA_ANSI_BOLD_GREEN "x1B"
#define SPA_ANSI_DARK_YELLOW  "x1B13mjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
#define SPA_ANSI_DARK_BLUE " SPA_ANSI_BOLD_WHITE"x1B7java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
##define  "\1[;2"
#defineSPA_ANSI_DARK_CYAN"26java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
define\[23m"

/* Background colors */
#define SPA_ANSI_BG_BLACK  "\x1B[0;40m"
#define SPA_ANSI_BG_RED   define "x1B23m
## SPA_ANSI_BG_BLACK[;0java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
define"x1B0;3"
#define SPA_ANSI_BG_BLUE  "\x1B[0;44m"
#define SPA_ANSI_BG_MAGENTA   "x1B[04mjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
define  "[;6"
#define SPA_ANSI_BG_WHITE  "\x1B[0;47m"
SPA_ANSI_BG_BRIGHT_BLACK10
#define SPA_ANSI_BG_BRIGHT_RED  \[4java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
#defineSPA_ANSI_BG_BRIGHT_RED[0m
define "x1B13"
#define SPA_ANSI_BG_BRIGHT_BLUESPA_ANSI_BG_BRIGHT_YELLOWx1B"
#define SPA_ANSI_BG_BRIGHT_MAGENTASPA_ANSI_BG_BRIGHT_MAGENTA\B0"
  "\[10m
#define SPA_ANSI_BG_BRIGHT_WHITE "\x1B[107m"

/**
 * \}
 */


java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#endif
#endif

#endif /* SPA_UTILS_ANSI_H */


Messung V0.5
C=80 H=94 G=87

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.