 |
My Project
debian-1:4.1.1-p2+ds-4build2
|
#include "kernel/mod2.h"
#include "omalloc/omalloc.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
#include <string.h>
#include "kernel/mod_raw.h"
Go to the source code of this file.
|
void | fe_reset_fe (void) |
|
void | fe_temp_reset (void) |
|
void | fe_temp_set (void) |
|
static int | fe_out_char (int c) |
|
static void | fe_init (void) |
|
static void | fe_ctrl_k (char *s, int i) |
|
static void | fe_ctrl_u (char *s, int *i) |
|
static void | fe_add_hist (char *s) |
|
static void | fe_get_hist (char *s, int size, int *pos, int change, int incr) |
|
static int | fe_getchar () |
|
static void | fe_set_cursor (char *s, int i) |
|
char * | fe_fgets_stdin_fe (char *pr, char *s, int size) |
|
char * | command_generator (char *text, int state) |
|
char ** | singular_completion (char *text, int start, int end) |
|
int | fe_init_dyn_rl () |
|
void | fe_reset_input_mode () |
|
◆ fe_hist_max
◆ feCTRL
#define feCTRL |
( |
|
C | ) |
((C) & 0x1F) /* <ctrl> character */ |
◆ STDIN_FILENO
◆ STDOUT_FILENO
◆ CPPFunction
typedef char** CPPFunction() |
◆ command_generator()
char* command_generator |
( |
char * |
text, |
|
|
int |
state |
|
) |
| |
Definition at line 54 of file feread.cc.
56 static int list_index, len;
75 if (strncmp (
name, text, len) == 0)
84 if (strncmp (
name, text, len) == 0)
89 return ((
char *)
NULL);
◆ fe_add_hist()
static void fe_add_hist |
( |
char * |
s | ) |
|
|
static |
◆ fe_ctrl_k()
static void fe_ctrl_k |
( |
char * |
s, |
|
|
int |
i |
|
) |
| |
|
static |
◆ fe_ctrl_u()
static void fe_ctrl_u |
( |
char * |
s, |
|
|
int * |
i |
|
) |
| |
|
static |
◆ fe_fgets_stdin_fe()
char* fe_fgets_stdin_fe |
( |
char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
Definition at line 381 of file fereadl.c.
428 (
int *)fdset.fds_bits,
433 }
while( (sel == -1) && (errno == EINTR) );
459 if ((
i==0) &&(
s[0]==
'\0'))
return NULL;
635 if ((c>=
' ')&&(c<=126))
650 while ((
s[
j]!=
'\0')&&(
j<
size-2))
j++;
652 while (
j>
i) {
s[
j]=
s[
j-1];
j--; }
686 return fgets(
s,
size,stdin);
◆ fe_get_hist()
static void fe_get_hist |
( |
char * |
s, |
|
|
int |
size, |
|
|
int * |
pos, |
|
|
int |
change, |
|
|
int |
incr |
|
) |
| |
|
static |
◆ fe_getchar()
static int fe_getchar |
( |
| ) |
|
|
static |
◆ fe_init()
static void fe_init |
( |
void |
| ) |
|
|
static |
Definition at line 139 of file fereadl.c.
156 char *tty_name=ttyname(fileno(stdin));
158 fe_echo = fopen( tty_name,
"w" );
164 printf(
"stdin is a tty, but ttyname fails\n");
170 struct termios tattr;
182 tattr.c_lflag &= ~(ICANON|
ECHO);
183 tattr.c_cc[VMIN] = 1;
184 tattr.c_cc[VTIME] = 0;
190 printf(
"need TERM\n");
194 printf(
"could not access termcap data base\n");
204 char *t_buf=(
char *)
omAlloc(128);
207 char** t_buf_ptr= &t_buf;
209 temp = tgetstr (
"pc", t_buf_ptr);
210 PC = (temp!=
NULL) ? *temp :
'\0';
211 BC=tgetstr(
"le",t_buf_ptr);
212 UP=tgetstr(
"up",t_buf_ptr);
220 temp = tgetstr (
"ti", t_buf_ptr);
◆ fe_init_dyn_rl()
Definition at line 755 of file fereadl.c.
803 (*fe_rl_readline_name) =
"Singular";
807 (*fe_using_history)();
811 (*fe_read_history) (
p);
◆ fe_out_char()
static int fe_out_char |
( |
int |
c | ) |
|
|
static |
◆ fe_reset_fe()
void fe_reset_fe |
( |
void |
| ) |
|
◆ fe_reset_input_mode()
void fe_reset_input_mode |
( |
| ) |
|
Definition at line 825 of file fereadl.c.
827 #if defined(HAVE_DYN_RL)
828 char *
p =
getenv(
"SINGULARHIST");
832 (*fe_write_history) (
p);
835 #if defined(HAVE_READLINE) && !defined(HAVE_FEREAD) && !defined(HAVE_DYN_RL)
836 char *
p =
getenv(
"SINGULARHIST");
843 #if defined(HAVE_FEREAD)
◆ fe_set_cursor()
static void fe_set_cursor |
( |
char * |
s, |
|
|
int |
i |
|
) |
| |
|
static |
◆ fe_temp_reset()
void fe_temp_reset |
( |
void |
| ) |
|
◆ fe_temp_set()
void fe_temp_set |
( |
void |
| ) |
|
Definition at line 117 of file fereadl.c.
121 struct termios tattr;
125 tattr.c_lflag &= ~(ICANON|
ECHO);
126 tattr.c_cc[VMIN] = 1;
127 tattr.c_cc[VTIME] = 0;
◆ singular_completion()
char** singular_completion |
( |
char * |
text, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
Definition at line 735 of file fereadl.c.
746 m=(
char **)
malloc(2*
sizeof(
char*));
747 m[0]=(
char *)
malloc(end-start+2);
748 strncpy(
m[0],text,end-start+1);
◆ fe_add_history
void(* fe_add_history) () |
◆ fe_completion_matches
char**(* fe_completion_matches) () |
◆ fe_cursor_line
◆ fe_cursor_pos
◆ fe_echo
◆ fe_filename_completion_function
char*(* fe_filename_completion_function) () |
◆ fe_hist
◆ fe_hist_pos
◆ fe_history_total_bytes
int(* fe_history_total_bytes) () |
◆ fe_is_initialized
◆ fe_is_raw_tty
◆ fe_read_history
int(* fe_read_history) () |
◆ fe_readline
◆ fe_rl_attempted_completion_function
◆ fe_rl_hdl
◆ fe_rl_line_buffer
◆ fe_rl_outstream
◆ fe_rl_readline_name
char** fe_rl_readline_name |
◆ fe_saved_attributes
struct termios fe_saved_attributes |
◆ fe_stdin_is_tty
◆ fe_stdout_is_tty
◆ fe_use_fgets
◆ fe_using_history
void(* fe_using_history) () |
◆ fe_write_history
int(* fe_write_history) () |
◆ termcap_buff
int dynl_close(void *handle)
static void fe_add_hist(char *s)
static int fe_out_char(int c)
char *(* fe_filename_completion_function)()
char **(* fe_completion_matches)()
static void fe_ctrl_k(char *s, int i)
static void fe_ctrl_u(char *s, int *i)
static void fe_init(void)
static BOOLEAN fe_stdout_is_tty
char ** fe_rl_line_buffer
char ** singular_completion(char *text, int start, int end)
static BOOLEAN fe_stdin_is_tty
static void fe_get_hist(char *s, int size, int *pos, int change, int incr)
void select(const ListCFList &ppi, int length, ListCFList &ppi1, ListCFList &ppi2)
void PrintS(const char *s)
#define omFreeSize(addr, size)
void * malloc(size_t size)
void(* fe_using_history)()
static void fe_set_cursor(char *s, int i)
char ** fe_rl_readline_name
static char termcap_buff[2048]
int(* fe_history_total_bytes)()
static BOOLEAN fe_is_initialized
int(* fe_write_history)()
void * dynl_open(char *filename)
int history_total_bytes()
void omMarkAsStaticAddr(void *addr)
char * iiArithGetCmd(int)
char name(const Variable &v)
void * dynl_sym(void *handle, const char *symbol)
struct termios fe_saved_attributes
char * command_generator(char *text, int state)
const CanonicalForm int s
CPPFunction ** fe_rl_attempted_completion_function