NeoMutt  2021-02-05-89-gabe350
Teaching an old dog new tricks
status.h File Reference
#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 Menu *menu, struct Mailbox *m, const char *p)
 Create the status line. More...


struct MbTableC_StatusChars
 Config: Indicator characters for the status bar. 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 Menu menu,
struct Mailbox m,
const char *  p 

Create the status line.

[out]bufBuffer in which to save string
[in]buflenBuffer length
[in]menuCurrent menu
[in]mCurrent Mailbox
[in]pFormat string

Definition at line 420 of file status.c.

422 {
423  struct MenuStatusLineData data = { .menu = menu, .m = m };
424  mutt_expando_format(buf, buflen, 0, menu ? menu->win_ibar->state.cols : buflen, p,
425  status_format_str, (intptr_t) &data, MUTT_FORMAT_NO_FLAGS);
426 }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ C_StatusChars

struct MbTable* C_StatusChars

Config: Indicator characters for the status bar.

Definition at line 49 of file status.c.

struct Mailbox * m
Definition: status.c:72
struct Menu * menu
Definition: status.c:71
No flags are set.
Definition: format_flags.h:30
struct MuttWindow * win_ibar
Definition: mutt_menu.h:64
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:103
struct WindowState state
Current state of the Window.
Definition: mutt_window.h:120
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:774
Data for creating a Menu line.
Definition: status.c:69
short cols
Number of columns, can be MUTT_WIN_SIZE_UNLIMITED.
Definition: mutt_window.h:57