Author: kmachalkova Date: Thu Jun 14 17:05:34 2007 New Revision: 38468 URL: http://svn.opensuse.org/viewcvs/yast?rev=38468&view=rev Log: Use fnmatch Modified: trunk/ncurses/src/NCstyle.cc Modified: trunk/ncurses/src/NCstyle.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCstyle.cc?rev=38468&r1=38467&r2=38468&view=diff ============================================================================== --- trunk/ncurses/src/NCstyle.cc (original) +++ trunk/ncurses/src/NCstyle.cc Thu Jun 14 17:05:34 2007 @@ -315,7 +315,7 @@ if ( getenv( "Y2_BRAILLE" ) != NULL ) { styleName = "braille"; } else { - if ( term_t == "xterm" ) + if ( ! fnmatch("xterm*", term_t.c_str(), 0) ) styleName = "xterm"; else if ( ! fnmatch("rxvt*", term_t.c_str(), 0)) styleName = "rxvt"; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org