Thanks for packaging mpg123!
Trent W. Buck
trentbuck at gmail.com
Tue May 8 16:54:08 UTC 2012
> #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).
More information about the pkg-multimedia-maintainers
mailing list