File cf-0.3.1.obscpio of Package erlang-cf

07070100000000000081A4000003E800000064000000015941952C000005AB000000000000000000000000000000000000001100000000cf-0.3.1/LICENSECopyright (c) 2015, Project-FiFo UG
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.

* The names of its contributors may not be used to endorse or promote
  products derived from this software without specific prior written
  permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
07070100000001000081A4000003E800000064000000015941952C00000272000000000000000000000000000000000000001200000000cf-0.3.1/MakefileTERMCAP_FILE=http://code.metager.de/source/raw/OpenBSD/src/share/termtypes/termtypes.master

all: src/termcap.erl
	rebar3 compile

src/termcap.erl: termtypes.master.clean mk-termcap.escript termcap.erl
	./mk-termcap.escript termtypes.master.clean  > src/cf_term.erl

mk-termcap.escript:

termcap.erl:

clean:
	[ -f termtypes.master ] && rm termtypes.master || true
	[ -f termtypes.master.clean ] && rm termtypes.master.clean || true

compile:
	rebar3 compile

termtypes.master.clean: termtypes.master
	cat termtypes.master | grep -v '^#' | grep -v '^\s*$$' > termtypes.master.clean

termtypes.master:
	curl -O $(TERMCAP_FILE)
07070100000002000081A4000003E800000064000000015941952C00000381000000000000000000000000000000000000001300000000cf-0.3.1/README.mdcf
=====

A helper library for termial colour printing extending the io:format
syntax to add colours.

```erlang
%% Effectively the same as io:format just takes the additional color
%% console text colour can be set by ~!**<colour>**.  ~#**<colour>**
%% will change the background. Both ~# only work with lowercase colours.
%% An uppercase letersindicate bold colours.
%%
%% The colour can be one of:
%%
%%   !   - resets the output
%%   ^   - bold (no colour change)
%%   __  - (two _) makes text underlined (no colour change)
%%   x,X - black
%%   r,R - red
%%   g,G - greeen
%%   y,Y - yellow
%%   b,B - blue
%%   m,M - magenta
%%   c,C - cyan
%%   w,W - white
%%
%%  The function will disable colours on non x term termials
```

Build
-----

    $ rebar3 compile


Usage
-----

`cf:format/[1,2]` - an equivalent to `io_lib:format/[1,2]`.
`cf:print/[1,2]`  - an equivalent to `io:format/[1,2]`.07070100000003000081ED000003E800000064000000015941952C00000AF7000000000000000000000000000000000000001C00000000cf-0.3.1/mk-termcap.escript#!/usr/bin/env escript
main([In]) ->
    {ok, File} = file:open(In, [read]),
    case io:get_line(File, "") of
        eof ->
            file:close(File);
        Cap ->
            io:format("-module(cf_term).~n"),
            io:format("-export([has_color/1]).~n"),
            Terms = read_lines(File, {parse_name(Cap), ""}, []),
            Terms1 = [{T, has_color(Vs, Terms)} || {T, Vs} <- Terms],
            [io:format("has_color(~p) -> true;~n", [T]) || {T, true} <- Terms1],
            io:format("has_color(_) -> false.~n")
    end.

read_lines(File, {H, Acc}, FAcc) ->
    case io:get_line(File, "") of
        eof  ->
            file:close(File),
            lists:sort([{H, parse_caps(Acc)} | FAcc]);
        " " ++ Rest ->
            case Acc of
                "" ->
                    read_lines(File, {H, remove_newline(strip_ws(Rest))}, FAcc);
                _ ->
                    read_lines(File, {H, [Acc, " ", remove_newline(strip_ws(Rest))]}, FAcc)
            end;
        "\t" ++ Rest ->
            case Acc of
                "" ->
                    read_lines(File, {H, remove_newline(strip_ws(Rest))}, FAcc);
                _ ->
                    read_lines(File, {H, [Acc, " ", remove_newline(strip_ws(Rest))]}, FAcc)
            end;
        Cap ->
            read_lines(File, {parse_name(Cap), ""}, [{H, parse_caps(Acc)} | FAcc])
    end.

has_color([], _Ts) ->
    false;
has_color([{colors, _} | _], _Ts) ->
    true;
