/*********************************************************************** * Copyright (C) 2021 Prosource (CLI Systems LLC) * https://prosource.dev * * License: * THIS SOURCE CODE IS PART OF THE prosource.dev EMBEDDED SYSTEM * KNOWLEDGE-BASE. This source code is a Free Solution as defined * in the Prosource Usage License and is provided under the * Creative Commons Attribution 4.0 International (CC BY 4.0) license * as defined at https://creativecommons.org/licenses/by/4.0/ * * This source code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED * ***********************************************************************/ #include #include "vt100colors.h" int main(int argc, char ** argv) { printf("Running...\n"); BOLD(); printf("Colors loaded!\n"); NORMAL(); RED(); printf("Error!\n"); BOLD(); printf("Bold Error!\n"); NORMAL(); NOCOLOR(); UL(); GREEN(); printf("Underline\n"); NORMAL(); UL2(); GREEN(); printf("Double underline\n"); NORMAL(); UL3(); GREEN(); printf("Wavy underline\n"); NORMAL(); LOWINT(); GREEN(); printf("Low int\n"); NORMAL(); BLINK(); GREEN(); printf("Blink\n"); NORMAL(); ITALIC(); GREEN(); printf("Italics\n"); NORMAL(); OL(); GREEN(); printf("Overline\n"); NORMAL(); HIDDEN(); GREEN(); printf("Hidden?"); NORMAL(); printf("<--- hidden but can be copied\n"); STRIKE(); GREEN(); printf("Strike out\n"); NORMAL(); GREEN(); printf("Green\n"); YELLOW(); printf("Yellow\n"); BLUE(); printf("Blue\n"); WHITE(); printf("White\n"); MAGENTA(); printf("Magenta\n"); CYAN(); printf("Cyan\n"); NOCOLOR(); BG_MAGENTA(); GREEN(); printf("Use color in background"); BG_NONE(); printf("\n"); BG_BLUE(); RED(); printf("All the colors"); BG_NONE(); printf("\n"); BG_WHITE(); BOLD(); BLACK(); printf("Manual reverse"); BG_NONE(); printf("\n"); INV(); UL(); RED(); printf("Inverse!\n"); NORMAL(); BG_RED(); printf("\n"); BG_GREEN(); printf("\n"); BG_BLUE(); printf("\n"); BG_NONE(); printf("\n\n"); NOCOLOR(); BG_RED(); printf(" R "); BG_NONE(); BG_GREEN(); printf(" G "); BG_NONE(); BG_BLUE(); printf(" B "); BG_NONE(); printf("\n"); BG_NONE(); NORMAL(); NOCOLOR(); printf("Back to default color\n"); printf("Ending...\n"); return 0; }