X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftic.c;h=eeb209a7f4bd0476f352848c4f45c73bb5e003dd;hp=fef78ee0745e198c61445deebc4952fce65f0c79;hb=0a402bd0b857c98eb9f254cb5e798394aa8dbdf8;hpb=1165d1f8ac504fa9adbf46ed157333ed36642945 diff --git a/progs/tic.c b/progs/tic.c index fef78ee0..eeb209a7 100644 --- a/progs/tic.c +++ b/progs/tic.c @@ -46,7 +46,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.189 2013/11/16 19:58:09 tom Exp $") +MODULE_ID("$Id: tic.c,v 1.190 2014/03/29 19:45:18 tom Exp $") #define STDIN_NAME "" @@ -1114,6 +1114,17 @@ check_colors(TERMTYPE *tp) if (!VALID_STRING(orig_pair) && !VALID_STRING(orig_colors)) _nc_warning("expected either op/oc string for resetting colors"); } + if (can_change) { + if (!VALID_STRING(initialize_pair) && + !VALID_STRING(initialize_color)) { + _nc_warning("expected initc or initp because ccc is given"); + } + } else { + if (VALID_STRING(initialize_pair) || + VALID_STRING(initialize_color)) { + _nc_warning("expected ccc because initc is given"); + } + } } static char