diff --git a/lib/profile.d/nutools.userconf b/lib/profile.d/nutools.userconf index c6f5ea9..2d78b72 100644 --- a/lib/profile.d/nutools.userconf +++ b/lib/profile.d/nutools.userconf @@ -15,6 +15,9 @@ #export UTOOLS_INPUT_ENCODING=utf-8 #export UTOOLS_EDITOR_ENCODING=utf-8 +# Ne pas utiliser la librairie readline pour la saisie des informations +#export UTOOLS_NO_READLINE=1 + # Désactiver l'affichage en couleur pour les fonctions e* #export UTOOLS_NO_COLORS=1 diff --git a/lib/ulib/.ulibver b/lib/ulib/.ulibver index 3622e8f..b2ea0de 100644 --- a/lib/ulib/.ulibver +++ b/lib/ulib/.ulibver @@ -1 +1 @@ -007007000 +007008000 diff --git a/lib/ulib/base b/lib/ulib/base index e58853d..27df804 100644 --- a/lib/ulib/base +++ b/lib/ulib/base @@ -3162,9 +3162,14 @@ function __rv_read() { else tooenc_ "Entrez la valeur" "$UTF8" 1>&2 fi - [ -n "$__rv_d" ] && tooenc_ " [$__rv_d]" 1>&2 - tooenc_ ": " "$UTF8" 1>&2 - uread "${__rv_opts[@]}" __rv_r + if [ -n "$UTOOLS_NO_READLINE" ]; then + [ -n "$__rv_d" ] && tooenc_ " [$__rv_d]" 1>&2 + tooenc_ ": " "$UTF8" 1>&2 + uread "${__rv_opts[@]}" __rv_r + else + tooenc_ ": " "$UTF8" 1>&2 + uread -e ${__rv_d:+-i"$__rv_d"} "${__rv_opts[@]}" __rv_r + fi __rv_r="${__rv_r:-$__rv_d}" if [ -n "$__rv_r" ] || ! is_yes "$__rv_re"; then set_var "$__rv_v" "$__rv_r"