ekg2  GIT master
Struktury danych | Definicje | Wyliczenia | Funkcje | Zmienne
Dokumentacja pliku nc-stuff.h
#include "ecurses.h"
Wykres zależności załączania dla nc-stuff.h:
Ten wykres pokazuje, które pliki bezpośrednio lub pośrednio załączają ten plik:

Idź do kodu źródłowego tego pliku.

Struktury danych

struct  screen_line
 
struct  ncurses_window_t
 

Definicje

#define LINE_MAXLEN   1000 /* max line length */
 
#define MULTILINE_INPUT_SIZE   5
 
#define ncurses_current   ((ncurses_window_t *) window_current->priv_data)
 
#define contacts   ncurses_contacts
 
#define history   ncurses_history
 
#define history_index   ncurses_history_index
 
#define HISTORY_MAX   1000
 
#define COLOR_DEFAULT   (-1)
 

Wyliczenia

enum  window_frame_t {
  WF_LEFT = 1, WF_TOP = 2, WF_RIGHT = 4, WF_BOTTOM = 8,
  WF_ALL = 15
}
 

Funkcje

void ncurses_init (void)
 
void ncurses_deinit (void)
 
void update_statusbar (int commit)
 
 QUERY (ncurses_session_disconnect_handler)
 
gboolean ncurses_simple_print (WINDOW *w, const char *s, fstr_attr_t attr, gssize maxx)
 
const char * ncurses_fstring_print (WINDOW *w, const char *s, const fstr_attr_t *attr, gssize maxx)
 
void ncurses_prompt_set (window_t *w, const gchar *str)
 
void ncurses_update_real_prompt (ncurses_window_t *n)
 
void ncurses_resize (void)
 
void ncurses_redraw (window_t *w)
 
void ncurses_redraw_input (unsigned int ch)
 
void ncurses_clear (window_t *w, int full)
 
void ncurses_refresh (void)
 
void ncurses_commit (void)
 
int ncurses_window_kill (window_t *w)
 
int ncurses_window_new (window_t *w)
 
void header_statusbar_resize (const char *dummy)
 
void changed_backlog_size (const char *var)
 
int ncurses_lastlog_update (window_t *w)
 
void ncurses_lastlog_new (window_t *w)
 
 WATCHER (ncurses_watch_stdin)
 
 WATCHER (ncurses_watch_winch)
 
int ncurses_command_window (void *data, va_list ap)
 
 COMMAND (cmd_mark)
 
int color_pair (int fg, int bg)
 
int ncurses_backlog_add_real (window_t *w, fstring_t *str)
 
wchar_t ncurses_fixchar (wchar_t ch, int *attr)
 

Zmienne

plugin_t ncurses_plugin
 
int ncurses_plugin_destroyed
 
WINDOW * ncurses_contacts
 
WINDOW * ncurses_input
 
wchar_t * ncurses_history [1000]
 
int ncurses_history_index
 
int ncurses_debug
 
int config_backlog_size
 
int config_backlog_scroll_half_page
 
int config_display_transparent
 
int config_enter_scrolls
 
int config_margin_size
 
int config_kill_irc_window
 
int config_text_bottomalign
 
int config_lastlog_size
 
int config_lastlog_lock
 
int config_mark_on_window_change
 
int have_winch_pipe
 
int winch_pipe [2]
 
int ncurses_screen_height
 
int ncurses_screen_width
 

Dokumentacja definicji

◆ COLOR_DEFAULT

#define COLOR_DEFAULT   (-1)

◆ contacts

#define contacts   ncurses_contacts

◆ history

#define history   ncurses_history

◆ history_index

#define history_index   ncurses_history_index

◆ HISTORY_MAX

#define HISTORY_MAX   1000

◆ LINE_MAXLEN

#define LINE_MAXLEN   1000 /* max line length */

◆ MULTILINE_INPUT_SIZE

#define MULTILINE_INPUT_SIZE   5

◆ ncurses_current

#define ncurses_current   ((ncurses_window_t *) window_current->priv_data)

Dokumentacja typów wyliczanych

◆ window_frame_t

Wartości wyliczeń
WF_LEFT 
WF_TOP 
WF_RIGHT 
WF_BOTTOM 
WF_ALL 

Dokumentacja funkcji

◆ changed_backlog_size()

void changed_backlog_size ( const char *  var)

◆ color_pair()

int color_pair ( int  fg,
int  bg 
)

◆ COMMAND()

COMMAND ( cmd_mark  )

