# ConsoleMode.class.php

Go to the documentation of this file.

    00001 <?php
    00002 /***************************************************************************
    00003  *   Copyright (C) 2006-2007 by Konstantin V. Arkhipov                     *
    00004  *                                                                         *
    00005  *   This program is free software; you can redistribute it and/or modify  *
    00006  *   it under the terms of the GNU Lesser General Public License as        *
    00007  *   published by the Free Software Foundation; either version 3 of the    *
    00008  *   License, or (at your option) any later version.                       *
    00009  *                                                                         *
    00010  ***************************************************************************/
    00011
    00017     final class ConsoleMode /* extends StaticFactory */
    00018     {
    00019         const ATTR_RESET_ALL        = 0;
    00020         const ATTR_BOLD             = 1;
    00021         const ATTR_HALF_BRIGHT      = 2;
    00022         const ATTR_UNDERSCORE       = 4;
    00023         const ATTR_BLINK            = 5;
    00024         const ATTR_REVERSE_VIDEO    = 7;
    00025
    00026         // unused attributes: 10, 11, 12, 21, 22, 24, 25, 27
    00027
    00028         const FG_BLACK              = 30;
    00029         const FG_RED                = 31;
    00030         const FG_GREEN              = 32;
    00031         const FG_BROWN              = 33;
    00032         const FG_BLUE               = 34;
    00033         const FG_MAGENTA            = 35;
    00034         const FG_CYAN               = 36;
    00035         const FG_WHITE              = 37;
    00036
    00037         // unused foregrounds: 38, 39
    00038
    00039         const BG_BLACK              = 40;
    00040         const BG_RED                = 41;
    00041         const BG_GREEN              = 42;
    00042         const BG_BROWN              = 43;
    00043         const BG_BLUE               = 44;
    00044         const BG_MAGENTA            = 45;
    00045         const BG_CYAN               = 46;
    00046         const BG_WHITE              = 47;
    00047
    00048         // unused background: 49
    00049     }
    00050 ?>