has_color([{use, T} | R], Ts) ->
    case orddict:find(T, Ts) of
        error ->
            has_color(R, Ts);
        {ok, V} ->
            has_color(V, Ts) orelse
                has_color(R, Ts)
    end.

remove_newline(S) ->
    remove_newline(S, []).

remove_newline("\n", Acc) ->
    lists:reverse(Acc);

remove_newline("", Acc) ->
    lists:reverse(Acc);
remove_newline([C | R], Acc) ->
    remove_newline(R, [C | Acc]).

strip_ws([$\s | R]) ->
    strip_ws(R);
strip_ws([$\t | R]) ->
    strip_ws(R);
strip_ws(R) ->
    R.

filter_caps([]) ->
    [];
filter_caps([{colors, _} = C | R]) ->
    [C | filter_caps(R)];
filter_caps([{use, _} = C | R]) ->
    [C | filter_caps(R)];
filter_caps([_ | R]) ->
    filter_caps(R).


remove_colon(S) ->
    re:replace(S, ",[\\s\\n\\t]*$", "", [{return,list}]).

parse_name(S) ->
    [Term | _Rest] = re:split(remove_colon(S), "\\|", [{return,list}]),
    Term.

parse_caps(S) ->
    Caps = re:split(remove_colon(S), ",[\\s\\t]+", [{return,list}]),
    filter_caps([parse_cap(C, []) || C <- Caps, C =/= ""]).

parse_cap([], Name) ->
    list_to_atom(lists:reverse(Name));
parse_cap([$= | V], Name) ->
    {list_to_atom(lists:reverse(Name)), V};
