Go to the source code of this file.
◆ kHistoryFileName
#define kHistoryFileName "history" |
◆ AddHistory()
◆ DisposeReadline()
◆ GetScreenColumns()
Definition at line 55 of file readln.c.
57 #if defined(WIN32) || defined(_WINDOWS) 67 char ncftpbookmarks[256];
85 memset(&felix, 0,
sizeof(felix));
86 if (
ioctl(0, TIOCGWINSZ, &felix) == 0) {
87 columns = felix.ws_col;
117 STRNCPY(ncftpbookmarks, BINDIR);
119 STRNCAT(ncftpbookmarks,
"ncftpbookmarks");
124 STRNCAT(ncftpbookmarks,
" --dimensions-terse");
127 infp =
popen(ncftpbookmarks,
"r");
_Check_return_ _CRTIMP int __cdecl fscanf(_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const char *_Format,...)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
volatile sigproc_t vsigproc_t
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
#define STRNCPY(dst, src, n)
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
#define STD_OUTPUT_HANDLE
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
GLuint GLint GLboolean GLint GLenum access
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by PreInit().
◆ InitReadline()
Definition at line 659 of file readln.c.
void ReCacheBookmarks(void)
static char * CompletionFunction(const char *text, int state)
gl_tab_completion_proc gl_completion_proc
Referenced by PostInit().
◆ InitTermcap()
Definition at line 148 of file readln.c.
150 #if (defined(WIN32) || defined(_WINDOWS)) && defined(_CONSOLE) 159 gTerm =
"MS-DOS Prompt";
182 (
ISTRCMP(term,
"scoterm") == 0)
188 (
strcmp(term,
"vt100") == 0) ||
189 (
strcmp(term,
"linux") == 0) ||
190 (
strcmp(term,
"vt220") == 0) ||
191 (
strcmp(term,
"vt102") == 0)
const char * tcap_boldface
char * strstr(char *String1, char *String2)
char gCurXtermTitleStr[256]
const char * tcap_reverse
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
const char * tcap_underline
int strcmp(const char *String1, const char *String2)
Referenced by PostInit().
◆ LoadHistory()
Definition at line 606 of file readln.c.
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
char * OurDirectoryPath(char *const dst, const size_t siz, const char *const fname)
void gl_histloadfile(const char *const path)
Referenced by InitReadline().
◆ MakePrompt()
Definition at line 802 of file readln.c.
806 # ifdef HAVE_SNPRINTF struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
const char * tcap_boldface
void AbbrevStr(char *dst, const char *src, size_t max, int mode)
char * Strncat(char *const, const char *const, const size_t)
char * Strncpy(char *const, const char *const, const size_t)
Referenced by CommandShell().
◆ PrintStartupBanner()
Definition at line 759 of file readln.c.
778 #if defined(BETA) && (BETA > 0) 779 (
void)
fprintf(
stdout,
"%s%.11s beta %d%s%s by Mike Gleason (ncftp@ncftp.com).\n",
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
const char * tcap_boldface
#define STRNCPY(dst, src, n)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
char * strchr(const char *String, int ch)
Referenced by PostInit().
◆ Readline()
Definition at line 671 of file readln.c.
673 char *linecopy, *
line, *
cp;
ACPI_SIZE strlen(const char *String)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
Referenced by CommandShell().
◆ ReCacheBookmarks()
◆ SaveHistory()
Definition at line 642 of file readln.c.
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
char * OurDirectoryPath(char *const dst, const size_t siz, const char *const fname)
_Check_return_ _CRTIMP int __cdecl _chmod(_In_z_ const char *_Filename, _In_ int _Mode)
static size_t Vt100VisibleStrlen(const char *src)
void gl_histsavefile(const char *const path)
Referenced by DisposeReadline().
◆ SetXtermTitle()
Definition at line 718 of file readln.c.
725 #if (defined(WIN32) || defined(_WINDOWS)) && defined(_CONSOLE) 734 #ifdef HAVE_VSNPRINTF 736 buf[
sizeof(
buf) - 1] =
'\0';
742 if (
buf[0] !=
'\0') {
743 #if (defined(WIN32) || defined(_WINDOWS)) && defined(_CONSOLE)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
#define STRNCPY(dst, src, n)
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
char gCurXtermTitleStr[256]
char * Strncpy(char *const, const char *const, const size_t)
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
void int int ULONGLONG int va_list * ap
int strcmp(const char *String1, const char *String2)
Referenced by BackToTop(), CommandShell(), PostShell(), PrPhilBar(), PrSizeAndRateMeter(), and PrStatBar().