version 1.1, 2002/09/03 00:41:44 |
version 1.6, 2012/05/14 12:52:08 |
Line 6 static char rcsid[]= |
|
Line 6 static char rcsid[]= |
|
#endif /* lint */ |
#endif /* lint */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
Line 24 static char rcsid[]= |
|
Line 26 static char rcsid[]= |
|
#if defined(__CYGWIN__) |
#if defined(__CYGWIN__) |
#include <sys/dirent.h> |
#include <sys/dirent.h> |
#define direct dirent |
#define direct dirent |
|
#elif defined(sun) || defined(__FreeBSD__) |
|
#include <dirent.h> |
|
#define direct dirent |
|
#include <unistd.h> |
#else |
#else |
#include <sys/dir.h> |
#include <sys/dir.h> |
#endif |
#endif |
Line 158 init_edit_params () |
|
Line 164 init_edit_params () |
|
set_var ("editmode", "emacs"); |
set_var ("editmode", "emacs"); |
} |
} |
|
|
set_var ("showhist", itoa (lines - 1)); |
sprintf (sbuf, "%d", lines); |
|
set_var ("showhist", sbuf); |
|
|
/* |
/* |
* Read startup file |
* Read startup file |
Line 232 initEmacsBindings (cft, aft) |
|
Line 239 initEmacsBindings (cft, aft) |
|
import (cft, initial_ttymode.c_cc[VDSUSP], self_insert); |
import (cft, initial_ttymode.c_cc[VDSUSP], self_insert); |
*/ |
*/ |
import (cft, initial_ttymode.c_cc[VREPRINT], reprint); |
import (cft, initial_ttymode.c_cc[VREPRINT], reprint); |
|
#ifdef VDISCARD |
import (cft, initial_ttymode.c_cc[VDISCARD], self_insert); |
import (cft, initial_ttymode.c_cc[VDISCARD], self_insert); |
|
#endif |
import (cft, initial_ttymode.c_cc[VWERASE], delete_previous_word); |
import (cft, initial_ttymode.c_cc[VWERASE], delete_previous_word); |
import (cft, initial_ttymode.c_cc[VLNEXT], literal_next); |
import (cft, initial_ttymode.c_cc[VLNEXT], literal_next); |
import (cft, initial_ttymode.c_cc[VERASE], delete_previous_character); |
import (cft, initial_ttymode.c_cc[VERASE], delete_previous_character); |
Line 279 initEmacsBindings (cft, aft) |
|
Line 288 initEmacsBindings (cft, aft) |
|
* Main function of front end program |
* Main function of front end program |
*/ |
*/ |
CHAR * |
CHAR * |
getline() |
mygetline() |
{ |
{ |
int c; |
int c; |
CHAR *execute_command, *check_alias(); |
CHAR *execute_command, *check_alias(); |