Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions | Variables
opt_diags.cpp File Reference
#include "opt_diags.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for opt_diags.cpp:

Go to the source code of this file.

Macros

#define _RWSTD_TEST_SRC
 
#define ESC   "\x1b"
 
#define ESC_END   ESC "[30;30;0m"
 
#define ESC_CODE(fg, bg, attr)   ESC "[" fg bg attr "m", ESC_END
 
#define AT_OFF   "0;"
 
#define AT_BLD   "1;"
 
#define AT_DIM   "2;"
 
#define AT_UND   "4;"
 
#define AT_BLI   "5;"
 
#define AT_RVS   "7;"
 
#define AT_HID   "8;"
 
#define FG_BLK   "30;"
 
#define FG_RED   "31;"
 
#define FG_GRN   "32;"
 
#define FG_YLW   "33;"
 
#define FG_BLU   "34;"
 
#define FG_MAG   "35;"
 
#define FG_CYN   "36;"
 
#define FG_WHT   "37;"
 
#define BG_BLK   "40;"
 
#define BG_RED   "41;"
 
#define BG_GRN   "42;"
 
#define BG_YLW   "43;"
 
#define BG_BLU   "44;"
 
#define BG_MAG   "45;"
 
#define BG_CYN   "46;"
 
#define BG_WHT   "47;"
 

Functions

int _rw_setopt_diags (int argc, char *argv[])
 

Variables

esc_text_t diag_msgs []
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

opt_diags.cpp - definitions of diagnostic option handlers

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2008 Rogue Wave Software, Inc.

Definition at line 30 of file opt_diags.cpp.

◆ AT_BLD

#define AT_BLD   "1;"

Definition at line 46 of file opt_diags.cpp.

◆ AT_BLI

#define AT_BLI   "5;"

Definition at line 50 of file opt_diags.cpp.

◆ AT_DIM

#define AT_DIM   "2;"

Definition at line 47 of file opt_diags.cpp.

◆ AT_HID

#define AT_HID   "8;"

Definition at line 53 of file opt_diags.cpp.

◆ AT_OFF

#define AT_OFF   "0;"

Definition at line 45 of file opt_diags.cpp.

◆ AT_RVS

#define AT_RVS   "7;"

Definition at line 52 of file opt_diags.cpp.

◆ AT_UND

#define AT_UND   "4;"

Definition at line 49 of file opt_diags.cpp.

◆ BG_BLK

#define BG_BLK   "40;"

Definition at line 64 of file opt_diags.cpp.

◆ BG_BLU

#define BG_BLU   "44;"

Definition at line 68 of file opt_diags.cpp.

◆ BG_CYN

#define BG_CYN   "46;"

Definition at line 70 of file opt_diags.cpp.

◆ BG_GRN

#define BG_GRN   "42;"

Definition at line 66 of file opt_diags.cpp.

◆ BG_MAG

#define BG_MAG   "45;"

Definition at line 69 of file opt_diags.cpp.

◆ BG_RED

#define BG_RED   "41;"

Definition at line 65 of file opt_diags.cpp.

◆ BG_WHT

#define BG_WHT   "47;"

Definition at line 71 of file opt_diags.cpp.

◆ BG_YLW

#define BG_YLW   "43;"

Definition at line 67 of file opt_diags.cpp.

◆ ESC

#define ESC   "\x1b"

Definition at line 39 of file opt_diags.cpp.

◆ ESC_CODE

#define ESC_CODE (   fg,
  bg,
  attr 
)    ESC "[" fg bg attr "m", ESC_END

Definition at line 41 of file opt_diags.cpp.

◆ ESC_END

#define ESC_END   ESC "[30;30;0m"

Definition at line 40 of file opt_diags.cpp.

◆ FG_BLK

#define FG_BLK   "30;"

Definition at line 55 of file opt_diags.cpp.

◆ FG_BLU

#define FG_BLU   "34;"

Definition at line 59 of file opt_diags.cpp.

◆ FG_CYN

#define FG_CYN   "36;"

Definition at line 61 of file opt_diags.cpp.

◆ FG_GRN

#define FG_GRN   "32;"

Definition at line 57 of file opt_diags.cpp.

◆ FG_MAG

#define FG_MAG   "35;"

Definition at line 60 of file opt_diags.cpp.

◆ FG_RED

#define FG_RED   "31;"

Definition at line 56 of file opt_diags.cpp.

◆ FG_WHT

#define FG_WHT   "37;"

Definition at line 62 of file opt_diags.cpp.

◆ FG_YLW

#define FG_YLW   "33;"

Definition at line 58 of file opt_diags.cpp.

Function Documentation

◆ _rw_setopt_diags()

int _rw_setopt_diags ( int  argc,
char *  argv[] 
)

Definition at line 179 of file opt_diags.cpp.

Variable Documentation

◆ diag_msgs

esc_text_t diag_msgs[]

Definition at line 74 of file opt_diags.cpp.