parse_cap([$# | V], Name) ->
    {list_to_atom(lists:reverse(Name)), list_to_integer(V)};
parse_cap([C | R], Name) ->
    parse_cap(R, [ C | Name]).

07070100000004000081A4000003E800000064000000015941952C00000092000000000000000000000000000000000000001600000000cf-0.3.1/rebar.config{erl_opts, [debug_info]}.
{deps, []}.

{profiles, [
            {shell, [
                    {deps, [sync]}
                   ]}
           ]}.
07070100000005000081A4000003E800000064000000015941952C00000004000000000000000000000000000000000000001400000000cf-0.3.1/rebar.lock[].
07070100000006000041ED000003E800000064000000025941952C00000000000000000000000000000000000000000000000D00000000cf-0.3.1/src07070100000007000081A4000003E800000064000000015941952C00000197000000000000000000000000000000000000001800000000cf-0.3.1/src/cf.app.src{application,cf,
             [{description,"Terminal colour helper"},
              {vsn, git},
              {registered,[]},
              {applications,[kernel,stdlib]},
              {env,[]},
              {modules,[]},
              {maintainers,["Heinz N. Gies <heinz@project-fifo.net>"]},
              {licenses,["MIT"]},
              {links,[{"github","https://github.com/project-fifo/cf"}]}]}.
07070100000008000081A4000003E800000064000000015941952C000014F4000000000000000000000000000000000000001400000000cf-0.3.1/src/cf.erl%%%-------------------------------------------------------------------
%%% @author Heinz Nikolaus Gies <heinz@project-fifo.net>
%%% @copyright (C) 2015, Project-FiFo UG
%%% @doc
%%% Printing library for coloured console output, extends the format
%%% strings by adding ~! (forground) ~# (background) and ~_ (underline)
%%% terminal colours.
%%% @end
%%% Created : 22 Sep 2015 by Heinz Nikolaus Gies <heinz@licenser.net>
%%%-------------------------------------------------------------------
-module(cf).


%% API exports
-export([format/1, format/2]).
-export([print/1,  print/2]).

%%====================================================================
%% API functions
%%====================================================================
%% @doc Prints a coloured string.
%% Effectively the same as io:format just takes the additional color
%% console text colour can be set by ~!**<colour>**.  ~#**<colour>**
%% will change the background. Both ~# only work with lowercase colours.
%% An uppercase letersindicate bold colours.
%% A `_` can be added after the ~! to make the text underlined.
%%
%% The colour can be one of:
%%
%%   !   - resets the output
%%   ^   - makes text bold
%%   x,X - black
%%   r,R - red
%%   g,G - greeen
%%   y,Y - yellow
%%   b,B - blue
%%   m,M - magenta
%%   c,C - cyan
%%   w,W - white
%%
%%  true color is supported by using
%%  ~!#<rr><gg><bb> as each as hex values so ~!#ff6402
%%
%%  the same can be done for the background by yusign ~##
%%
%%  The function will disable colours on non x term termials
%% @end
print(Fmt, Args) ->
    io:format(cfmt(Fmt), Args).

%% @doc Formates a coloured string
%% Arguments are the same as for print/2, just returns a string as
%% io_lib:format/2 does instead of printing it to stdout.
%% @end
format(Fmt, Args) ->
    io_lib:format(cfmt(Fmt), Args).


print(Fmt) ->
    print(Fmt, []).
format(Fmt) ->
    format(Fmt, []).

%%====================================================================
%% Internal functions
%%====================================================================


-define(NX,  "\033[0;30m").
-define(NR,  "\033[0;31m").
-define(NG,  "\033[0;32m").
-define(NY,  "\033[0;33m").
-define(NB,  "\033[0;34m").
-define(NM,  "\033[0;35m").
-define(NC,  "\033[0;36m").
-define(NW,  "\033[0;37m").
-define(BX,  "\033[1;30m").
-define(BR,  "\033[1;31m").
-define(BG,  "\033[1;32m").
-define(BY,  "\033[1;33m").
-define(BB,  "\033[1;34m").
-define(BM,  "\033[1;35m").
-define(BC,  "\033[1;36m").
-define(BW,  "\033[1;37m").
-define(U,   "\033[4m").
-define(B,   "\033[1m").
-define(BGX, "\033[40m").
-define(BGR, "\033[41m").
-define(BGG, "\033[42m").
-define(BGY, "\033[43m").
-define(BGB, "\033[44m").
-define(BGM, "\033[45m").
-define(BGC, "\033[46m").
-define(BGW, "\033[47m").
-define(R,   "\033[0m").
-define(CFMT(Char, Colour),
        cfmt_([$~, $!, Char | S], Enabled) -> [Colour | cfmt_(S, Enabled)];
        cfmt_([$~, $!,  $_, Char | S], Enabled) -> [Colour, ?U | cfmt_(S, Enabled)]).
-define(CFMT_BG(Char, Colour),
        cfmt_([$~, $#, Char | S], Enabled) -> [Colour | cfmt_(S, Enabled)]).
-define(CFMT_U(Char, Colour),
        cfmt_([$~, $_, Char | S], Enabled) -> [Colour | cfmt_(S, Enabled)]).

colour_term() ->
    case application:get_env(cf, colour_term) of
        {ok, V} ->
            V;
        undefined ->
            Term = os:getenv("TERM"),
            V = cf_term:has_color(Term),
            application:set_env(cf, colour_term, V),
            V
    end.

cfmt(S) ->
    cfmt(S, colour_term()).

cfmt(S, Enabled) ->
    lists:flatten(cfmt_(S, Enabled)).

cfmt_([$~, $!, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
    cfmt_(S, false);
cfmt_([$~, $#, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
    cfmt_(S, false);

cfmt_([$~, $!, $_, _C | S], false) ->
    cfmt_(S, false);
cfmt_([$~, $#, _C | S], false) ->
    cfmt_(S, false);
cfmt_([$~, $!, _C | S], false) ->
    cfmt_(S, false);

cfmt_([$~, $!, $#, R1, R2, G1, G2, B1, B2 | S], Enabled) ->
    R = list_to_integer([R1, R2], 16),
    G = list_to_integer([G1, G2], 16),
    B = list_to_integer([B1, B2], 16),
    ["\033[38;2;",
     integer_to_list(R), $;,
     integer_to_list(G), $;,
     integer_to_list(B), $m |
     cfmt_(S, Enabled)];

cfmt_([$~, $#, $#, R1, R2, G1, G2, B1, B2 | S], Enabled) ->
    R = list_to_integer([R1, R2], 16),
    G = list_to_integer([G1, G2], 16),
    B = list_to_integer([B1, B2], 16),
    ["\033[48;2;",
     integer_to_list(R), $;,
     integer_to_list(G), $;,
     integer_to_list(B), $m |
     cfmt_(S, Enabled)];

cfmt_([$~, $!, $_, $_ | S], Enabled) ->
    [?U |cfmt_(S, Enabled)];
cfmt_([$~,$!, $^ | S], Enabled) ->
    [?B | cfmt_(S, Enabled)];
cfmt_([$~,$!, $_, $^ | S], Enabled) ->
    [?U, ?B | cfmt_(S, Enabled)];

?CFMT($!, ?R);
?CFMT($x, ?NX);
?CFMT($X, ?BX);
?CFMT($r, ?NR);
?CFMT($R, ?BR);
?CFMT($g, ?NG);
?CFMT($G, ?BG);
?CFMT($y, ?NY);
?CFMT($Y, ?BY);
?CFMT($b, ?NB);
?CFMT($B, ?BB);
?CFMT($m, ?NM);
?CFMT($M, ?BM);
?CFMT($c, ?NC);
?CFMT($C, ?BC);
?CFMT($w, ?NW);
?CFMT($W, ?BW);

?CFMT_BG($x, ?BGX);
?CFMT_BG($r, ?BGR);
?CFMT_BG($g, ?BGG);
?CFMT_BG($y, ?BGY);
?CFMT_BG($b, ?BGB);
?CFMT_BG($m, ?BGM);
?CFMT_BG($c, ?BGC);
?CFMT_BG($w, ?BGW);

cfmt_([$~,$~ | S], Enabled) ->
    [$~,$~ | cfmt_(S, Enabled)];

cfmt_([C | S], Enabled) ->
    [C | cfmt_(S, Enabled)];

cfmt_([], false) ->
    "";
cfmt_([], _Enabled) ->
    ?R.
07070100000009000081A4000003E800000064000000015941952C00002F73000000000000000000000000000000000000001900000000cf-0.3.1/src/cf_term.erl-module(cf_term).
-export([has_color/1]).
has_color("Eterm") -> true;
has_color("Eterm-256color") -> true;
has_color("Eterm-88color") -> true;
has_color("aixterm") -> true;
has_color("aixterm-16color") -> true;
has_color("amiga-vnc") -> true;
has_color("ansi") -> true;
has_color("ansi-color-2-emx") -> true;
has_color("ansi-color-3-emx") -> true;
has_color("ansi-emx") -> true;
has_color("ansi.sys") -> true;
has_color("ansi.sys-old") -> true;
has_color("ansi.sysk") -> true;
has_color("arm100") -> true;
has_color("arm100-w") -> true;
has_color("aterm") -> true;
has_color("att6386") -> true;
has_color("beterm") -> true;
has_color("bsdos-pc") -> true;
has_color("bsdos-pc-nobold") -> true;
has_color("bsdos-ppc") -> true;
has_color("bterm") -> true;
has_color("color_xterm") -> true;
has_color("cons25") -> true;
has_color("cons25-debian") -> true;
has_color("cons25-m") -> true;
has_color("cons25l1") -> true;
has_color("cons25l1-m") -> true;
has_color("cons25r") -> true;
has_color("cons25r-m") -> true;
has_color("cons25w") -> true;
has_color("cons30") -> true;
has_color("cons30-m") -> true;
has_color("cons43") -> true;
has_color("cons43-m") -> true;
has_color("cons50") -> true;
has_color("cons50-m") -> true;
has_color("cons50l1") -> true;
has_color("cons50l1-m") -> true;
has_color("cons50r") -> true;
has_color("cons50r-m") -> true;
has_color("cons60") -> true;
has_color("cons60-m") -> true;
has_color("cons60l1") -> true;
has_color("cons60l1-m") -> true;
has_color("cons60r") -> true;
has_color("cons60r-m") -> true;
has_color("crt") -> true;
has_color("ctrm") -> true;
has_color("cygwin") -> true;
has_color("cygwinB19") -> true;
has_color("cygwinDBG") -> true;
has_color("d220") -> true;
has_color("d220-7b") -> true;
has_color("d220-dg") -> true;
has_color("d230c") -> true;
has_color("d230c-dg") -> true;
has_color("d430c-dg") -> true;
has_color("d430c-dg-ccc") -> true;
has_color("d430c-unix") -> true;
has_color("d430c-unix-25") -> true;
has_color("d430c-unix-25-ccc") -> true;
has_color("d430c-unix-ccc") -> true;
has_color("d430c-unix-s") -> true;
has_color("d430c-unix-s-ccc") -> true;
has_color("d430c-unix-sr") -> true;
has_color("d430c-unix-sr-ccc") -> true;
has_color("d430c-unix-w") -> true;
has_color("d430c-unix-w-ccc") -> true;
has_color("d470c") -> true;
has_color("d470c-7b") -> true;
has_color("d470c-dg") -> true;
has_color("decansi") -> true;
has_color("dg+ccc") -> true;
has_color("dg+color") -> true;
has_color("dg+color8") -> true;
has_color("dg+fixed") -> true;
has_color("dgmode+color") -> true;
has_color("dgmode+color8") -> true;
has_color("dgunix+ccc") -> true;
has_color("dgunix+fixed") -> true;
has_color("djgpp") -> true;
has_color("djgpp204") -> true;
has_color("dtterm") -> true;
has_color("ecma+color") -> true;
has_color("emu") -> true;
has_color("emx-base") -> true;
has_color("eterm-color") -> true;
has_color("gnome") -> true;
has_color("gnome-2007") -> true;
has_color("gnome-2008") -> true;
has_color("gnome-2012") -> true;
has_color("gnome-256color") -> true;
has_color("gnome-fc5") -> true;
has_color("gnome-rh62") -> true;
has_color("gnome-rh72") -> true;
has_color("gnome-rh80") -> true;
has_color("gnome-rh90") -> true;
has_color("gs6300") -> true;
has_color("hft-c") -> true;
has_color("hft-c-old") -> true;
has_color("hft-old") -> true;
has_color("hp+color") -> true;
has_color("hp2397a") -> true;
has_color("hpterm-color") -> true;
has_color("hurd") -> true;
has_color("iTerm.app") -> true;
has_color("ibm+16color") -> true;
has_color("ibm+color") -> true;
has_color("ibm3164") -> true;
has_color("ibm5081") -> true;
has_color("ibm5154") -> true;
has_color("ibm6154") -> true;
has_color("ibm8503") -> true;
has_color("ibm8512") -> true;
has_color("ibmpc3") -> true;
has_color("interix") -> true;
has_color("iris-color") -> true;
has_color("jaixterm") -> true;
has_color("klone+color") -> true;
has_color("kon") -> true;
has_color("konsole") -> true;
has_color("konsole-16color") -> true;
has_color("konsole-256color") -> true;
has_color("konsole-base") -> true;
has_color("konsole-linux") -> true;
has_color("konsole-solaris") -> true;
has_color("konsole-vt100") -> true;
has_color("konsole-vt420pc") -> true;
has_color("konsole-xf3x") -> true;
has_color("konsole-xf4x") -> true;
has_color("kterm") -> true;
has_color("kterm-color") -> true;
has_color("kvt") -> true;
has_color("linux") -> true;
has_color("linux-16color") -> true;
has_color("linux-basic") -> true;
has_color("linux-c") -> true;
has_color("linux-c-nc") -> true;
has_color("linux-koi8") -> true;
has_color("linux-koi8r") -> true;
has_color("linux-lat") -> true;
has_color("linux-m") -> true;
has_color("linux-nic") -> true;
has_color("linux-vt") -> true;
has_color("linux2.2") -> true;
has_color("linux2.6") -> true;
has_color("linux2.6.26") -> true;
has_color("linux3.0") -> true;
has_color("mach-color") -> true;
has_color("mach-gnu-color") -> true;
has_color("mgt") -> true;
has_color("mgterm") -> true;
has_color("minitel1") -> true;
has_color("minitel1b") -> true;
has_color("minitel1b-80") -> true;
has_color("minix") -> true;
has_color("minix-3.0") -> true;
has_color("mlterm") -> true;
has_color("mlterm-256color") -> true;
has_color("mlterm2") -> true;
has_color("mlterm3") -> true;
has_color("mrxvt") -> true;
has_color("mrxvt-256color") -> true;
has_color("ms-vt-utf8") -> true;
has_color("ms-vt100+") -> true;
has_color("ms-vt100-color") -> true;
has_color("mvterm") -> true;
has_color("nansi.sys") -> true;
has_color("nansi.sysk") -> true;
has_color("ncr260intan") -> true;
has_color("ncr260intpp") -> true;
has_color("ncr260intwan") -> true;
has_color("ncr260intwpp") -> true;
has_color("ncr260wy325pp") -> true;
has_color("ncr260wy325wpp") -> true;
has_color("ncr260wy350pp") -> true;
has_color("ncr260wy350wpp") -> true;
has_color("ncsa") -> true;
has_color("ncsa-ns") -> true;
has_color("ncsa-vt220") -> true;
has_color("netbsd6") -> true;
has_color("nsterm") -> true;
has_color("nsterm+c") -> true;
has_color("nsterm+c41") -> true;
has_color("nsterm-16color") -> true;
has_color("nsterm-256color") -> true;
has_color("nsterm-7") -> true;
has_color("nsterm-7-c") -> true;
has_color("nsterm-acs") -> true;
has_color("nsterm-bce") -> true;
has_color("nsterm-build326") -> true;
has_color("nsterm-build343") -> true;
has_color("nsterm-c") -> true;
has_color("nsterm-c-acs") -> true;
has_color("nsterm-c-s") -> true;
has_color("nsterm-c-s-7") -> true;
has_color("nsterm-c-s-acs") -> true;
has_color("nsterm-old") -> true;
has_color("nsterm-s") -> true;
has_color("nsterm-s-7") -> true;
has_color("nsterm-s-acs") -> true;
has_color("pc-minix") -> true;
has_color("pc3") -> true;
has_color("pcansi") -> true;
has_color("pcansi-25") -> true;
has_color("pcansi-33") -> true;
has_color("pcansi-43") -> true;
has_color("pccon") -> true;
has_color("pccon+colors") -> true;
has_color("pccon0") -> true;
has_color("pcvt25-color") -> true;
has_color("putty") -> true;
has_color("putty-256color") -> true;
has_color("putty-sco") -> true;
has_color("putty-vt100") -> true;
has_color("qansi") -> true;
has_color("qansi-g") -> true;
has_color("qansi-m") -> true;
has_color("qansi-t") -> true;
has_color("qansi-w") -> true;
has_color("qnx") -> true;
has_color("rcons-color") -> true;
has_color("rxvt") -> true;
has_color("rxvt-16color") -> true;
has_color("rxvt-256color") -> true;
has_color("rxvt-88color") -> true;
has_color("rxvt-color") -> true;
has_color("rxvt-cygwin") -> true;
has_color("rxvt-cygwin-native") -> true;
has_color("rxvt-unicode") -> true;
has_color("rxvt-unicode-256color") -> true;
has_color("rxvt-xpm") -> true;
has_color("scoansi") -> true;
has_color("scoansi-new") -> true;
has_color("scoansi-old") -> true;
has_color("screen") -> true;
has_color("screen-16color") -> true;
has_color("screen-16color-bce") -> true;
has_color("screen-16color-bce-s") -> true;
has_color("screen-16color-s") -> true;
has_color("screen-256color") -> true;
has_color("screen-256color-bce") -> true;
has_color("screen-256color-bce-s") -> true;
has_color("screen-256color-s") -> true;
has_color("screen-bce") -> true;
has_color("screen-bce.Eterm") -> true;
has_color("screen-bce.gnome") -> true;
has_color("screen-bce.konsole") -> true;
has_color("screen-bce.linux") -> true;
has_color("screen-bce.mrxvt") -> true;
has_color("screen-bce.rxvt") -> true;
has_color("screen-s") -> true;
has_color("screen-w") -> true;
has_color("screen.Eterm") -> true;
has_color("screen.gnome") -> true;
has_color("screen.konsole") -> true;
has_color("screen.konsole-256color") -> true;
has_color("screen.linux") -> true;
has_color("screen.mlterm") -> true;
has_color("screen.mlterm-256color") -> true;
has_color("screen.mrxvt") -> true;
has_color("screen.putty") -> true;
has_color("screen.putty-256color") -> true;
has_color("screen.rxvt") -> true;
has_color("screen.teraterm") -> true;
has_color("screen.vte") -> true;
has_color("screen.vte-256color") -> true;
has_color("screen.xterm-256color") -> true;
has_color("screen.xterm-xfree86") -> true;
has_color("simpleterm") -> true;
has_color("st") -> true;
has_color("st-16color") -> true;
has_color("st-256color") -> true;
has_color("st52-color") -> true;
has_color("sun-color") -> true;
has_color("tek4205") -> true;
has_color("teken") -> true;
has_color("teraterm") -> true;
has_color("teraterm2.3") -> true;
has_color("teraterm4.59") -> true;
has_color("terminator") -> true;
has_color("terminology") -> true;
has_color("ti928") -> true;
has_color("ti928-8") -> true;
has_color("ti_ansi") -> true;
has_color("tmux") -> true;
has_color("tmux-256color") -> true;
has_color("tw100") -> true;
has_color("tw52") -> true;
has_color("uwin") -> true;
has_color("vte") -> true;
has_color("vte-2007") -> true;
has_color("vte-2008") -> true;
has_color("vte-2012") -> true;
has_color("vte-2014") -> true;
has_color("vte-256color") -> true;
has_color("vwmterm") -> true;
has_color("wsvt25") -> true;
has_color("wsvt25m") -> true;
has_color("wy350") -> true;
has_color("wy350-vb") -> true;
has_color("wy350-w") -> true;
has_color("wy350-wvb") -> true;
has_color("wy370") -> true;
has_color("wy370-105k") -> true;
has_color("wy370-EPC") -> true;
has_color("wy370-nk") -> true;
has_color("wy370-rv") -> true;
has_color("wy370-vb") -> true;
has_color("wy370-w") -> true;
has_color("wy370-wvb") -> true;
has_color("xfce") -> true;
has_color("xiterm") -> true;
has_color("xnuppc") -> true;
has_color("xnuppc+c") -> true;
has_color("xnuppc-100x37") -> true;
has_color("xnuppc-112x37") -> true;
has_color("xnuppc-128x40") -> true;
has_color("xnuppc-128x48") -> true;
has_color("xnuppc-144x48") -> true;
has_color("xnuppc-160x64") -> true;
has_color("xnuppc-200x64") -> true;
has_color("xnuppc-200x75") -> true;
has_color("xnuppc-256x96") -> true;
has_color("xnuppc-80x25") -> true;
has_color("xnuppc-80x30") -> true;
has_color("xnuppc-90x30") -> true;
has_color("xnuppc-b") -> true;
has_color("xnuppc-f") -> true;
has_color("xnuppc-f2") -> true;
has_color("xterm") -> true;
has_color("xterm+256color") -> true;
has_color("xterm+256setaf") -> true;
has_color("xterm+88color") -> true;
has_color("xterm-1002") -> true;
has_color("xterm-1003") -> true;
has_color("xterm-1005") -> true;
has_color("xterm-1006") -> true;
has_color("xterm-16color") -> true;
has_color("xterm-256color") -> true;
has_color("xterm-88color") -> true;
has_color("xterm-8bit") -> true;
has_color("xterm-basic") -> true;
has_color("xterm-color") -> true;
has_color("xterm-hp") -> true;
has_color("xterm-new") -> true;
has_color("xterm-nic") -> true;
has_color("xterm-noapp") -> true;
has_color("xterm-sco") -> true;
has_color("xterm-sun") -> true;
has_color("xterm-utf8") -> true;
has_color("xterm-vt220") -> true;
has_color("xterm-x10mouse") -> true;
has_color("xterm-x11hilite") -> true;
has_color("xterm-x11mouse") -> true;
has_color("xterm-xf86-v32") -> true;
has_color("xterm-xf86-v33") -> true;
has_color("xterm-xf86-v333") -> true;
has_color("xterm-xf86-v40") -> true;
has_color("xterm-xf86-v43") -> true;
has_color("xterm-xf86-v44") -> true;
has_color("xterm-xfree86") -> true;
has_color("xterm-xi") -> true;
has_color("xterm1") -> true;
has_color("xtermc") -> true;
has_color("xterms-sun") -> true;
has_color(_) -> false.
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!50 blocks
openSUSE Build Service is sponsored by