ekg2  GIT master
Funkcje | Zmienne
Dokumentacja pliku ui-readline.c
#include "ekg2.h"
#include <sys/ioctl.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <history.h>
#include <readline.h>
#include "ui-readline.h"
Wykres zależności załączania dla ui-readline.c:

Funkcje

void rl_extend_line_buffer (int len)
 
int rl_bind_key_in_map (int key, void *function, void *keymap)
 
int rl_get_screen_size (int *lines, int *columns)
 
char * rl_filename_completion_function (void)
 
int rl_set_key (const char *key, void *function, void *keymap)
 
void set_prompt (const char *prompt)
 
int my_getc (FILE *f)
 
void ui_readline_print (window_t *w, int separate, const char *xline)
 
const char * current_prompt (void)
 
int my_loop (void)
 
static gchar * my_readline (void)
 
int ui_readline_loop (void)
 
int window_refresh ()
 
int window_write (int id, const char *line)
 
gchar * window_activity (void)
 
char * bind_find_command (const char *seq)
 
int bind_handler_ctrl (int a, int key)
 
int bind_handler_alt (int a, int key)
 
int bind_handler_window (int a, int key)
 
int bind_sequence (const char *seq, const char *command, int quiet)
 

Zmienne

int ui_screen_height
 
int ui_screen_width
 
int ui_need_refresh
 
int in_readline = 0
 
int no_prompt = 0
 
int pager_lines = -1
 
int screen_lines = 24
 
int screen_columns = 80
 

Dokumentacja funkcji

◆ bind_find_command()

char* bind_find_command ( const char *  seq)

◆ bind_handler_alt()

int bind_handler_alt ( int  a,
int  key 
)

◆ bind_handler_ctrl()

int bind_handler_ctrl ( int  a,
int  key 
)

◆ bind_handler_window()

int bind_handler_window ( int  a,
int  key 
)

◆ bind_sequence()

int bind_sequence ( const char *  seq,
const char *  command,
int  quiet 
)

◆ current_prompt()

const char* current_prompt ( void  )

current_prompt()

Get the current prompt, locale-recoded.

Zwraca
Static buffer pointer, non-NULL, locale-encoded.

◆ my_getc()

int my_getc ( FILE *  f)

◆ my_loop()

int my_loop ( void  )

◆ my_readline()

static gchar* my_readline ( void  )
static

my_readline()

Wrapper for readline(). Prepares appropriate prompt, locks screen output. Recodes the result to utf-8.

Zwraca
A pointer to utf8 string or NULL.

◆ rl_bind_key_in_map()

int rl_bind_key_in_map ( int  key,
void *  function,
void *  keymap 
)

◆ rl_extend_line_buffer()

void rl_extend_line_buffer ( int  len)

◆ rl_filename_completion_function()

char* rl_filename_completion_function ( void  )

◆ rl_get_screen_size()

int rl_get_screen_size ( int *  lines,
int *  columns 
)

◆ rl_set_key()

int rl_set_key ( const char *  key,
void *  function,
void *  keymap 
)

◆ set_prompt()

void set_prompt ( const char *  prompt)

◆ ui_readline_loop()

int ui_readline_loop ( void  )

◆ ui_readline_print()

void ui_readline_print ( window_t w,
int  separate,
const char *  xline 
)

◆ window_activity()

gchar* window_activity ( void  )

◆ window_refresh()

int window_refresh ( )

◆ window_write()

int window_write ( int  id,
const char *  line 
)

Dokumentacja zmiennych

◆ in_readline

int in_readline = 0

◆ no_prompt

int no_prompt = 0

◆ pager_lines

int pager_lines = -1

◆ screen_columns

int screen_columns = 80

◆ screen_lines

int screen_lines = 24

◆ ui_need_refresh

int ui_need_refresh

◆ ui_screen_height

int ui_screen_height

◆ ui_screen_width

int ui_screen_width