> #if !defined(GENERIC) > { > const char *term_type; > term_type = getenv("TERM"); > if (term_type && param.xterm_title && > (!strncmp(term_type,"xterm",5) || !strncmp(term_type,"rxvt",4))) > { > fprintf(stderr, "\033]0;%s\007", filename); > } > } > #endif
FYI, this operation is also valid in GNU Screen, so suggest adding a strncmp for that as well. Like xterm, it can be e.g. screen-256colors &c as well as just screen, so only compare the leading 6 chars. I'm not actually using this feature, because e.g. mpg123 --title http://radio1.internode.on.net:8000/10 sets the title to "10" instead of anything useful (e.g. ICY-NAME or ICY-META StreamTitle). _______________________________________________ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers