StuBS
|
Classes | |
struct | linenoiseState |
Typedefs | |
typedef std::function< void(const char *, std::vector< std::string > &)> | CompletionCallback |
Enumerations | |
enum | KEY_ACTION { KEY_NULL = 0 , CTRL_A = 1 , CTRL_B = 2 , CTRL_C = 3 , CTRL_D = 4 , CTRL_E = 5 , CTRL_F = 6 , CTRL_H = 8 , TAB = 9 , CTRL_K = 11 , CTRL_L = 12 , ENTER = 13 , CTRL_N = 14 , CTRL_P = 16 , CTRL_T = 20 , CTRL_U = 21 , CTRL_W = 23 , ESC = 27 , BACKSPACE = 127 } |
Functions | |
void | linenoiseAtExit (void) |
bool | AddHistory (const char *line) |
void | refreshLine (struct linenoiseState *l) |
static int | unicodeIsWideChar (unsigned long cp) |
int | unicodeIsCombiningChar (unsigned long cp) |
int | unicodePrevUTF8CharLen (char *buf, int pos) |
int | unicodeUTF8CharLen (char *buf, int buf_len, int pos) |
int | unicodeUTF8CharToCodePoint (const char *buf, int len, int *cp) |
int | unicodeGraphemeLen (char *buf, int buf_len, int pos) |
int | unicodePrevGraphemeLen (char *buf, int pos) |
int | isAnsiEscape (const char *buf, int buf_len, int *len) |
int | unicodeColumnPos (const char *buf, int buf_len) |
int | unicodeColumnPosForMultiLine (char *buf, int buf_len, int pos, int cols, int ini_pos) |
int | unicodeReadUTF8Char (int fd, char *buf, int *cp) |
void | SetMultiLine (bool ml) |
bool | isUnsupportedTerm (void) |
bool | enableRawMode (int fd) |
void | disableRawMode (int fd) |
int | getCursorPosition (int ifd, int ofd) |
int | getColumns (int ifd, int ofd) |
void | linenoiseClearScreen (void) |
void | linenoiseBeep (void) |
int | completeLine (struct linenoiseState *ls, char *cbuf, int *c) |
void | SetCompletionCallback (CompletionCallback fn) |
void | refreshSingleLine (struct linenoiseState *l) |
void | refreshMultiLine (struct linenoiseState *l) |
int | linenoiseEditInsert (struct linenoiseState *l, const char *cbuf, int clen) |
void | linenoiseEditMoveLeft (struct linenoiseState *l) |
void | linenoiseEditMoveRight (struct linenoiseState *l) |
void | linenoiseEditMoveHome (struct linenoiseState *l) |
void | linenoiseEditMoveEnd (struct linenoiseState *l) |
void | linenoiseEditHistoryNext (struct linenoiseState *l, int dir) |
void | linenoiseEditDelete (struct linenoiseState *l) |
void | linenoiseEditBackspace (struct linenoiseState *l) |
void | linenoiseEditDeletePrevWord (struct linenoiseState *l) |
int | linenoiseEdit (int stdin_fd, int stdout_fd, char *buf, int buflen, const char *prompt) |
bool | linenoiseRaw (const char *prompt, std::string &line) |
bool | Readline (const char *prompt, std::string &line) |
std::string | Readline (const char *prompt, bool &quit) |
std::string | Readline (const char *prompt) |
bool | SetHistoryMaxLen (size_t len) |
bool | SaveHistory (const char *path) |
bool | LoadHistory (const char *path) |
const std::vector< std::string > & | GetHistory () |
Constants | |
static const char * | unsupported_term [] = {"dumb","cons25","emacs",nullptr} |
static CompletionCallback | completionCallback |
static struct termios | orig_termios |
static bool | rawmode = false |
static bool | mlmode = false |
static bool | atexit_registered = false |
static size_t | history_max_len = LINENOISE_DEFAULT_HISTORY_MAX_LEN |
static std::vector< std::string > | history |
static unsigned long | unicodeWideCharTable [][2] |
static int | unicodeWideCharTableSize = sizeof(unicodeWideCharTable) / sizeof(unicodeWideCharTable[0]) |
static unsigned long | unicodeCombiningCharTable [] |
static int | unicodeCombiningCharTableSize = sizeof(unicodeCombiningCharTable) / sizeof(unicodeCombiningCharTable[0]) |
struct linenoise::linenoiseState |
typedef std::function<void (const char*, std::vector<std::string>&)> linenoise::CompletionCallback |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |