38 #include "../EnginePl/pl_wchar.h" 48 #define WIN32_CONVERT_OEM_ASCII 100 #ifdef LE_DEFINE_HOOK_MACROS 102 #define EMIT_BEEP ((*pl_le_hook_emit_beep)()) 103 #define PUT_CHAR(c) ((*pl_le_hook_put_char)(c)) 104 #define GET_CHAR0 ((*pl_le_hook_get_char0)()) 105 #define INS_MODE(ins_mode) ((*pl_le_hook_ins_mode)(ins_mode)) 107 #define SCREEN_SIZE(r, c) ((*pl_le_hook_screen_size)(r, c)) 108 #define KBD_IS_NOT_EMPTY ((*pl_le_hook_kbd_is_not_empty)()) 110 #define BACKD(n) ((*pl_le_hook_backd)(n)) 111 #define FORWD(n, str) ((*pl_le_hook_forwd)(n, str)) 112 #define DISPL(n, str) ((*pl_le_hook_displ)(n, str)) 113 #define DISPL_STR(str) ((*pl_le_hook_displ_str)(str)) 114 #define ERASE(n) ((*pl_le_hook_erase)(n)) 128 char *
Pl_LE_FGets(
char *str,
int size,
char *prompt,
int display_prompt);
133 #define LE_Interrupted_By_Ctrl_C(r) ((PlLong) r == (PlLong) -2) #define CHAR32_T
Definition: pl_wchar.h:9
void Pl_LE_Get_Current_Word(char *word)
Definition: linedit.c:947
void(* pl_le_hook_start)()
Definition: linedit.h:74
int(* pl_le_hook_kbd_is_not_empty)()
Definition: linedit.h:83
char * format
Definition: hexfilter.c:78
int(* pl_le_initialize)()
Definition: linedit.h:170
intptr_t PlLong
Definition: gprolog.h:88
void(* pl_le_hook_message_box)()
Definition: linedit.h:96
char * Pl_LE_Compl_Del_Word(char *word)
Definition: linedit.c:1200
int(* pl_le_hook_get_char0)()
Definition: linedit.h:78
PlLong Pl_LE_Get_Ctrl_C_Return_Value(void)
Definition: linedit.c:1000
char * Pl_LE_Set_Separators(char *sep_str)
Definition: linedit.c:987
CHAR32_T Pl_LE_Get_Key(int echo, int catch_ctrl_c)
Definition: linedit.c:1485
void(* pl_le_hook_set_line_buffering)()
Definition: linedit.h:92
void(* pl_le_hook_put_char)()
Definition: linedit.h:77
void(* pl_le_hook_erase)()
Definition: linedit.h:89
char * Pl_LE_Gets(char *str)
Definition: linedit.c:245
void(* pl_le_hook_displ_str)()
Definition: linedit.h:88
int(* pl_le_hook_get_line_buffering)()
Definition: linedit.h:93
char * Pl_LE_Compl_Init_Match(char *prefix, int *nb_match, int *max_lg)
Definition: linedit.c:1231
void(* pl_le_hook_displ)()
Definition: linedit.h:87
void(* pl_le_hook_backd)()
Definition: linedit.h:85
char * Pl_LE_Get_Separators(void)
Definition: linedit.c:974
char * Pl_LE_Compl_Add_Word(char *word, int word_length)
Definition: linedit.c:1165
int Pl_LE_Printf(char *format,...)
Definition: linedit.c:1538
void(* pl_le_hook_forwd)()
Definition: linedit.h:86
void(* pl_le_hook_emit_beep)()
Definition: linedit.h:79
int Pl_LE_Get_Prompt_Length(void)
Definition: linedit.c:921
void(* pl_le_hook_screen_size)()
Definition: linedit.h:82
void(* pl_le_hook_flush)()
Definition: linedit.h:94
char * Pl_LE_FGets(char *str, int size, char *prompt, int display_prompt)
Definition: linedit.c:269
void(* pl_le_hook_ins_mode)()
Definition: linedit.h:80
void(* pl_le_hook_exit_process)()
Definition: linedit.h:97
int Pl_LE_Get_Current_Position(void)
Definition: linedit.c:934
int Pl_LE_Initialize(void)
Definition: terminal.c:176
char * Pl_LE_Compl_Find_Match(int *is_last)
Definition: linedit.c:1261
int(* pl_le_hook_confirm_box)()
Definition: linedit.h:95