60 HANDLE hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
61 hStdin = GetStdHandle(STD_INPUT_HANDLE);
64 SetConsoleMode(hStdout, ENABLE_PROCESSED_OUTPUT);
85 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 93 if (stat(path, &Sb) >= 0)
94 (void)strcat(p,
S_ISDIR(Sb.st_mode) ?
"\\" :
" ");
104 if ((stat(path, &Sb) >= 0) &&
S_ISDIR(Sb.st_mode))
115 kill(getpid(),SIGINT);
127 if (strcmp(
id,
"co") == 0)
129 else if (strcmp(
id,
"li") == 0)
140 if (strcmp(
id,
"le") == 0)
142 else if (strcmp(
id,
"up") == 0)
144 else if (strcmp(
id,
"cl") == 0)
146 else if (strcmp(
id,
"nl") == 0)
148 else if (strcmp(
id,
"cr") == 0)
150 else if (strcmp(
id,
"nd") == 0)
void rl_add_slash(char *path, char *p)
int tgetnum(const char *id)
void rl_ttyset(int Reset)
int el_is_directory(char *path)
int tgetstr(const char *id, char **area)
int tgetent(char *bp, const char *name)