DGen/SDL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Functions
prompt.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  prompt
struct  prompt::prompt_history
struct  prompt_parse
struct  prompt_parse::prompt_parse_argo

Macros

#define PROMPT_DECL_BEGIN__
#define PROMPT_DECL_END__
#define PROMPT_HIST_SIZE   64
#define PROMPT_LINE_SIZE   512

Functions

void prompt_init (struct prompt *p)
void prompt_push (struct prompt *p)
void prompt_older (struct prompt *p)
void prompt_newer (struct prompt *p)
void prompt_left (struct prompt *p)
void prompt_right (struct prompt *p)
void prompt_begin (struct prompt *p)
void prompt_end (struct prompt *p)
void prompt_clear (struct prompt *p)
void prompt_put (struct prompt *p, uint8_t c)
void prompt_delete (struct prompt *p)
void prompt_backspace (struct prompt *p)
void prompt_replace (struct prompt *p, unsigned int pos, unsigned int len, const uint8_t *with, unsigned int with_len)
struct prompt_parseprompt_parse (struct prompt *p, struct prompt_parse *pp)
void prompt_parse_clean (struct prompt_parse *pp)

Macro Definition Documentation

#define PROMPT_DECL_BEGIN__
#define PROMPT_DECL_END__
#define PROMPT_HIST_SIZE   64
#define PROMPT_LINE_SIZE   512

Function Documentation

void prompt_backspace ( struct prompt p)
void prompt_begin ( struct prompt p)
void prompt_clear ( struct prompt p)
void prompt_delete ( struct prompt p)
void prompt_end ( struct prompt p)
void prompt_init ( struct prompt p)
void prompt_left ( struct prompt p)
void prompt_newer ( struct prompt p)
void prompt_older ( struct prompt p)
struct prompt_parse* prompt_parse ( struct prompt p,
struct prompt_parse pp 
)
read
void prompt_parse_clean ( struct prompt_parse pp)
void prompt_push ( struct prompt p)
void prompt_put ( struct prompt p,
uint8_t  c 
)
void prompt_replace ( struct prompt p,
unsigned int  pos,
unsigned int  len,
const uint8_t *  with,
unsigned int  with_len 
)
void prompt_right ( struct prompt p)