mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
#ifndef COSMOPOLITAN_THIRD_PARTY_LINENOISE_LINENOISE_H_
|
|
#define COSMOPOLITAN_THIRD_PARTY_LINENOISE_LINENOISE_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
typedef struct linenoiseCompletions {
|
|
size_t len;
|
|
char **cvec;
|
|
} linenoiseCompletions;
|
|
|
|
typedef void(linenoiseCompletionCallback)(const char *, linenoiseCompletions *);
|
|
typedef char *(linenoiseHintsCallback)(const char *, int *, int *);
|
|
typedef void(linenoiseFreeHintsCallback)(void *);
|
|
|
|
void linenoiseSetCompletionCallback(linenoiseCompletionCallback *);
|
|
void linenoiseSetHintsCallback(linenoiseHintsCallback *);
|
|
void linenoiseSetFreeHintsCallback(linenoiseFreeHintsCallback *);
|
|
void linenoiseAddCompletion(linenoiseCompletions *, const char *);
|
|
|
|
char *linenoise(const char *) nodiscard;
|
|
int linenoiseHistoryAdd(const char *);
|
|
int linenoiseHistorySetMaxLen(int);
|
|
int linenoiseHistorySave(const char *);
|
|
int linenoiseHistoryLoad(const char *);
|
|
void linenoiseClearScreen(void);
|
|
void linenoiseSetMultiLine(int);
|
|
void linenoiseMaskModeEnable(void);
|
|
void linenoiseMaskModeDisable(void);
|
|
void linenoiseDisableRawMode(int);
|
|
void linenoiseFree(void *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_LINENOISE_LINENOISE_H_ */
|