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)  

status.c File Reference
#include <sys/types.h>
#include <sys/time.h>
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "tmux.h"
Include dependency graph for status.c:

Go to the source code of this file.

Data Structures

struct  status_prompt_menu
 

Macros

#define PROMPT_HISTORY   100
 

Functions

static void status_message_callback (int, short, void *)
 
static void status_timer_callback (int, short, void *)
 
static char * status_prompt_find_history_file (void)
 
static const char * status_prompt_up_history (u_int *)
 
static const char * status_prompt_down_history (u_int *)
 
static void status_prompt_add_history (const char *)
 
static char * status_prompt_complete (struct client *, const char *, u_int)
 
static char * status_prompt_complete_window_menu (struct client *, struct session *, const char *, u_int, char)
 
void status_prompt_load_history (void)
 
void status_prompt_save_history (void)
 
void status_timer_start (struct client *c)
 
void status_timer_start_all (void)
 
void status_update_cache (struct session *s)
 
int status_at_line (struct client *c)
 
u_int status_line_size (struct client *c)
 
struct style_rangestatus_get_range (struct client *c, u_int x, u_int y)
 
static void status_free_ranges (struct style_ranges *srs)
 
static void status_push_screen (struct client *c)
 
static void status_pop_screen (struct client *c)
 
void status_init (struct client *c)
 
void status_free (struct client *c)
 
int status_redraw (struct client *c)
 
void status_message_set (struct client *c, int delay, int ignore_styles, int ignore_keys, const char *fmt,...)
 
void status_message_clear (struct client *c)
 
int status_message_redraw (struct client *c)
 
void status_prompt_set (struct client *c, struct cmd_find_state *fs, const char *msg, const char *input, prompt_input_cb inputcb, prompt_free_cb freecb, void *data, int flags)
 
void status_prompt_clear (struct client *c)
 
void status_prompt_update (struct client *c, const char *msg, const char *input)
 
int status_prompt_redraw (struct client *c)
 
static int status_prompt_in_list (const char *ws, const struct utf8_data *ud)
 
static int status_prompt_space (const struct utf8_data *ud)
 
static int status_prompt_translate_key (struct client *c, key_code key, key_code *new_key)
 
static int status_prompt_paste (struct client *c)
 
static int status_prompt_replace_complete (struct client *c, const char *s)
 
int status_prompt_key (struct client *c, key_code key)
 
static char ** status_prompt_complete_list (u_int *size, const char *s, int at_start)
 
static char * status_prompt_complete_prefix (char **list, u_int size)
 
static void status_prompt_menu_callback (struct menu *menu, u_int idx, key_code key, void *data)
 
static int status_prompt_complete_list_menu (struct client *c, char **list, u_int size, u_int offset, char flag)
 
static int status_prompt_complete_sort (const void *a, const void *b)
 
static char * status_prompt_complete_session (char ***list, u_int *size, const char *s, char flag)
 

Variables

static char ** status_prompt_hlist
 
static u_int status_prompt_hsize
 

Macro Definition Documentation

◆ PROMPT_HISTORY

#define PROMPT_HISTORY   100

Definition at line 53 of file status.c.

Function Documentation

◆ status_at_line()

◆ status_free()

◆ status_free_ranges()

static void status_free_ranges ( struct style_ranges *  srs)
static

Definition at line 252 of file status.c.

Referenced by status_free(), and status_redraw().

◆ status_get_range()

struct style_range* status_get_range ( struct client c,
u_int  x,
u_int  y 
)

◆ status_init()

◆ status_line_size()

◆ status_message_callback()

static void status_message_callback ( int  fd,
short  event,
void *  data 
)
static

Definition at line 487 of file status.c.

References status_message_clear().

Referenced by status_message_set().

◆ status_message_clear()

◆ status_message_redraw()

◆ status_message_set()

◆ status_pop_screen()

static void status_pop_screen ( struct client c)
static

◆ status_prompt_add_history()

static void status_prompt_add_history ( const char *  line)
static

◆ status_prompt_clear()

◆ status_prompt_complete()

◆ status_prompt_complete_list()

static char** status_prompt_complete_list ( u_int *  size,
const char *  s,
int  at_start 
)
static

◆ status_prompt_complete_list_menu()

◆ status_prompt_complete_prefix()

static char* status_prompt_complete_prefix ( char **  list,
u_int  size 
)
static

Definition at line 1467 of file status.c.

References xstrdup().

Referenced by status_prompt_complete(), and status_prompt_complete_session().

◆ status_prompt_complete_session()

static char* status_prompt_complete_session ( char ***  list,
u_int *  size,
const char *  s,
char  flag 
)
static

◆ status_prompt_complete_sort()

static int status_prompt_complete_sort ( const void *  a,
const void *  b 
)
static

Definition at line 1670 of file status.c.

Referenced by status_prompt_complete().

◆ status_prompt_complete_window_menu()

◆ status_prompt_down_history()

static const char * status_prompt_down_history ( u_int *  idx)
static

Definition at line 1366 of file status.c.

References status_prompt_hlist, and status_prompt_hsize.

Referenced by status_prompt_key().

◆ status_prompt_find_history_file()

static char * status_prompt_find_history_file ( void  )
static

◆ status_prompt_in_list()

static int status_prompt_in_list ( const char *  ws,
const struct utf8_data ud 
)
static

Definition at line 754 of file status.c.

References utf8_data::data, utf8_data::size, and utf8_data::width.

Referenced by status_prompt_key().

◆ status_prompt_key()

◆ status_prompt_load_history()

void status_prompt_load_history ( void  )

◆ status_prompt_menu_callback()

◆ status_prompt_paste()

◆ status_prompt_redraw()

◆ status_prompt_replace_complete()

static int status_prompt_replace_complete ( struct client c,
const char *  s 
)
static

◆ status_prompt_save_history()

void status_prompt_save_history ( void  )

Definition at line 120 of file status.c.

References f, log_debug(), status_prompt_find_history_file(), status_prompt_hlist, and status_prompt_hsize.

Referenced by server_start().

◆ status_prompt_set()

◆ status_prompt_space()

static int status_prompt_space ( const struct utf8_data ud)
static

Definition at line 763 of file status.c.

References utf8_data::data, utf8_data::size, and utf8_data::width.

Referenced by status_prompt_replace_complete().

◆ status_prompt_translate_key()

static int status_prompt_translate_key ( struct client c,
key_code  key,
key_code new_key 
)
static

◆ status_prompt_up_history()

static const char * status_prompt_up_history ( u_int *  idx)
static

Definition at line 1351 of file status.c.

References status_prompt_hlist, and status_prompt_hsize.

Referenced by status_prompt_key().

◆ status_prompt_update()

◆ status_push_screen()

static void status_push_screen ( struct client c)
static

◆ status_redraw()

◆ status_timer_callback()

static void status_timer_callback ( int  fd,
short  events,
void *  arg 
)
static

◆ status_timer_start()

void status_timer_start ( struct client c)

◆ status_timer_start_all()

void status_timer_start_all ( void  )

Definition at line 187 of file status.c.

References clients, and status_timer_start().

Referenced by options_push_changes().

◆ status_update_cache()

void status_update_cache ( struct session s)

Variable Documentation

◆ status_prompt_hlist

char** status_prompt_hlist
static

◆ status_prompt_hsize

u_int status_prompt_hsize
static