File src/utils.c changed (mode: 100644) (index ed71063..fa7f155) |
... |
... |
my_rl_display() |
243 |
243 |
printw("%s%s", rl_prompt, rl_line_buffer); |
printw("%s%s", rl_prompt, rl_line_buffer); |
244 |
244 |
refresh(); |
refresh(); |
245 |
245 |
} |
} |
|
246 |
|
|
|
247 |
|
void |
|
248 |
|
my_rl_completion_display_matches(char *matches[], int num, int max) |
|
249 |
|
{ |
|
250 |
|
(void)matches; |
|
251 |
|
(void)num; |
|
252 |
|
(void)max; |
|
253 |
|
} |
|
254 |
|
|
|
255 |
|
char * |
|
256 |
|
my_rl_completion_entry(const char text[], int state) |
|
257 |
|
{ |
|
258 |
|
(void)text; |
|
259 |
|
(void)state; |
|
260 |
|
return NULL; |
|
261 |
|
} |
246 |
262 |
#endif |
#endif |
247 |
263 |
|
|
248 |
264 |
char * |
char * |
|
... |
... |
getstring(char *prompt) |
258 |
274 |
|
|
259 |
275 |
rl_readline_name = PACKAGE; |
rl_readline_name = PACKAGE; |
260 |
276 |
|
|
|
277 |
|
/* prevent displaying completion menu, which could mess up output */ |
|
278 |
|
rl_completion_display_matches_hook = my_rl_completion_display_matches; |
|
279 |
|
|
|
280 |
|
/* disable filename completion */ |
|
281 |
|
rl_completion_entry_function = my_rl_completion_entry; |
|
282 |
|
|
261 |
283 |
/* set display function for readline to my_rl_display and call readline */ |
/* set display function for readline to my_rl_display and call readline */ |
262 |
284 |
rl_redisplay_function = my_rl_display; |
rl_redisplay_function = my_rl_display; |
263 |
285 |
buf = readline(prompt); |
buf = readline(prompt); |