ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Struktury danych | Definicje | Wyliczenia | Funkcje | Zmienne
Dokumentacja pliku nc-stuff.h
#include "ecurses.h"

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

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

Dokumentacja typów wyliczanych

Wartości wyliczeń
WF_LEFT 
WF_TOP 
WF_RIGHT 
WF_BOTTOM 
WF_ALL 

Dokumentacja funkcji

void changed_backlog_size ( const char *  var)
int color_pair ( int  fg,
int  bg 
)
COMMAND ( cmd_mark  )
void header_statusbar_resize ( const char *  dummy)
int ncurses_backlog_add_real ( window_t w,
fstring_t str 
)
void ncurses_clear ( window_t w,
int  full 
)
int ncurses_command_window ( void *  data,
va_list  ap 
)
void ncurses_commit ( void  )
void ncurses_deinit ( void  )
wchar_t ncurses_fixchar ( wchar_t  ch,
int *  attr 
)
inline
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.
void ncurses_init ( void  )
void ncurses_lastlog_new ( window_t w)
int ncurses_lastlog_update ( window_t w)
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
void ncurses_redraw ( window_t w)
void ncurses_redraw_input ( unsigned int  ch)
void ncurses_refresh ( void  )
void ncurses_resize ( void  )
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.
void ncurses_update_real_prompt ( ncurses_window_t n)
int ncurses_window_kill ( window_t w)
int ncurses_window_new ( window_t w)
void update_statusbar ( int  commit)
WATCHER ( ncurses_watch_stdin  )
WATCHER ( ncurses_watch_winch  )

Dokumentacja zmiennych

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