command status field

Is there a way to increase the space that displays the command status field? that is the field on the left on the same line as volume level indicator and playlist total play time. Most importantly I would like it displays properly the equaliser file name when it is longer than the field. Below is an example showing trimmed equaliser file name. When setting equalisers I usually try different setup through several files which I number at the end. So here it is not shown. Also if moc could ignore files ending with "~".

├───┤EQ set to: rock_jvc_he...├───...────┤ Global 23% ├───┤ 000:93:12├
.

For now, not without modifying code.

If you are able to patch MOC yourself, you could try something like:

Index: interface_elements.c =================================================================== --- interface_elements.c (revision 2953) +++ interface_elements.c (working copy) @@ -239,7 +239,7 @@ static struct info_win int plist_time_for_all; /* is the above time for all files? */ char *title; /* title of the played song. */ - char status_msg[26]; /* status message */ + char status_msg[36]; /* status message */ int state_play; /* STATE_(PLAY | STOP | PAUSE) */ /* Saved user reply callback data. */ Index: server.c =================================================================== --- server.c (revision 2953) +++ server.c (working copy) @@ -1274,22 +1274,22 @@ void req_toggle_softmixer () void update_eq_name() { - char buffer[27]; + char buffer[37]; char *n = equalizer_current_eqname(); int l = strlen(n); - /* Status message can only take strings up to 25 chars + /* Status message can only take strings up to 35 chars * (Without terminating zero). * The message header has 11 chars (EQ set to...). */ - if (l > 14) + if (l > 24) { - n[14] = 0; - n[13] = '.'; - n[12] = '.'; - n[11] = '.'; + n[24] = 0; + n[23] = '.'; + n[22] = '.'; + n[21] = '.'; } sprintf(buffer, "EQ set to: %s", n);
Also if moc could ignore files ending with "~"

Well, it does it now for me, files ending with '~' are not seen in dir view.

which version of moc was your patch generated against?

The newest revision from SVN.

Well, it does it now for me, files ending with '~' are not seen in dir view.

I meant for the equaliser preset files.
... by the way ... the patch works. It increased the space by 10.

This is not tested, just my call, you could try something like:

Index: equalizer.c =================================================================== --- equalizer.c (revision 2953) +++ equalizer.c (working copy) @@ -556,6 +556,12 @@ void equalizer_refresh() while(de) { + /* Ignore presets ending with '~' */ + if (de->d_name[strlen (de->d_name)-1] == '~') { + de = readdir(d); + continue; + } + sprintf(buf, "eqsets/%s", de->d_name); char *filename = xstrdup(create_file_name(buf));