NeoMutt  2023-11-03-107-g582dc1
Teaching an old dog new tricks
No Matches
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.

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
See also

Definition at line 477 of file status.c.

480 struct MenuStatusLineData data = { shared, menu };
482 mutt_expando_format(buf, buflen, 0, cols, fmt, status_format_str,
483 (intptr_t) &data, MUTT_FORMAT_NO_FLAGS);
No flags are set.
Definition: format_flags.h:30
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 -.
Definition: status.c:100
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:739
Data for creating a Menu line.
Definition: status.c:66
struct IndexSharedData * shared
Data shared between Index, Pager and Sidebar.
Definition: status.c:67
struct Menu * menu
Current Menu.
Definition: status.c:68
+ Here is the call graph for this function:
+ Here is the caller graph for this function: