Go to the source code of this file.
|
char * | fe_fgets_stdin_drl (const char *pr, char *s, int size) |
|
void | fe_reset_input_mode () |
|
void | fe_reset_fe (void) |
|
char * | fe_fgets_stdin_rl (const char *pr, char *s, int size) |
|
char * | fe_fgets_stdin_emu (const char *pr, char *s, int size) |
|
char * | fe_fgets (const char *pr, char *s, int size) |
|
char * | fe_fgets_dummy (const char *pr, char *s, int size) |
|
const char * | eati (const char *s, int *i) |
|
◆ SINGULARHIST_FILE
#define SINGULARHIST_FILE (char*)".singularhistory" |
◆ eati()
Definition at line 373 of file reporter.cc.
377 if (*
s >=
'0' && *
s <=
'9')
380 while (*
s >=
'0' && *
s <=
'9')
388 Werror(
"`%s` greater than %d(max. integer representation)",
const CanonicalForm int s
void Werror(const char *fmt,...)
◆ fe_fgets()
char* fe_fgets |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
Definition at line 307 of file feread.cc.
315 char *line=fgets(
s,
size,stdin);
318 for (
int i=strlen(line)-1;
i>=0;
i--) line[
i]=line[
i]&127;
326 case EBADF:
return NULL;
327 case EINTR:
return strcpy(
s,
"\n");
331 fprintf(stderr,
"fgets() failed with errno %d\n%s\n",errsv,strerror(errsv));
◆ fe_fgets_dummy()
char* fe_fgets_dummy |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
◆ fe_fgets_stdin_drl()
char* fe_fgets_stdin_drl |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
Definition at line 267 of file feread.cc.
276 line = (*fe_readline) ((
char*)pr);
282 for (
int i=
l-1;
i>=0;
i--) line[
i]=line[
i]&127;
286 (*fe_add_history) (line);
290 strncpy(
s,line,
size);
◆ fe_fgets_stdin_emu()
char* fe_fgets_stdin_emu |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
Definition at line 251 of file feread.cc.
char * fe_fgets_stdin_fe(const char *pr, char *s, int size)
◆ fe_fgets_stdin_rl()
char* fe_fgets_stdin_rl |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
◆ fe_reset_fe()
void fe_reset_fe |
( |
void |
| ) |
|
Definition at line 83 of file fereadl.c.
VAR struct termios fe_saved_attributes
VAR BOOLEAN fe_is_raw_tty
STATIC_VAR BOOLEAN fe_stdin_is_tty
STATIC_VAR BOOLEAN fe_stdout_is_tty
#define omFreeSize(addr, size)
◆ fe_reset_input_mode()
void fe_reset_input_mode |
( |
| ) |
|
Definition at line 831 of file fereadl.c.
833 #if defined(HAVE_DYN_RL)
834 char *
p =
getenv(
"SINGULARHIST");
839 (*fe_write_history) (
p);
841 #elif defined(HAVE_READLINE) && !defined(HAVE_FEREAD) && !defined(HAVE_DYN_RL)
842 char *
p =
getenv(
"SINGULARHIST");
849 #elif defined(HAVE_FEREAD)
VAR BOOLEAN using_history_called
int history_total_bytes()
#define SINGULARHIST_FILE
VAR int(* fe_history_total_bytes)()
◆ fe_fgets_stdin
char*(* fe_fgets_stdin) (const char *pr, char *s, int size) |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
◆ prompt_char
◆ using_history_called