|
StuBS
|
#include <termios.h>#include <unistd.h>#include <sys/ioctl.h>#include <stdlib.h>#include <stdio.h>#include <errno.h>#include <string.h>#include <ctype.h>#include <sys/types.h>#include <string>#include <fstream>#include <functional>#include <vector>#include <iostream>Classes | |
| struct | linenoise::linenoiseState |
Namespaces | |
| namespace | linenoise |
Macros | |
| #define | LINENOISE_DEFAULT_HISTORY_MAX_LEN 100 |
| #define | LINENOISE_MAX_LINE 4096 |
| #define | LINENOISE_HISTORY_NEXT 0 |
| #define | LINENOISE_HISTORY_PREV 1 |
Typedefs | |
| typedef std::function< void(const char *, std::vector< std::string > &)> | linenoise::CompletionCallback |
Enumerations | |
| enum | linenoise::KEY_ACTION { linenoise::KEY_NULL = 0 , linenoise::CTRL_A = 1 , linenoise::CTRL_B = 2 , linenoise::CTRL_C = 3 , linenoise::CTRL_D = 4 , linenoise::CTRL_E = 5 , linenoise::CTRL_F = 6 , linenoise::CTRL_H = 8 , linenoise::TAB = 9 , linenoise::CTRL_K = 11 , linenoise::CTRL_L = 12 , linenoise::ENTER = 13 , linenoise::CTRL_N = 14 , linenoise::CTRL_P = 16 , linenoise::CTRL_T = 20 , linenoise::CTRL_U = 21 , linenoise::CTRL_W = 23 , linenoise::ESC = 27 , linenoise::BACKSPACE = 127 } |
Constants | |
| static const char * | linenoise::unsupported_term [] = {"dumb","cons25","emacs",nullptr} |
| static CompletionCallback | linenoise::completionCallback |
| static struct termios | linenoise::orig_termios |
| static bool | linenoise::rawmode = false |
| static bool | linenoise::mlmode = false |
| static bool | linenoise::atexit_registered = false |
| static size_t | linenoise::history_max_len = LINENOISE_DEFAULT_HISTORY_MAX_LEN |
| static std::vector< std::string > | linenoise::history |
| static unsigned long | linenoise::unicodeWideCharTable [][2] |
| static int | linenoise::unicodeWideCharTableSize = sizeof(unicodeWideCharTable) / sizeof(unicodeWideCharTable[0]) |
| static unsigned long | linenoise::unicodeCombiningCharTable [] |
| static int | linenoise::unicodeCombiningCharTableSize = sizeof(unicodeCombiningCharTable) / sizeof(unicodeCombiningCharTable[0]) |
| struct linenoise::linenoiseState |
| #define LINENOISE_DEFAULT_HISTORY_MAX_LEN 100 |
| #define LINENOISE_MAX_LINE 4096 |
| #define LINENOISE_HISTORY_NEXT 0 |
| #define LINENOISE_HISTORY_PREV 1 |