|
IOSS
2.0
|
#include <dirent.h>#include <errno.h>#include <fcntl.h>#include <pwd.h>#include <sys/select.h>#include <sys/stat.h>#include <sys/time.h>#include <sys/types.h>#include <unistd.h>#include <termios.h>#include <ctype.h>#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include "Ioss_Getline.h"Macros | |
| #define | __unix__ 1 |
| #define | HAVE_TERMIOS_H 1 |
| #define | LOCAL_PATH_DELIM '/' |
| #define | LOCAL_PATH_DELIM_STR "/" |
| #define | _StrFindLocalPathDelim(a) strchr(a, LOCAL_PATH_DELIM) |
| #define | _StrRFindLocalPathDelim(a) strrchr(a, LOCAL_PATH_DELIM) |
| #define | IsLocalPathDelim(c) (c == LOCAL_PATH_DELIM) |
| #define | _getline_c_ 1 |
| #define | HIST_SIZE 100 |
| #define | GL_COMPLETE_VECTOR_BLOCK_SIZE 64 |
Functions | |
| int | kill (pid_t pid, int sig) |
| static int | gl_tab (char *buf, int offset, int *loc, size_t bufsize) |
| static void | gl_init (void) |
| static void | gl_cleanup (void) |
| static void | gl_char_init (void) |
| static void | gl_char_cleanup (void) |
| static void | gl_addchar (int c) |
| static void | gl_del (int loc, int) |
| static void | gl_error (const char *const buf) |
| static void | gl_fixup (const char *prompt, int change, int cursor) |
| static int | gl_getc (void) |
| static int | gl_getcx (int) |
| static void | gl_kill (int pos) |
| static void | gl_newline (void) |
| static void | gl_putc (int c) |
| static void | gl_puts (const char *const buf) |
| static void | gl_redraw (void) |
| static void | gl_transpose (void) |
| static void | gl_yank (void) |
| static void | gl_word (int direction) |
| static void | gl_killword (int direction) |
| static void | hist_init (void) |
| static char * | hist_next (void) |
| static char * | hist_prev (void) |
| static char * | hist_save (const char *p) |
| static void | search_addchar (int c) |
| static void | search_term (void) |
| static void | search_back (int new_search) |
| static void | search_forw (int new_search) |
| static void | gl_beep (void) |
| static int | gl_do_tab_completion (char *buf, int *loc, size_t bufsize, int tabtab) |
| static char * | copy_string (char *dest, char const *source, long int elements) |
| void | gl_setwidth (int w) |
| char * | getline_int (const char *prompt) |
| void | gl_histadd (const char *buf) |
| void | gl_histsavefile (const char *const path) |
| void | gl_histloadfile (const char *const path) |
| static void | search_update (int c) |
| void | gl_tab_completion (gl_tab_completion_proc proc) |
| void | gl_set_home_dir (const char *homedir) |
| char * | gl_local_filename_completion_proc (const char *start, int idx) |
Variables | |
| struct termios new_termios | old_termios |
| gl_in_hook_proc | gl_in_hook = 0 |
| gl_out_hook_proc | gl_out_hook = 0 |
| gl_tab_hook_proc | gl_tab_hook = gl_tab |
| gl_strlen_proc | gl_strlen = (gl_strlen_proc)strlen |
| gl_tab_completion_proc | gl_completion_proc = 0 |
| int | gl_filename_quoting_desired = -1 |
| const char * | gl_filename_quote_characters = " \t*?<>|;&()[]$`" |
| int | gl_ellipses_during_completion = 1 |
| int | gl_completion_exact_match_extra_char |
| char | gl_buf [GL_BUF_SIZE] |
| static int | gl_init_done = -1 |
| static int | gl_termw = 80 |
| static int | gl_scroll = 27 |
| static int | gl_width = 0 |
| static int | gl_extent = 0 |
| static int | gl_overwrite = 0 |
| static int | gl_pos |
| static int | gl_cnt = 0 |
| static char | gl_killbuf [GL_BUF_SIZE] = "" |
| static const char * | gl_prompt |
| static char | gl_intrc = 0 |
| static char | gl_quitc = 0 |
| static char | gl_suspc = 0 |
| static char | gl_dsuspc = 0 |
| static int | gl_search_mode = 0 |
| static char ** | gl_matchlist = 0 |
| static char * | gl_home_dir = NULL |
| static int | gl_vi_preferred = -1 |
| static int | gl_vi_mode = 0 |
| static int | hist_pos = 0 |
| static int | hist_last = 0 |
| static char * | hist_buf [HIST_SIZE] |
| static char | hist_empty_elem [2] = "" |
| static char | search_prompt [101] |
| static char | search_string [100] |
| static int | search_pos = 0 |
| static int | search_forw_flg = 0 |
| static int | search_last = 0 |
| #define __unix__ 1 |
| #define _getline_c_ 1 |
| #define _StrFindLocalPathDelim | ( | a | ) | strchr(a, LOCAL_PATH_DELIM) |
| #define _StrRFindLocalPathDelim | ( | a | ) | strrchr(a, LOCAL_PATH_DELIM) |
| #define GL_COMPLETE_VECTOR_BLOCK_SIZE 64 |
| #define HAVE_TERMIOS_H 1 |
| #define HIST_SIZE 100 |
| #define IsLocalPathDelim | ( | c | ) | (c == LOCAL_PATH_DELIM) |
| #define LOCAL_PATH_DELIM '/' |
| #define LOCAL_PATH_DELIM_STR "/" |
|
static |
| char* getline_int | ( | const char * | prompt | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void gl_histadd | ( | const char * | buf | ) |
| void gl_histloadfile | ( | const char *const | path | ) |
| void gl_histsavefile | ( | const char *const | path | ) |
|
static |
|
static |
|
static |
| char* gl_local_filename_completion_proc | ( | const char * | start, |
| int | idx | ||
| ) |
|
static |
|
static |
|
static |
|
static |
| void gl_set_home_dir | ( | const char * | homedir | ) |
| void gl_setwidth | ( | int | w | ) |
|
static |
| void gl_tab_completion | ( | gl_tab_completion_proc | proc | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| int kill | ( | pid_t | pid, |
| int | sig | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| char gl_buf[GL_BUF_SIZE] |
|
static |
| int gl_completion_exact_match_extra_char |
| gl_tab_completion_proc gl_completion_proc = 0 |
|
static |
| int gl_ellipses_during_completion = 1 |
|
static |
| const char* gl_filename_quote_characters = " \t*?<>|;&()[]$`" |
| int gl_filename_quoting_desired = -1 |
|
static |
| gl_in_hook_proc gl_in_hook = 0 |
|
static |
|
static |
|
static |
|
static |
| gl_out_hook_proc gl_out_hook = 0 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| gl_strlen_proc gl_strlen = (gl_strlen_proc)strlen |
|
static |
| gl_tab_hook_proc gl_tab_hook = gl_tab |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct termios new_termios old_termios |
|
static |
|
static |
|
static |
|
static |
|
static |