NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
status.h File Reference

GUI display a user-configurable status line. More...

#include <stdio.h>
+ Include dependency graph for status.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void menu_status_line (char *buf, size_t buflen, struct IndexSharedData *shared, struct Menu *menu, int cols, const char *fmt)
 Create the status line. More...

Detailed Description

GUI display a user-configurable status line.

  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file status.h.

Function Documentation

◆ menu_status_line()

void menu_status_line ( char *  buf,
size_t  buflen,
struct IndexSharedData shared,
struct Menu menu,
int  cols,
const char *  fmt 

Create the status line.

[out]bufBuffer in which to save string
[in]buflenBuffer length
[in]sharedShared Index data
[in]menuCurrent menu
[in]colsMaximum number of columns to use
[in]fmtFormat string

Definition at line 445 of file status.c.

447 {
448  struct MenuStatusLineData data = { shared, menu };
450  mutt_expando_format(buf, buflen, 0, cols, fmt, status_format_str,
451  (intptr_t) &data, MUTT_FORMAT_NO_FLAGS);
452 }
static const char * status_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags)
Create the status bar string - Implements format_t -Expando Description %b Number of incoming folder...
Definition: status.c:102
void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const char *src, format_t callback, intptr_t data, MuttFormatFlags flags)
Expand expandos (x) in a string -.
Definition: muttlib.c:780
No flags are set.
Definition: format_flags.h:30
Data for creating a Menu line.
Definition: status.c:67
struct IndexSharedData * shared
Data shared between Index, Pager and Sidebar.
Definition: status.c:69
+ Here is the call graph for this function:
+ Here is the caller graph for this function: