tmux  3.2a
About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.
  Fossies Dox: tmux-3.2a.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

style.c File Reference
#include <sys/types.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "tmux.h"
Include dependency graph for style.c:

Go to the source code of this file.

Macros

#define STYLE_ATTR_MASK   (~0)
 

Functions

int style_parse (struct style *sy, const struct grid_cell *base, const char *in)
 
const char * style_tostring (struct style *sy)
 
void style_add (struct grid_cell *gc, struct options *oo, const char *name, struct format_tree *ft)
 
void style_apply (struct grid_cell *gc, struct options *oo, const char *name, struct format_tree *ft)
 
void style_set (struct style *sy, const struct grid_cell *gc)
 
void style_copy (struct style *dst, struct style *src)
 

Variables

static struct style style_default
 

Macro Definition Documentation

◆ STYLE_ATTR_MASK

#define STYLE_ATTR_MASK   (~0)

Definition at line 29 of file style.c.

Function Documentation

◆ style_add()

void style_add ( struct grid_cell gc,
struct options oo,
const char *  name,
struct format_tree ft 
)

◆ style_apply()

◆ style_copy()

void style_copy ( struct style dst,
struct style src 
)

Definition at line 315 of file style.c.

Referenced by format_draw(), and style_parse().

◆ style_parse()

◆ style_set()

void style_set ( struct style sy,
const struct grid_cell gc 
)

Definition at line 307 of file style.c.

References style::gc, and style_default.

Referenced by format_draw(), and options_string_to_style().

◆ style_tostring()

Variable Documentation

◆ style_default

struct style style_default
static
Initial value:
= {
{ { { ' ' }, 0, 1, 1 }, 0, 0, 8, 8, 0 },
0,
8,
}
@ STYLE_LIST_OFF
Definition: tmux.h:766
@ STYLE_DEFAULT_BASE
Definition: tmux.h:793
@ STYLE_ALIGN_DEFAULT
Definition: tmux.h:757
@ STYLE_RANGE_NONE
Definition: tmux.h:775

Definition at line 1 of file style.c.

Referenced by style_add(), style_parse(), and style_set().