ELinks 0.18.0
inphist.c File Reference
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "bfu/dialog.h"
#include "bfu/inphist.h"
#include "bfu/menu.h"
#include "config/home.h"
#include "config/options.h"
#include "dialogs/menu.h"
#include "terminal/terminal.h"
#include "util/conv.h"
#include "util/file.h"
#include "util/lists.h"
#include "util/memory.h"
#include "util/secsave.h"
Include dependency graph for inphist.c:

Functions

static void tab_compl_n (struct dialog_data *dlg_data, char *item, int len)
static void tab_compl (struct dialog_data *dlg_data, char *item)
static void menu_tab_compl (struct terminal *term, void *item_, void *dlg_data_)
void do_tab_compl (struct dialog_data *dlg_data, struct input_history_entry list *history)
static int strcommonlen (char *a, char *b)
void do_tab_compl_unambiguous (struct dialog_data *dlg_data, struct input_history_entry list *history)
static void set_complete_file_menu (struct terminal *term, void *filename_, void *dlg_data_)
static void tab_complete_file_menu (struct terminal *term, void *path_, void *dlg_data_)
void do_tab_compl_file (struct dialog_data *dlg_data, struct input_history_entry list *history)
static struct input_history_entrycheck_duplicate_entries (struct input_history *history, char *data)
void add_to_input_history (struct input_history *history, char *data, int check_duplicate)
int load_input_history (struct input_history *history, const char *filename)
int save_input_history (struct input_history *history, const char *filename)
void dlg_set_history (struct widget_data *widget_data)

Function Documentation

◆ add_to_input_history()

void add_to_input_history ( struct input_history * history,
char * data,
int check_duplicate )

◆ check_duplicate_entries()

struct input_history_entry * check_duplicate_entries ( struct input_history * history,
char * data )
static

◆ dlg_set_history()

void dlg_set_history ( struct widget_data * widget_data)

◆ do_tab_compl()

void do_tab_compl ( struct dialog_data * dlg_data,
struct input_history_entry list * history )

◆ do_tab_compl_file()

void do_tab_compl_file ( struct dialog_data * dlg_data,
struct input_history_entry list * history )

◆ do_tab_compl_unambiguous()

void do_tab_compl_unambiguous ( struct dialog_data * dlg_data,
struct input_history_entry list * history )

◆ load_input_history()

int load_input_history ( struct input_history * history,
const char * filename )

◆ menu_tab_compl()

void menu_tab_compl ( struct terminal * term,
void * item_,
void * dlg_data_ )
static

◆ save_input_history()

int save_input_history ( struct input_history * history,
const char * filename )

◆ set_complete_file_menu()

void set_complete_file_menu ( struct terminal * term,
void * filename_,
void * dlg_data_ )
static

◆ strcommonlen()

int strcommonlen ( char * a,
char * b )
inlinestatic

◆ tab_compl()

void tab_compl ( struct dialog_data * dlg_data,
char * item )
static

◆ tab_compl_n()

void tab_compl_n ( struct dialog_data * dlg_data,
char * item,
int len )
static

◆ tab_complete_file_menu()

void tab_complete_file_menu ( struct terminal * term,
void * path_,
void * dlg_data_ )
static