GUI display a user-configurable status line. More...
#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "status.h"
#include "context.h"
#include "format_flags.h"
#include "mutt_globals.h"
#include "mutt_mailbox.h"
#include "mutt_menu.h"
#include "muttlib.h"
#include "options.h"
#include "protos.h"
#include "sort.h"
Go to the source code of this file.
Data Structures | |
struct | MenuStatusLineData |
Data for creating a Menu line. More... | |
Functions | |
static char * | get_sort_str (char *buf, size_t buflen, enum SortType method) |
Get the sort method as a string. More... | |
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. More... | |
void | menu_status_line (char *buf, size_t buflen, struct Menu *menu, struct Mailbox *m, const char *p) |
Create the status line. More... | |
Variables | |
struct MbTable * | C_StatusChars |
Config: Indicator characters for the status bar. More... | |
GUI display a user-configurable status line.
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 http://www.gnu.org/licenses/.
Definition in file status.c.
|
static |
Get the sort method as a string.
ptr | Buffer pointer |
Definition at line 58 of file status.c.
|
static |
Create the status bar string - Implements format_t.
Expando | Description |
---|---|
%b | Number of incoming folders with unread messages |
%D | Description of the mailbox |
%d | Number of deleted messages |
%f | Full mailbox path |
%F | Number of flagged messages |
%h | Hostname |
%l | Length of mailbox (in bytes) |
%L | Size (in bytes) of the messages shown (or limited) |
%M | Number of messages shown (virtual message count when limiting) |
%m | Total number of messages |
%n | Number of new messages |
%o | Number of old unread messages |
%p | Number of postponed messages |
%P | Percent of way through index |
%R | Number of read messages |
%r | Readonly/wontwrite/changed flag |
%S | Current aux sorting method ($sort_aux ) |
%s | Current sorting method ($sort ) |
%t | Number of tagged messages |
%u | Number of unread messages |
%V | Currently active limit pattern |
%v | NeoMutt version |
Definition at line 103 of file status.c.
void menu_status_line | ( | char * | buf, |
size_t | buflen, | ||
struct Menu * | menu, | ||
struct Mailbox * | m, | ||
const char * | p | ||
) |
Create the status line.
[out] | buf | Buffer in which to save string |
[in] | buflen | Buffer length |
[in] | menu | Current menu |
[in] | m | Current Mailbox |
[in] | p | Format string |
Definition at line 420 of file status.c.