Aprepro 5.0x
Loading...
Searching...
No Matches
apr_getline.cc File Reference
#include <array>
#include <cctype>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include "apr_getline.h"
#include <termios.h>

Namespaces

namespace  anonymous_namespace{apr_getline.cc}
 
namespace  SEAMS
 

Macros

#define __unix__   1
 
#define HIST_SIZE   100
 

Functions

void anonymous_namespace{apr_getline.cc}::gl_init ()
 
void anonymous_namespace{apr_getline.cc}::gl_cleanup ()
 
void anonymous_namespace{apr_getline.cc}::gl_char_init ()
 
void anonymous_namespace{apr_getline.cc}::gl_char_cleanup ()
 
void anonymous_namespace{apr_getline.cc}::gl_addchar (int c)
 
void anonymous_namespace{apr_getline.cc}::gl_del (int loc, int)
 
void anonymous_namespace{apr_getline.cc}::gl_error (const char *const buf)
 
void anonymous_namespace{apr_getline.cc}::gl_fixup (const char *prompt, int change, int cursor)
 
int anonymous_namespace{apr_getline.cc}::gl_getc ()
 
void anonymous_namespace{apr_getline.cc}::gl_kill (int pos)
 
void anonymous_namespace{apr_getline.cc}::gl_newline ()
 
void anonymous_namespace{apr_getline.cc}::gl_putc (int c)
 
void anonymous_namespace{apr_getline.cc}::gl_puts (const char *const buf)
 
void anonymous_namespace{apr_getline.cc}::gl_redraw ()
 
void anonymous_namespace{apr_getline.cc}::gl_transpose ()
 
void anonymous_namespace{apr_getline.cc}::gl_yank ()
 
void anonymous_namespace{apr_getline.cc}::hist_init ()
 
char * anonymous_namespace{apr_getline.cc}::hist_next ()
 
char * anonymous_namespace{apr_getline.cc}::hist_prev ()
 
char * anonymous_namespace{apr_getline.cc}::hist_save (const char *p)
 
void anonymous_namespace{apr_getline.cc}::search_addchar (int c)
 
void anonymous_namespace{apr_getline.cc}::search_term ()
 
void anonymous_namespace{apr_getline.cc}::search_back (int new_search)
 
void anonymous_namespace{apr_getline.cc}::search_forw (int new_search)
 
void anonymous_namespace{apr_getline.cc}::gl_beep ()
 
char * anonymous_namespace{apr_getline.cc}::copy_string (char *dest, char const *source, long int elements)
 
void SEAMS::gl_setwidth (size_t w)
 
char * SEAMS::getline_int (const char *prompt)
 
void SEAMS::gl_histadd (const char *buf)
 
void anonymous_namespace{apr_getline.cc}::search_update (int c)
 

Variables

const int anonymous_namespace{apr_getline.cc}::GL_BUF_SIZE {1024}
 
bool anonymous_namespace{apr_getline.cc}::gl_ellipses_during_completion = true
 
char anonymous_namespace{apr_getline.cc}::gl_buf [GL_BUF_SIZE]
 
int anonymous_namespace{apr_getline.cc}::gl_init_done = -1
 
int anonymous_namespace{apr_getline.cc}::gl_termw = 80
 
int anonymous_namespace{apr_getline.cc}::gl_scroll = 27
 
int anonymous_namespace{apr_getline.cc}::gl_width = 0
 
int anonymous_namespace{apr_getline.cc}::gl_extent = 0
 
int anonymous_namespace{apr_getline.cc}::gl_overwrite = 0
 
int anonymous_namespace{apr_getline.cc}::gl_pos
 
int anonymous_namespace{apr_getline.cc}::gl_cnt = 0
 
char anonymous_namespace{apr_getline.cc}::gl_killbuf [GL_BUF_SIZE] = ""
 
const char * anonymous_namespace{apr_getline.cc}::gl_prompt
 
int anonymous_namespace{apr_getline.cc}::gl_search_mode = 0
 
struct termios io_new_termios anonymous_namespace{apr_getline.cc}::io_old_termios
 
int anonymous_namespace{apr_getline.cc}::hist_pos = 0
 
int anonymous_namespace{apr_getline.cc}::hist_last = 0
 
std::array< char *, HIST_SIZEanonymous_namespace{apr_getline.cc}::hist_buf
 
char anonymous_namespace{apr_getline.cc}::hist_empty_elem [2] = ""
 
char anonymous_namespace{apr_getline.cc}::search_prompt [101]
 
char anonymous_namespace{apr_getline.cc}::search_string [100]
 
int anonymous_namespace{apr_getline.cc}::search_pos = 0
 
int anonymous_namespace{apr_getline.cc}::search_forw_flg = 0
 
int anonymous_namespace{apr_getline.cc}::search_last = 0
 

Macro Definition Documentation

◆ __unix__

#define __unix__   1

◆ HIST_SIZE

#define HIST_SIZE   100