ekg2
GIT master
|
#include "ekg2.h"
#include "ecurses.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include "bindings.h"
#include "backlog.h"
#include "contacts.h"
#include "input.h"
#include "notify.h"
#include "nc-stuff.h"
#include "spell.h"
#include "statusbar.h"
Definicje | |
#define | __init_bg(x, y) |
Funkcje | |
void | ncurses_prompt_set (window_t *w, const gchar *str) |
int | ncurses_session_disconnect_handler (void *data, va_list ap) |
int | color_pair (int fg, int bg) |
void | ncurses_commit (void) |
void | ncurses_resize (void) |
static G_GNUC_CONST int | fstring_attr2ncurses_attr (fstr_attr_t chattr) |
wchar_t | ncurses_fixchar (wchar_t ch, int *attr) |
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) |
int | cmd_mark (const char *name, const char **params, session_t *session, const char *target, int quiet) |
static void | draw_thin_red_line (window_t *w, int y) |
void | ncurses_redraw (window_t *w) |
void | ncurses_clear (window_t *w, int full) |
void | ncurses_refresh (void) |
int | ncurses_window_kill (window_t *w) |
void | ncurses_abort (void) |
void | ncurses_init (void) |
void | ncurses_deinit (void) |
int | ncurses_window_new (window_t *w) |
Zmienne | |
WINDOW * | ncurses_input = NULL |
WINDOW * | ncurses_contacts = NULL |
wchar_t * | ncurses_history [1000] |
int | ncurses_history_index = 0 |
int | ncurses_debug = 0 |
int | ncurses_screen_height |
int | ncurses_screen_width |
static struct termios | old_tio |
int | winch_pipe [2] |
int | have_winch_pipe = 0 |
#define __init_bg | ( | x, | |
y | |||
) |
int cmd_mark | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
int color_pair | ( | int | fg, |
int | bg | ||
) |
|
static |
|
static |
void ncurses_abort | ( | void | ) |
void ncurses_clear | ( | window_t * | w, |
int | full | ||
) |
void ncurses_commit | ( | void | ) |
void ncurses_deinit | ( | void | ) |
|
inline |
const char* ncurses_fstring_print | ( | WINDOW * | w, |
const char * | s, | ||
const fstr_attr_t * | attr, | ||
gssize | maxx | ||
) |
Print fstring_t, making sure output width doesn't exceed max width. If it does, rewind to the previous linebreak possibility.
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. |
void ncurses_init | ( | void | ) |
void ncurses_prompt_set | ( | window_t * | w, |
const gchar * | str | ||
) |
Set window prompt, updating internal data as necessary.
w | - window to be updated |
str | - prompt target (uid/nickname) or NULL if none |
void ncurses_redraw | ( | window_t * | w | ) |
void ncurses_refresh | ( | void | ) |
void ncurses_resize | ( | void | ) |
int ncurses_session_disconnect_handler | ( | void * | data, |
va_list | ap | ||
) |
gboolean ncurses_simple_print | ( | WINDOW * | w, |
const char * | s, | ||
fstr_attr_t | attr, | ||
gssize | maxx | ||
) |
Print simple string, making sure it doesn't exceed max width.
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. |
int ncurses_window_kill | ( | window_t * | w | ) |
int ncurses_window_new | ( | window_t * | w | ) |
int have_winch_pipe = 0 |
WINDOW* ncurses_contacts = NULL |
int ncurses_debug = 0 |
wchar_t* ncurses_history[1000] |
int ncurses_history_index = 0 |
WINDOW* ncurses_input = NULL |
int ncurses_screen_height |
int ncurses_screen_width |
|
static |
int winch_pipe[2] |