◆ header_statusbar_resize()

void header_statusbar_resize ( const char *  dummy)

◆ ncurses_backlog_add_real()

int ncurses_backlog_add_real ( window_t w,
fstring_t str 
)

◆ ncurses_clear()

void ncurses_clear ( window_t w,
int  full 
)

◆ ncurses_command_window()

int ncurses_command_window ( void *  data,
va_list  ap 
)

◆ ncurses_commit()

void ncurses_commit ( void  )

◆ ncurses_deinit()

void ncurses_deinit ( void  )

◆ ncurses_fixchar()

wchar_t ncurses_fixchar ( wchar_t  ch,
int *  attr 
)
inline

◆ ncurses_fstring_print()

const char* ncurses_fstring_print ( WINDOW *  w,
const char *  s,
const fstr_attr_t attr,
gssize  maxx 
)

ncurses_fstring_print()

Print fstring_t, making sure output width doesn't exceed max width. If it does, rewind to the previous linebreak possibility.

Parametry
w- target ncurses window.
s- locale-encoded string to print.
attr- attribute list (of length strlen(s)).
maxx- max output width expressed through the last column to print in or -1 if any.
Zwraca
Pointer to the character which the next print should begin at.

◆ ncurses_init()

void ncurses_init ( void  )

◆ ncurses_lastlog_new()

void ncurses_lastlog_new ( window_t w)

◆ ncurses_lastlog_update()

int ncurses_lastlog_update ( window_t w)

◆ ncurses_prompt_set()

void ncurses_prompt_set ( window_t w,
const gchar *  str 
)

ncurses_prompt_set()

Set window prompt, updating internal data as necessary.

Parametry
w- window to be updated
str- prompt target (uid/nickname) or NULL if none

◆ ncurses_redraw()

void ncurses_redraw ( window_t w)

◆ ncurses_redraw_input()

void ncurses_redraw_input ( unsigned int  ch)

◆ ncurses_refresh()

void ncurses_refresh ( void  )

◆ ncurses_resize()

void ncurses_resize ( void  )

◆ ncurses_simple_print()

gboolean ncurses_simple_print ( WINDOW *  w,
const char *  s,
fstr_attr_t  attr,
gssize  maxx 
)

ncurses_simple_print()

Print simple string, making sure it doesn't exceed max width.

Parametry
w- target ncurses window.
s- locale-encoded string to print.
attr- attribute set (one for the whole string).
maxx- max output width expressed through the last column to print in or -1 if any.
Zwraca
TRUE if whole string was printed, FALSE if maxwidth reached.
Nota
If printed string ends with a double-column char maxx may be exceeded. If necessary, provide decreased value.

◆ ncurses_update_real_prompt()

void ncurses_update_real_prompt ( ncurses_window_t n)

◆ ncurses_window_kill()

int ncurses_window_kill ( window_t w)

◆ ncurses_window_new()

int ncurses_window_new ( window_t w)

◆ QUERY()

◆ update_statusbar()

void update_statusbar ( int  commit)

◆ WATCHER() [1/2]

WATCHER ( ncurses_watch_stdin  )

◆ WATCHER() [2/2]

WATCHER ( ncurses_watch_winch  )

Dokumentacja zmiennych

◆ config_backlog_scroll_half_page

int config_backlog_scroll_half_page

◆ config_backlog_size

int config_backlog_size

◆ config_display_transparent

int config_display_transparent

◆ config_enter_scrolls

int config_enter_scrolls

◆ config_kill_irc_window

int config_kill_irc_window

◆ config_lastlog_lock

int config_lastlog_lock

◆ config_lastlog_size

int config_lastlog_size

◆ config_margin_size

int config_margin_size

◆ config_mark_on_window_change

int config_mark_on_window_change

◆ config_text_bottomalign

int config_text_bottomalign

◆ have_winch_pipe

int have_winch_pipe

◆ ncurses_contacts

WINDOW* ncurses_contacts

◆ ncurses_debug

int ncurses_debug

◆ ncurses_history

wchar_t* ncurses_history[1000]

◆ ncurses_history_index

int ncurses_history_index

◆ ncurses_input

WINDOW* ncurses_input

◆ ncurses_plugin

plugin_t ncurses_plugin

◆ ncurses_plugin_destroyed

int ncurses_plugin_destroyed

◆ ncurses_screen_height

int ncurses_screen_height

◆ ncurses_screen_width

int ncurses_screen_width

◆ winch_pipe

int winch_pipe[2]