Enabled use of libedit as alternative to libreadline

This commit is contained in:
2014-06-14 19:22:41 +00:00
parent 066030a67c
commit 0cc414b2ae
8 changed files with 340 additions and 39 deletions

View File

@ -29,6 +29,12 @@
#include "xorriso_private.h"
#include "xorrisoburn.h"
#ifdef Xorriso_with_readlinE
#define Xorriso_with_line_editoR
#endif
#ifdef Xorriso_with_editlinE
#define Xorriso_with_line_editoR
#endif
/* Command -data_cache_size */
int Xorriso_option_data_cache_size(struct XorrisO *xorriso, char *num_tiles,
@ -2185,12 +2191,12 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
" -page len width Prompt user after len output lines (0=no prompt).",
" width (default 80) can adjust line number computation",
" to the output terminal's line width.",
#ifdef Xorriso_with_readlinE
#ifdef Xorriso_with_line_editoR
" -use_readline \"on\"|\"off\"",
" Whether to use libreadline for dialog if available.",
" -history text Copy text into libreadline history. This command",
" itself is not copied to the history list.",
#endif /* Xorriso_with_readlinE */
#endif /* Xorriso_with_line_editoR */
" -sh_style_result \"on\"|\"off\"",
" If \"on\" do not wrap file addresses in quotation marks with",
" -pwd -pwdx -ls -lsd -lsl -lsdl -lsx -lsdx -lslx -lsdlx",